• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Devel/H23-Apr-2019-29415

t/H23-Apr-2019-1,211704

CHANGESH A D23-Apr-201911 KiB294233

CONTRIBUTINGH A D17-Apr-20193 KiB6748

MANIFESTH A D23-Apr-2019501 2322

MANIFEST.SKIPH A D15-Apr-2019287 1817

META.jsonH A D23-Apr-2019942 4544

META.ymlH A D23-Apr-2019536 2625

Makefile.PLH A D15-Apr-2019598 1915

READMEH A D15-Apr-20191.1 KiB6238

Size.xsH A D17-Apr-201937.5 KiB1,158921

ppport.hH A D15-Apr-2019170.8 KiB7,0643,086

typemapH A D15-Apr-201950 64

README

1=pod
2
3Devel::Size - Perl extension for finding the memory usage of Perl variables
4
5=head1 SYNOPSIS
6
7  use Devel::Size qw(size total_size);
8
9  my $size = size("A string");
10
11  my @foo = (1, 2, 3, 4, 5);
12  my $other_size = size(\@foo);
13
14  my $foo = {a => [1, 2, 3],
15      b => {a => [1, 3, 4]}
16         };
17  my $total_size = total_size($foo);
18
19=head1 DESCRIPTION
20
21This module figures out the real size of Perl variables in bytes, as
22accurately as possible.
23
24=head1 Build and Install
25
26To build and install this module, you need:
27
28     Perl
29     a working C or C++ compiler
30     a make (or namke on Windows) utility
31
32Follow these steps:
33
34On Linux, Cygwin, or Unix:
35
36    perl Makefile.PL
37    make
38    make test
39    sudo make install
40
41On Windows:
42
43    perl Makefile.PL
44    nmake
45    nmake test
46    nmake install
47
48=head1 BUGREPORTS
49
50Please report bugs to:
51
52    http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Size
53
54=head1 COPYRIGHT
55
56Copyright (C) 2005 Dan Sugalski, Copyright (C) 2007-2008 Tels
57
58This module is free software; you can redistribute it and/or modify it
59under the same terms as Perl v5.8.8.
60
61=cut
62