NAME

Linux::Statm::Tiny - simple access to Linux /proc/../statm

VERSION

0.0400

SYNOPSIS

use Linux::Statm::Tiny;

my $stats = Linux::Statm::Tiny->new( pid => $$ );

my $size = $stats->size;

INSTALLATION

See How to install CPAN modules.

Required Modules

This distribution requires Perl v5.8.8.

This distribution requires the following modules:

RECENT CHANGES

Documentation

  • Improved POD so that it's clear that vsz and rss are aliases.

Enhancements

  • vsz and rss and *_pages attributes are explicitly defined as aliases.

  • dist.ini modified to use AutoPrereqs and add better metadata to the distribution.

  • Removed use of common::sense in the tests.

  • Added mb aliases, e.g. "size_mb".

  • The kb and mb aliases use the ceil function to round values up.

  • Added refresh method to refresh values.

Other Changes

  • Added tests for pages alias.

See the Changes file for a longer revision history.

DESCRIPTION

This class returns the Linux memory stats from /proc/$pid/statm.

SEE ALSO

proc(5).

AUTHOR

Robert Rothenberg rrwo@thermeon.com

COPYRIGHT

Copyright 2014-2015, Thermeon Worldwide, PLC.

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

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.