Paul Evans > Devel-MAT-0.17 > Devel::MAT::Tool::Inrefs

Download:
Devel-MAT-0.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.17   Source   Latest Release: Devel-MAT-0.18

NAME ^

Devel::MAT::Tool::Inrefs - annotate which SVs are referred to by others

DESCRIPTION ^

This Devel::MAT tool annotates each SV with back-references from other SVs that refer to it. It follows the outrefs method of every heap SV and annotates the referred SVs with back-references pointing back to the SVs that refer to them.

SV METHODS ^

This tool adds the following SV methods.

( $name, $sv, $name, $sv, ... ) = $sv->inrefs

Returns a name/value list giving names and other SV objects for each of the SVs that refer to this one. This is formed by the inverse mapping along the SV graph from outrefs.

( $name, $sv, $name, $sv, ... ) = $sv->inrefs_strong

( $name, $sv, $name, $sv, ... ) = $sv->inrefs_weak

( $name, $sv, $name, $sv, ... ) = $sv->inrefs_direct

( $name, $sv, $name, $sv, ... ) = $sv->inrefs_indirect

( $name, $sv, $name, $sv, ... ) = $sv->inrefs_inferred

Returns a name/value list giving names and other SV objects filtered by type, analogous to the various outrefs_* methods.

AUTHOR ^

Paul Evans <leonerd@leonerd.org.uk>

syntax highlighting: