Skip to main content

current_process_memory_bytes

Function current_process_memory_bytes 

Source
pub fn current_process_memory_bytes() -> Option<u64>
Expand description

Resident bytes for the current Harn process.

Linux sandboxes may deliberately hide /proc, which prevents sysinfo from reporting current RSS. In that case this returns the kernel’s peak resident-set counter so memory telemetry remains available without adding filesystem authority.