Skip to content

Skarsnik/p6-linux-proc-statm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Name Linux::Proc::Statm

Usage

 use Linux::Proc::Statm;
 my %meminfo = get-statm(42); #get info for the pid 42
 say %meminfo<data>; # data + stack size
 say get-statm.perl; #use $*PID
 say get-statm-human<data>; # 54.552 kB

Values are given in Kb by default. You can change this behavior by passing a :unit named parameter with etheir b, k or m according to the unit you want.

say get-statm-human(:unit<m>)<data>; # 53 mB

Author

Sylvain "Skarsnik" Colinet scolinet@gmail.com

About

A simple perl6 module to get info from /proc/pid/statm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%