DarwinMachine.h 651 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef HEADER_DarwinMachine
  2. #define HEADER_DarwinMachine
  3. /*
  4. htop - DarwinMachine.h
  5. (C) 2014 Hisham H. Muhammad
  6. Released under the GNU GPLv2+, see the COPYING file
  7. in the source distribution for its full text.
  8. */
  9. #include <mach/mach_host.h>
  10. #include <sys/sysctl.h>
  11. #include "Machine.h"
  12. #include "zfs/ZfsArcStats.h"
  13. typedef struct DarwinMachine_ {
  14. Machine super;
  15. host_basic_info_data_t host_info;
  16. #ifdef HAVE_STRUCT_VM_STATISTICS64
  17. vm_statistics64_data_t vm_stats;
  18. #else
  19. vm_statistics_data_t vm_stats;
  20. #endif
  21. processor_cpu_load_info_t prev_load;
  22. processor_cpu_load_info_t curr_load;
  23. ZfsArcStats zfs;
  24. } DarwinMachine;
  25. #endif