Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Devel::DumpSizes 0.01

    Download button

    No screenshots available
    Downloads: 348  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Gautam Chekuri | More programs
    Perl Artistic License / FREE
    May 2nd, 2007, 09:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Devel::DumpSizes description

    Devel::DumpSizes is a Perl module to dump the name and size in bytes of variables that are available at a give point in a script

    Devel::DumpSizes is a Perl module to dump the name and size in bytes (in increasing order) of variables that are available at a give point in a script.

    SYNOPSIS

    use Devel::DumpSizes qw/dump_sizes/;

    &Devel::DumpSizes::dump_sizes();

    Or,

    &Devel::DumpSizes::dump_sizes("/path/of/filename-to-dump-output");

    This will print the name of each variable and its size. The name and size are seperated by a '->'

    Variable name -> Size in bytes

    EXPORTS

    Exports one subroutine by default:
    dump_sizes

    This module allows us to print the names and sizes of variables that are available at a give point in a script.

    This module was written while debugging a huge long running script. The main use being to understand how variable sizes were fluctuating during script execution. It uses PadWalker and Devel::Symdump to get the variables. It uses Devel::Size to report the size of each variable.

    METHODS

    dump_sizes

    Usage: &Devel::DumpSizes::dump_sizes();

    Or

    Usage: &Devel::DumpSizes::dump_sizes("/path/of/filename-to-dump-output");
    This method accepts one optional parameter that will be used to create the file where the output is dumped.

    If parameter is given then two files will be create. One will have extension .my and will contain my variables. The second file will have extension .ol and will contain our/local variables. If no filename is given output is printed on STDOUT.
    As of now, the output is sectioned by printing the following at the start:

    1. either of 'my' or 'our/local' to specify the kind of variables being reported.

    2. output of time().

    3. If possible, subroutine name/line number as returned by caller (perldoc -f caller).

    All sizes are in Bytes as returned by Devel::Size. I plan to have more information reported in newer versions.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    dump variable sizes | dump variable names | Perl module | Devel::DumpSizes | dump | variables

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM