2004-09-06 11:02:04 +08:00
|
|
|
#ifndef SIGAR_OS_H
|
|
|
|
#define SIGAR_OS_H
|
|
|
|
|
2004-09-06 12:25:29 +08:00
|
|
|
#include <sys/table.h>
|
|
|
|
/* "i will *punch* you in the *face*" --will ferrell */
|
|
|
|
#undef idle
|
|
|
|
#undef usr
|
|
|
|
#undef sys
|
|
|
|
|
2004-09-07 00:14:16 +08:00
|
|
|
#include <errno.h>
|
2004-09-06 11:27:28 +08:00
|
|
|
#include <sys/vm.h>
|
|
|
|
|
|
|
|
#include <mach.h>
|
|
|
|
#include <mach/mach_types.h>
|
|
|
|
#include <mach/vm_statistics.h>
|
|
|
|
|
2004-09-06 11:02:04 +08:00
|
|
|
struct sigar_t {
|
|
|
|
SIGAR_T_BASE;
|
2004-09-06 12:25:29 +08:00
|
|
|
int pagesize;
|
2004-09-07 02:14:50 +08:00
|
|
|
int mhz;
|
2004-09-23 08:39:16 +08:00
|
|
|
int nproc;
|
2004-09-06 11:02:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* SIGAR_OS_H */
|