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

..03-May-2022-

lib/Test2/Plugin/H26-Feb-2020-12442

t/H26-Feb-2020-7659

xt/author/H26-Feb-2020-84

ChangesH A D26-Feb-2020265 126

LICENSEH A D26-Feb-202017.9 KiB380292

MANIFESTH A D26-Feb-2020248 1615

META.jsonH A D26-Feb-20201.4 KiB5654

META.ymlH A D26-Feb-2020759 2625

Makefile.PLH A D26-Feb-20201.2 KiB5039

READMEH A D26-Feb-20201.1 KiB5128

README.mdH A D26-Feb-20201 KiB5028

cpanfileH A D26-Feb-2020340 1713

dist.iniH A D26-Feb-20201.9 KiB9679

README

1NAME
2
3    Test2::Plugin::MemUsage - Collect and display memory usage information.
4
5CAVEAT - UNIX ONLY
6
7    Currently this only works on unix systems that provide /proc/PID/status
8    access. For all other systems this plugin is essentially a no-op.
9
10DESCRIPTION
11
12    This plugin will collect memory usage info from /proc/PID/status and
13    display it for you when the test is done running.
14
15SYNOPSIS
16
17        use Test2::Plugin::MemUsage;
18
19    This is also useful at the command line for 1-time use:
20
21        $ perl -MTest2::Plugin::MemUsage path/to/test.t
22
23    Output:
24
25        # rss:  36708kB
26        # size: 49836kB
27        # peak: 49836kB
28
29SOURCE
30
31    The source code repository for Test2-Plugin-MemUsage can be found at
32    https://github.com/Test-More/Test2-Plugin-MemUsage/.
33
34MAINTAINERS
35
36    Chad Granum <exodist@cpan.org>
37
38AUTHORS
39
40    Chad Granum <exodist@cpan.org>
41
42COPYRIGHT
43
44    Copyright 2019 Chad Granum <exodist@cpan.org>.
45
46    This program is free software; you can redistribute it and/or modify it
47    under the same terms as Perl itself.
48
49    See http://dev.perl.org/licenses/
50
51

README.md

1# NAME
2
3Test2::Plugin::MemUsage - Collect and display memory usage information.
4
5# CAVEAT - UNIX ONLY
6
7Currently this only works on unix systems that provide `/proc/PID/status`
8access. For all other systems this plugin is essentially a no-op.
9
10# DESCRIPTION
11
12This plugin will collect memory usage info from `/proc/PID/status` and display
13it for you when the test is done running.
14
15# SYNOPSIS
16
17    use Test2::Plugin::MemUsage;
18
19This is also useful at the command line for 1-time use:
20
21    $ perl -MTest2::Plugin::MemUsage path/to/test.t
22
23Output:
24
25    # rss:  36708kB
26    # size: 49836kB
27    # peak: 49836kB
28
29# SOURCE
30
31The source code repository for Test2-Plugin-MemUsage can be found at
32`https://github.com/Test-More/Test2-Plugin-MemUsage/`.
33
34# MAINTAINERS
35
36- Chad Granum <exodist@cpan.org>
37
38# AUTHORS
39
40- Chad Granum <exodist@cpan.org>
41
42# COPYRIGHT
43
44Copyright 2019 Chad Granum <exodist@cpan.org>.
45
46This program is free software; you can redistribute it and/or
47modify it under the same terms as Perl itself.
48
49See `http://dev.perl.org/licenses/`
50