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 program name and kilobytes only #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mrkafk
Copy link

@mrkafk mrkafk commented Aug 13, 2014

No description provided.

@pixelb
Copy link
Owner

pixelb commented Aug 13, 2014

This looks useful thanks.
I presume this is to ease further processing.
Perhaps it would be useful to swap the name and size, so that size is first (just like du -k)

@mrkafk
Copy link
Author

mrkafk commented Aug 13, 2014

Right, I swapped size and name so the size is first now.

Your presumption is correct, I need ps_mem.py output for scripting and tracking, not for human reading directly.

I have also added -g / --group-args which groups by program name and its arguments. This is useful mostly for distinguishing different Java processes.

@pixelb
Copy link
Owner

pixelb commented Aug 14, 2014

Please split these into separate commits.

The description of --group-args suggests it's very similar to --split-args.
Are they not essentially the same thing? I see the initial command name might be different.
Perhaps we should change --split-args to behave like your group args?

@pixelb
Copy link
Owner

pixelb commented Oct 4, 2014

There was work recently on the --total option. I might use that to output the total mem usage in bytes on the left for each command, and a total as the last line

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

Successfully merging this pull request may close these issues.

None yet

2 participants