diff options
author | David Hunt <dhunt@iolanthe.attlocal.net> | 2015-07-13 21:02:40 -0500 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-08-19 13:52:38 -0300 |
commit | 57ab332d5a1f0f46b87049720a614e4ff46ee938 (patch) | |
tree | 8ab6733d4486cc27a3d3d2693c8ce8be4f645db9 /darwin/DarwinProcessList.h | |
parent | 6463ea29564c872bd93278878a2e5245e7d02aa0 (diff) |
Fix the thread counts
Diffstat (limited to 'darwin/DarwinProcessList.h')
-rw-r--r-- | darwin/DarwinProcessList.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/darwin/DarwinProcessList.h b/darwin/DarwinProcessList.h index a893dcfe..e02ea2dd 100644 --- a/darwin/DarwinProcessList.h +++ b/darwin/DarwinProcessList.h @@ -9,6 +9,7 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ +#include "ProcessList.h" #include <mach/mach_host.h> #include <sys/sysctl.h> @@ -16,8 +17,11 @@ typedef struct DarwinProcessList_ { ProcessList super; host_basic_info_data_t host_info; + vm_statistics64_data_t vm_stats; processor_cpu_load_info_t prev_load; processor_cpu_load_info_t curr_load; + uint64_t kernel_threads; + uint64_t user_threads; } DarwinProcessList; @@ -27,6 +31,8 @@ void ProcessList_freeCPULoadInfo(processor_cpu_load_info_t *p); unsigned ProcessList_allocateCPULoadInfo(processor_cpu_load_info_t *p); +void ProcessList_getVMStats(vm_statistics64_t p); + struct kinfo_proc *ProcessList_getKInfoProcs(size_t *count); ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidWhiteList, uid_t userId); |