forked from Mons/Dash-Leak
-
Notifications
You must be signed in to change notification settings - Fork 1
Track memory allocation
License
knevgen/Dash-Leak
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME Dash::Leak - Track memory allocation VERSION Version 0.01 SYNOPSIS Quick summary of what the module does. use Dash::Leak; { leaksz "block label"; # some code, that may leak } # If your code leaked, you'll be noticed about change # of process vsize after leaving block leaksz "tests begin"; some_operation($arg); leaksz "some_operation", sub { "We leaked after some_operation($arg);" }; another_operation(); leaksz "another_operation"; # ... EXPORT Export of this module is "virtual", by using Devel::Declare. When $ENV{DEBUG_MEM} is true, it will work, when false, this opcodes will be ignored, like with leaksz ... if 0; FUNCTIONS leaksz $label, [$cb->()] Starts tracking current block. If something changed since last note, notice will be warned. If callback is passed, it will be invoked instead of warn. AUTHOR Mons Anderson, "<mons at cpan.org>" COPYRIGHT & LICENSE Copyright 2010 Mons Anderson, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
About
Track memory allocation
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Perl 92.8%
- Shell 7.2%