ps_mem icon indicating copy to clipboard operation
ps_mem copied to clipboard

Show program name and kilobytes only

Open mrkafk opened this issue 11 years ago • 4 comments
trafficstars

mrkafk avatar Aug 13 '14 18:08 mrkafk

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)

pixelb avatar Aug 13 '14 20:08 pixelb

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.

mrkafk avatar Aug 13 '14 20:08 mrkafk

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 avatar Aug 14 '14 08:08 pixelb

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

pixelb avatar Oct 04 '14 09:10 pixelb