-
-
12 May 2013 14:01:44 UTC
- Distribution: Devel-Size
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (11)
- Testers (2677 / 191 / 0)
- Kwalitee
Bus factor: 1- 29.81% Coverage
- License: perl_5
- Perl: v5.5.0
- Activity
24 month- Tools
- Download (67.45KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Test::More
- XSLoader
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Devel::Size - Perl extension for finding the memory usage of Perl variables
SYNOPSIS
use Devel::Size qw(size total_size); my $size = size("A string"); my @foo = (1, 2, 3, 4, 5); my $other_size = size(\@foo); my $foo = {a => [1, 2, 3], b => {a => [1, 3, 4]} }; my $total_size = total_size($foo);
DESCRIPTION
This module figures out the real size of Perl variables in bytes, as accurately as possible.
Build and Install
To build and install this module, you need:
Perl a working C or C++ compiler a make (or namke on Windows) utility
Follow these steps:
On Linux, Cygwin, or Unix:
perl Makefile.PL make make test sudo make install
On Windows:
perl Makefile.PL nmake nmake test nmake install
BUGREPORTS
Please report bugs to:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Size
COPYRIGHT
Copyright (C) 2005 Dan Sugalski, Copyright (C) 2007-2008 Tels
This module is free software; you can redistribute it and/or modify it under the same terms as Perl v5.8.8.
Module Install Instructions
To install Devel::Size, copy and paste the appropriate command in to your terminal.
cpanm Devel::Size
perl -MCPAN -e shell install Devel::Size
For more information on module installation, please visit the detailed CPAN module installation guide.