diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-05-24 22:46:01 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-05-24 22:46:01 +0000 |
commit | 6cfa9e0bf2ded1add3f018986268d9b1c3b119b6 (patch) | |
tree | eef7e35c7002f1e375fdd671380c3f1e8b9b839a /Process.h | |
parent | 5c2d84aba37e79a2a07cf846c340c0e3d74695f0 (diff) |
Performance improvements due to conditional parsing of IO data depending on selected fields.
On my machine, this gives a ~20% improvement in htop process time use with the default config.
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -24,6 +24,12 @@ in the source distribution for its full text. #include "IOPriority.h" #include <sys/types.h> +#define PROCESS_FLAG_IO 1 +#define PROCESS_FLAG_IOPRIO 2 +#define PROCESS_FLAG_OPENVZ 4 +#define PROCESS_FLAG_VSERVER 8 +#define PROCESS_FLAG_CGROUP 16 + #ifndef Process_isKernelThread #define Process_isKernelThread(_process) (_process->pgrp == 0) #endif @@ -155,6 +161,8 @@ typedef struct Process_ { extern const char *Process_fieldNames[]; +extern const int Process_fieldFlags[]; + extern const char *Process_fieldTitles[]; |