ps_mem icon indicating copy to clipboard operation
ps_mem copied to clipboard

Show cumulatve memory usage by process name

Open jarun opened this issue 7 years ago • 5 comments

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.

jarun avatar Dec 02 '17 07:12 jarun

ps_mem is designed to support operations like this using existing programs. For example:

watch -n1 'sudo ./ps_mem.py -p $(pgrep -d, chrome)'

pixelb avatar Dec 03 '17 00:12 pixelb

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.

jarun avatar Dec 03 '17 04:12 jarun

Hey, I could possibly work on incorporating this in the code. It would eliminate the need for using 'watch' for this task. @pixelb

moneeb777 avatar Jan 05 '18 08:01 moneeb777

That would be great!

jarun avatar Jan 05 '18 08:01 jarun

Please check PR#36 in this regard.

moneeb777 avatar Jan 06 '18 16:01 moneeb777