Changeset View
Changeset View
Standalone View
Standalone View
contrib/top/machine.h
Show All 15 Lines | |||||
* the statics struct is filled in by machine_init | * the statics struct is filled in by machine_init | ||||
*/ | */ | ||||
struct statics | struct statics | ||||
{ | { | ||||
char **procstate_names; | char **procstate_names; | ||||
char **cpustate_names; | char **cpustate_names; | ||||
char **memory_names; | char **memory_names; | ||||
char **arc_names; | char **arc_names; | ||||
char **carc_names; | |||||
char **swap_names; | char **swap_names; | ||||
#ifdef ORDER | #ifdef ORDER | ||||
char **order_names; | char **order_names; | ||||
#endif | #endif | ||||
int ncpus; | int ncpus; | ||||
}; | }; | ||||
/* | /* | ||||
Show All 11 Lines | struct system_info | ||||
int last_pid; | int last_pid; | ||||
double load_avg[NUM_AVERAGES]; | double load_avg[NUM_AVERAGES]; | ||||
int p_total; | int p_total; | ||||
int P_ACTIVE; /* number of procs considered "active" */ | int P_ACTIVE; /* number of procs considered "active" */ | ||||
int *procstates; | int *procstates; | ||||
int *cpustates; | int *cpustates; | ||||
int *memory; | int *memory; | ||||
int *arc; | int *arc; | ||||
int *carc; | |||||
int *swap; | int *swap; | ||||
struct timeval boottime; | struct timeval boottime; | ||||
int ncpus; | int ncpus; | ||||
}; | }; | ||||
/* cpu_states is an array of percentages * 10. For example, | /* cpu_states is an array of percentages * 10. For example, | ||||
the (integer) value 105 is 10.5% (or .105). | the (integer) value 105 is 10.5% (or .105). | ||||
*/ | */ | ||||
Show All 34 Lines |