Actively detect PSS support

Rather than checking the kernel version, look for PSS field when
parsing smaps data and issue a warning.

(based on a suggestion by Paul Townsend)
This commit is contained in:
Matt Mackall 2011-08-17 13:49:33 -05:00
commit 0279ad465a
2 changed files with 12 additions and 9 deletions

3
smem.8
View file

@ -144,7 +144,8 @@ Show pie graph.
\fBsmem\fP requires:
.IP \(bu 3
Linux kernel 2.6.27 or newer.
Linux kernel providing 'Pss' metric in /proc/<pid>/smaps (generally
2.6.27 or newer).
.IP \(bu
Python 2.x (at least 2.4 or so).
.IP \(bu