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: SystemTime
Timestamp
duration: Duration
The interval time this data has averaged over in milliseconds
start_time: SystemTime
Start time
system_uptime: Duration
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
global_cpu_usage: f32
Whole system CPU usage. 100% is all cores
process_cpu_usage: f32
Process' own CPU usage. 100% is a single core
gross_cpu_usage: f32
Process' CPU usage with its awaited children. 100% is a single core
memory_rss: u64
Process' memory usage
memory_virtual: u64
Process' virtual memory usage
memory_swap: u64
Process' swap usage
memory_rss_peak: u64
Process' peak memory usage (not precise)
memory_virtual_peak: u64
Process' peak virtual memory usage (tracked by OS)
memory_swap_peak: u64
Process' swap usage (not precise)
disk_read: f32
Bytes read per second from block-backed filesystems
disk_write: f32
Bytes written per second from block-backed filesystems
disk_cancelled: f32
Bytes per second of cancelled writes (i.e. removed temporary files)
io_read: f32
Bytes read per second (total)
io_write: f32
Bytes written per second (total)
io_read_ops: f32
Read operations (syscalls) per second (total)
io_write_ops: f32
Write operations (syscalls) per second (total)