Sort the output by "rss" when no "Pss" present in smaps.

This commit is contained in:
Paul Townsend 2011-08-22 16:10:00 -05:00
commit 5d5d2dd183

2
smem
View file

@ -159,6 +159,8 @@ def pidmaps(pid):
if not seen and not warned:
sys.stderr.write('warning: kernel does not appear to support PSS measurement\n')
warned = True
if not options.sort:
options.sort = 'rss'
if options.mapfilter:
f = {}