diff options
author | Alexander Schlarb <alexander@ninetailed.ninja> | 2018-10-09 21:49:29 +0200 |
---|---|---|
committer | Alexander Schlarb <alexander@ninetailed.ninja> | 2019-03-20 17:00:41 +0100 |
commit | fc0bf546c3ceb03fedb08253756cae63d15499b5 (patch) | |
tree | f256c97ca36c15db00e9fa85f627e158579020ea /linux/LinuxProcess.h | |
parent | 402e46bb82964366746b86d77eb5afa69c279539 (diff) |
Linux: Add PSS (proportional set size), Swap and SwapPSS calculation
Original code was written by *Craig M. Brandenburg* for htop 1.0.2
Many performance improvements by GitHub user *linvinus*, ported to htop 2.0.2
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r-- | linux/LinuxProcess.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 6ce3037d..6b074ac9 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -15,6 +15,7 @@ in the source distribution for its full text. #define PROCESS_FLAG_LINUX_VSERVER 0x0400 #define PROCESS_FLAG_LINUX_CGROUP 0x0800 #define PROCESS_FLAG_LINUX_OOM 0x1000 +#define PROCESS_FLAG_LINUX_SMAPS 0x2000 typedef enum UnsupportedProcessFields { FLAGS = 9, @@ -78,7 +79,10 @@ typedef enum LinuxProcessFields { PERCENT_IO_DELAY = 117, PERCENT_SWAP_DELAY = 118, #endif - LAST_PROCESSFIELD = 119, + M_PSS = 119, + M_SWAP = 120, + M_PSSWP = 121, + LAST_PROCESSFIELD = 122, } LinuxProcessField; #include "IOPriority.h" @@ -94,6 +98,9 @@ typedef struct LinuxProcess_ { unsigned long long int cutime; unsigned long long int cstime; long m_share; + long m_pss; + long m_swap; + long m_psswp; long m_trs; long m_drs; long m_lrs; |