mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
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:
1 parent
05bf937572
commit
3b00df01fb
3 files changed
+121
-2
No files matched your search
@@ -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:
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user