Skip to main content

parse_stat

Function parse_stat 

Source
pub fn parse_stat(text: &str) -> Option<(u64, u64, u64)>
Expand description

The fields of /proc/<pid>/stat the measures need. The command name is in parentheses and may hold spaces and parentheses, so the fields are counted from the last ): state is the first after it, which makes utime the 12th, stime the 13th, num_threads the 18th and rss the 22nd.