/// <summary> /// Parses /proc/{pid}/status file. /// </summary> public static bool TryParseStatuSFile(string statuSFilePath, out ParsedStatus result) { result = default(ParsedStatus); if (!TryReadFile(statuSFilePath, out string[] fileLines))
/// <summary> /// Parses /proc/{pid}/status file. /// </summary> public static bool TryParseStatuSFile(int pid, out ParsedStatus result) { string statuSFilePath = RootPath + pid.ToString() + StatuSFileName; return(TryParseStatuSFile(statuSFilePath, out result)); }