pub fn parse_linux_stat(stat: &str) -> Option<(String, i64)>Expand description
What:
The state letter and start ticks of a /proc/<pid>/stat line.
Why:
parseLinuxStat:
the command name ends at the last );
field 22 must be a safe
integer as Number reads it.
In TS you’d write (pseudocode):
function parseLinuxStat(stat: string): { state: string; startTicks: number }; // throws TypeError