Test2::Plugin::MemUsage(3pm)

Test2::Plugin::MemUsage3pm

Collect and display memory usage information.

Usage

    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

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.

Overview

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

Source

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

Maintainers

Chad Granum <[email protected]>

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

Authors

Chad Granum <[email protected]>

From libtest2-plugin-memusage-perl 0.002003-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.