Test::Memory::Cycle

Test::Memory::Cycle is a Perl module that can check for memory leaks and circular memory references.
Download

Test::Memory::Cycle Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Andy Lester
  • Publisher web site:
  • http://search.cpan.org/~petdance/Test-Memory-Cycle-1.04/Cycle.pm

Test::Memory::Cycle Tags


Test::Memory::Cycle Description

Test::Memory::Cycle is a Perl module that can check for memory leaks and circular memory references. Test::Memory::Cycle is a Perl module that can check for memory leaks and circular memory references.SYNOPSISPerl's garbage collection has one big problem: Circular references can't get cleaned up. A circular reference can be as simple as two reference that refer to each other: my $mom = { name => "Marilyn Lester", }; my $me = { name => "Andy Lester", mother => $mom, }; $mom->{son} = $me;Test::Memory::Cycle is built on top of Devel::Cycle to give you an easy way to check for these circular references. use Test::Memory::Cycle; my $object = new MyObject; # Do stuff with the object. memory_cycle_ok( $object );You can also use memory_cycle_exists() to make sure that you have a cycle where you expect to have one. Requirements: · Perl


Test::Memory::Cycle Related Software