Main > Programming > Libraries >

Linux::Smaps 0.01

Linux::Smaps 0.01

Sponsored Links

Linux::Smaps 0.01 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.006 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 842
Date added: 2007-07-27
Publisher: Torsten Foertsch

Linux::Smaps 0.01 description

Linux::Smaps is a Perl interface to /proc/PID/smaps.

SYNOPSIS

use Linux::Smaps;
my $map=Linux::Smaps->new($pid);
my @maps=$map->maps;
my $private_dirty=$map->private_dirty;
...

The /proc/PID/smaps files in modern linuxes provides very detailed information about a processes memory consumption. It particularly includes a way to estimate the effect of copy-on-write. This module implements a Perl interface.

CONSTRUCTOR, OBJECT INITIALIZATION, etc.

Linux::Smaps->new($pid)

creates and initializes a Linux::Smaps object. Returns the object or undef if a PID was given and update has failed.
$self->pid($pid) or $self->pid=$pid

get/set the PID.

$self->update

reinitializes the object; rereads /proc/PID/smaps. Returns the object on success or undef otherwize.

$self->lasterror

update() and new() return undef on failure. lasterror() returns a more verbose reason. Also $! can be checked.

INFORMATION RETRIEVAL

$self->vmas

returns a list of Linux::Smaps::VMA objects each describing a vm area, see below.

$self->size
$self->rss
$self->shared_clean
$self->shared_dirty
$self->private_clean
$self->private_dirty

these methods compute the sums of the appropriate values of all vmas.

$self->stack
$self->heap
$self->vdso

these are shortcuts to the appropiate Linux::Smaps::VMA objects.

$self->all
$self->named
$self->unnamed

In array context these functions return a list of Linux::Smaps::VMA objects representing named or unnamed maps or simply all vmas. Thus, in array context all() is equivalent to vmas().

In scalar context these functions create a fake Linux::Smaps::VMA object containing the summaries of the size, rss, shared_clean, shared_dirty, private_clean and private_dirty fields.

$self->names

returns a list of vma names, i.e. the files that are mapped.

Linux::Smaps 0.01 Screenshot

Advertisements

Linux::Smaps 0.01 Keywords

Bookmark Linux::Smaps 0.01

Hyperlink code:
Link for forum:

Linux::Smaps 0.01 Copyright

WareSeeker periodically updates pricing and software information of Linux::Smaps 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Linux::Smaps 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
AI::Menu is a Perl object that generates Tree::Nary objects from directed graphs or a description of the function set. Free Download
Linux::DVB is a Perl interface to (some parts of) the Linux DVB API. Free Download
DBIx::EnumConstraints is a Perl module that generates enum-like SQL constraints. Free Download
LSF::Hosts is a Perl module to retrieve information about LSF hosts. Free Download
INSPEC::BibTeX is a Perl extension to convert INSPEC data from INSPEC::Retriever to BibTeX format. Free Download
MPEG::LibMPEG3 is a Perl interface to libmpeg3 module. Free Download
Lufs::C is a C interface to perl. Free Download
JSON::PC is a fast JSON parser and converter. Free Download