Skip to main content

read_net_dev_for_pid

Function read_net_dev_for_pid 

Source
pub fn read_net_dev_for_pid(pid: i32) -> Option<(u64, u64)>
Expand description

Total RX and TX bytes for the process’s network namespace from /proc/<pid>/net/dev. Same format as global; useful for per-process (actually per-namespace) traffic rate.