Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using SYRUPY to record CPU (and memory) usage for a given process over time' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using SYRUPY to record CPU (and memory) usage for a given process over time
Authored by: jeetsukumaran on Nov 05, '09 05:26:21AM
I've written a utility to do exactly this: http://jeetworks.org/programs/syrupy Basic example usage:
$ syrupy.py program.sh -o1 --opt2=foo -opt3="foo foo" /path/to/foo foo
  PID DATE        TIME     ELAPSED  CPU   MEM    RSS  VSIZE
14634 2008-10-10  20:45:25   00:00  0.0   0.0   2996   6680
14634 2008-10-10  20:45:26   00:01  105   0.2   7804  12592
14634 2008-10-10  20:45:27   00:02  103   0.2   8996  13776
14634 2008-10-10  20:45:28   00:03  103   0.2  10468  15348
14634 2008-10-10  20:45:29   00:04  103   0.3  11412  16396
14634 2008-10-10  20:45:30   00:05  104   0.3  12492  17444
...
You can supply it the command to be invoked, as above, or alternatively specify the PID of an already-running process to track. -- jeet

[ Reply to This | # ]