schneems/get_process_mem — pull request #2 by ksoderstrom (2014-04-01 01:20:59+00:00)
Title: Use /proc/<pid>/smaps to calculate mem on linux to allow usage of PSS.

This PR changes the behavior of the Linux memory calculation to use `/proc//smaps` instead of `/proc//status`. This allows the user to request either RSS or PSS memory. PSS is the process' proportional share of the mapping that is resident in RAM and is calculated by the Linux kernel.

The default value is still `rss`, and `pss` is only compatible with Linux.