diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-09-21 15:47:54 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-09-21 15:47:54 -0700 |
commit | e02654ff390253854338f4f586286f4e07912a96 (patch) | |
tree | c487deb5080e98947070b37d86cbdb41f7e52ebe /src/libvmon/vmon.h | |
parent | 2c8f7588adc95197b231ec6d15c085ad5422f0d8 (diff) |
libvmon: get the number of cpus
Preparatory commit for enabling charts that scale per-thread and
per-non-threaded-process CPU utilization levels by number of
cpus, so they can utilize the whole row.
Diffstat (limited to 'src/libvmon/vmon.h')
-rw-r--r-- | src/libvmon/vmon.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libvmon/vmon.h b/src/libvmon/vmon.h index cf282b0..6668605 100644 --- a/src/libvmon/vmon.h +++ b/src/libvmon/vmon.h @@ -277,6 +277,7 @@ typedef struct _vmon_t { vmon_sys_wants_t sys_wants; /* system-wide wants mask */ vmon_proc_wants_t proc_wants; /* inherited per-process wants mask */ long ticks_per_sec; /* sysconf(_SC_CLK_TCK) */ + long num_cpus; /* sysconf(_SC_NPROCESSORS_ONLN) */ /* function tables for mapping of wants bits to functions (sys-wide and per-process) */ int (*sys_funcs[VMON_STORE_SYS_NR])(struct _vmon_t *, void **); |