2015-07-12 13:47:43 -05:00
|
|
|
#ifndef HEADER_DarwinProcessList
|
|
|
|
#define HEADER_DarwinProcessList
|
|
|
|
/*
|
|
|
|
htop - DarwinProcessList.h
|
|
|
|
(C) 2014 Hisham H. Muhammad
|
2020-10-05 09:51:32 +02:00
|
|
|
Released under the GNU GPLv2, see the COPYING file
|
2015-07-12 13:47:43 -05:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2020-11-17 15:10:44 +01:00
|
|
|
#include <mach/mach_host.h>
|
|
|
|
#include <sys/sysctl.h>
|
2019-07-07 17:30:37 -04:00
|
|
|
|
2015-07-13 21:02:40 -05:00
|
|
|
#include "ProcessList.h"
|
2019-07-07 23:27:00 +00:00
|
|
|
#include "zfs/ZfsArcStats.h"
|
2020-11-17 15:10:44 +01:00
|
|
|
|
2015-07-12 13:47:43 -05:00
|
|
|
|
2015-07-13 01:17:14 -05:00
|
|
|
typedef struct DarwinProcessList_ {
|
|
|
|
ProcessList super;
|
|
|
|
|
2015-07-13 16:53:46 -05:00
|
|
|
host_basic_info_data_t host_info;
|
2016-01-13 20:57:29 +01:00
|
|
|
vm_statistics_data_t vm_stats;
|
2015-07-13 17:09:18 -05:00
|
|
|
processor_cpu_load_info_t prev_load;
|
|
|
|
processor_cpu_load_info_t curr_load;
|
2015-07-13 21:02:40 -05:00
|
|
|
uint64_t kernel_threads;
|
|
|
|
uint64_t user_threads;
|
2015-07-14 11:46:16 -05:00
|
|
|
uint64_t global_diff;
|
2019-07-07 17:30:37 -04:00
|
|
|
|
2019-07-07 23:27:00 +00:00
|
|
|
ZfsArcStats zfs;
|
2015-07-13 01:17:14 -05:00
|
|
|
} DarwinProcessList;
|
|
|
|
|
2021-06-23 17:44:56 +10:00
|
|
|
ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* dynamicMeters, Hashtable* pidMatchList, uid_t userId);
|
2015-07-12 13:47:43 -05:00
|
|
|
|
|
|
|
void ProcessList_delete(ProcessList* this);
|
|
|
|
|
2020-10-13 16:03:37 +02:00
|
|
|
void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate);
|
2015-07-12 13:47:43 -05:00
|
|
|
|
|
|
|
#endif
|