Skip to main content

CpuUsageProvider

Trait CpuUsageProvider 

Source
pub trait CpuUsageProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn cpu_usage_millis(&self) -> u32;
}
Expand description

Provides CPU usage in millicpu-style units where 1000 means 100%.

Required Methods§

Source

fn cpu_usage_millis(&self) -> u32

Returns current process or system CPU usage.

Implementors§