Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show cumulatve memory usage by process name #35

Open
jarun opened this issue Dec 2, 2017 · 5 comments
Open

Show cumulatve memory usage by process name #35

jarun opened this issue Dec 2, 2017 · 5 comments

Comments

@jarun
Copy link

jarun commented Dec 2, 2017

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.

@pixelb
Copy link
Owner

pixelb commented Dec 3, 2017

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

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

@jarun
Copy link
Author

jarun commented Dec 3, 2017

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.

@moneeb777
Copy link

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

@jarun
Copy link
Author

jarun commented Jan 5, 2018

That would be great!

@moneeb777
Copy link

Please check PR#36 in this regard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants