BSD: implement nodeGetCPUStats

Implementation obtains CPU usage information using
kern.cp_time and kern.cp_times sysctl(8)s and reports
CPU utilization.
This commit is contained in:
Roman Bogorodskiy authored and Ján Tomko committed 2014-02-06 14:09:15 +01:00
1 parent 05bf937572
commit 3b00df01fb
3 files changed
+121 -2

No files matched your search

+8
View File
@@ -691,6 +691,14 @@ typedef enum {
*/
#define VIR_NODE_CPU_STATS_IOWAIT "iowait"
/**
* VIR_NODE_CPU_STATS_INTR:
*
* The cumulative interrupt CPU time,
* since the node booting up (in nanoseconds).
*/
#define VIR_NODE_CPU_STATS_INTR "intr"
/**
* VIR_NODE_CPU_STATS_UTILIZATION:
*