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