ps_mem
ps_mem copied to clipboard
Show program name and kilobytes only
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)
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.
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?
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