# from Donn # on Wednesday 28 March 2007 09:53 am:
usage in space-separated "pages" (typically 4KB each.) See `man proc`.
Okay so I did this: cripts:$ cat /proc/`pidof inkscape`/statm 29570 21732 4625 1280 0 17494 0 I have no idea what those numbers mean. Is this gonna be useful to a dev? Should I collect them over time and build up a little bit of history?
You could certainly do something like gather 1-second increments into a text file, then import that into a spreadsheet, read the proc manpage to get the column headings, multiply everything by 4, then graph it. If you grab timestamps with it and keep a written log of what you're doing, you can then compare spikes on the graph to given actions.
perl -e 'my $pid = shift; while(1) { open(my $fh, "<", "/proc/$pid/statm") or die; my $data = <$fh>; chomp($data); print join(" ", time,map({$_ * 4} split(/ /, $data))), "\n"; sleep(1); }' $(pidof inkscape)
--Eric