Skip to main content

parse_psi_line

Function parse_psi_line 

Source
pub fn parse_psi_line(buf: &[u8]) -> Option<PsiLine>
Expand description

Parse one line of /proc/pressure/<resource>.

some avg10=0.00 avg60=0.00 avg300=0.00 total=0

Parsed by key rather than by position: the kernel has added keys to this file before, and a positional parser would silently shift every value when it does again.