Skip to main content

get_rss_bytes

Function get_rss_bytes 

Source
pub fn get_rss_bytes() -> u64
Expand description

Get current process RSS (Resident Set Size) in bytes.

Returns 0 on unsupported platforms (WASM, Windows, etc.). On Linux reads /proc/self/statm; on macOS calls the Mach task_info API.