File: README.md

package info (click to toggle)
libtest2-plugin-memusage-perl 0.002003-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 120 kB
  • sloc: perl: 45; makefile: 2
file content (49 lines) | stat: -rw-r--r-- 1,043 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# NAME

Test2::Plugin::MemUsage - Collect and display memory usage information.

# CAVEAT - UNIX ONLY

Currently this only works on unix systems that provide `/proc/PID/status`
access. For all other systems this plugin is essentially a no-op.

# DESCRIPTION

This plugin will collect memory usage info from `/proc/PID/status` and display
it for you when the test is done running.

# SYNOPSIS

    use Test2::Plugin::MemUsage;

This is also useful at the command line for 1-time use:

    $ perl -MTest2::Plugin::MemUsage path/to/test.t

Output:

    # rss:  36708kB
    # size: 49836kB
    # peak: 49836kB

# SOURCE

The source code repository for Test2-Plugin-MemUsage can be found at
`https://github.com/Test-More/Test2-Plugin-MemUsage/`.

# MAINTAINERS

- Chad Granum <exodist@cpan.org>

# AUTHORS

- Chad Granum <exodist@cpan.org>

# COPYRIGHT

Copyright 2019 Chad Granum <exodist@cpan.org>.

This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.

See `http://dev.perl.org/licenses/`