ps_mem
ps_mem copied to clipboard
Show cumulatve memory usage by process name
Would it be possible to show the cumulative memory usage by process name, e.g., for opera or chrome where multiple processes are spawned?
Currently it's possible to use -w
along with the full (and cumulative) list of all processes. It would be great if this can be done for a single process by name.
ps_mem is designed to support operations like this using existing programs. For example:
watch -n1 'sudo ./ps_mem.py -p $(pgrep -d, chrome)'
True but in every iteration it tracks all processes in the system when in this case it's enough to track a single process. That's the reason I opened the issue.
Hey, I could possibly work on incorporating this in the code. It would eliminate the need for using 'watch' for this task. @pixelb
That would be great!
Please check PR#36 in this regard.