Struct self_meter::Report [] [src]

pub struct Report {
    pub timestamp: SystemTime,
    pub duration: Duration,
    pub start_time: SystemTime,
    pub system_uptime: Duration,
    pub global_cpu_usage: f32,
    pub process_cpu_usage: f32,
    pub gross_cpu_usage: f32,
    pub memory_rss: u64,
    pub memory_virtual: u64,
    pub memory_swap: u64,
    pub memory_rss_peak: u64,
    pub memory_virtual_peak: u64,
    pub memory_swap_peak: u64,
    pub disk_read: f32,
    pub disk_write: f32,
    pub disk_cancelled: f32,
    pub io_read: f32,
    pub io_write: f32,
    pub io_read_ops: f32,
    pub io_write_ops: f32,
}

Report returned by Meter::report

Note: this structure implements serde::Serialize, and all timestamps and durations are stored as integers in milliseconds.

Fields

Timestamp

The interval time this data has averaged over in milliseconds

Start time

The uptime of the system

Note this value can be smaller than time since start_time because this value doesn't include time when system was sleeping

Whole system CPU usage. 100% is all cores

Process' own CPU usage. 100% is a single core

Process' CPU usage with its awaited children. 100% is a single core

Process' memory usage

Process' virtual memory usage

Process' swap usage

Process' peak memory usage (not precise)

Process' peak virtual memory usage (tracked by OS)

Process' swap usage (not precise)

Bytes read per second from block-backed filesystems

Bytes written per second from block-backed filesystems

Bytes per second of cancelled writes (i.e. removed temporary files)

Bytes read per second (total)

Bytes written per second (total)

Read operations (syscalls) per second (total)

Write operations (syscalls) per second (total)

Trait Implementations

impl Debug for Report
[src]

Formats the value using the given formatter.