Skip to main content

csv_header

Function csv_header 

Source
pub fn csv_header() -> &'static str
Expand description

CSV header using the same system_/process_ prefix convention as Python resource-tracker. System columns (21) cover host-wide metrics; process columns (11) cover the tracked PID tree.

Unit notes: system_cpu_usage - fractional cores (0..N), same as Python system_memory_mib - mebibytes (MiB = 1,048,576 bytes) system_disk - bytes per interval, same as Python system_net_* - bytes per interval, same as Python system_disk_space_* - GB summed across all block-device mounts system_gpu_vram_mib - MiB, same as Python process_cpu_usage - fractional cores consumed by tracked PID tree

Process fields not yet collected are emitted as empty strings.