Skip to main content

write_bytes

Function write_bytes 

Source
pub fn write_bytes(pid: u32) -> Option<u64>
Expand description

Bytes this process has written so far (cumulative; a rate needs two reads), read on demand. Windows: the bytes it passed to write calls (WriteTransferCount, which includes writes that stay in the cache). Linux: the same, wchar in /proc/<pid>/io. macOS: the bytes it wrote to disk (ri_diskio_byteswritten). None when the OS won’t say (the process has exited, or belongs to another user).