Devel::Cycle

Devel::Cycle is a Perl module that helps you to find memory cycles in objects.
Download

Devel::Cycle Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Lincoln Stein
  • Publisher web site:
  • http://search.cpan.org/~lds/Crypt-CBC-2.29/CBC.pm

Devel::Cycle Tags


Devel::Cycle Description

Devel::Cycle is a Perl module that helps you to find memory cycles in objects. Devel::Cycle is a Perl module that helps you to find memory cycles in objects.SYNOPSIS #!/usr/bin/perl use Devel::Cycle; my $test = {fred => , ethel => , george => {martha => 23, agnes => 19} }; $test->{george}{phyllis} = $test; $test->{fred} = $test->{george}; $test->{george}{mary} = $test->{fred}; find_cycle($test); exit 0; # output: Cycle (1): $A->{'george'} => %B $B->{'phyllis'} => %A Cycle (2): $A->{'george'} => %B $B->{'mary'} => @A $A-> => %B Cycle (3): $A->{'fred'} => @A $A-> => %B $B->{'phyllis'} => %A Cycle (4): $A->{'fred'} => @A $A-> => %B $B->{'mary'} => @A # you can also check weakened references weaken($test->{george}->{phyllis}); find_weakened_cycle($test); exit 0; # output: Cycle (1): $A->{'george'} => %B $B->{'mary'} => @C $C-> => %B Cycle (2): $A->{'george'} => %B w-> $B->{'phyllis'} => %A Cycle (3): $A->{'fred'} => @C $C-> => %B $B->{'mary'} => @C Cycle (4): $A->{'fred'} => @C $C-> => %B w-> $B->{'phyllis'} => %A Requirements: · Perl


Devel::Cycle Related Software