Lines Matching refs:lines
98 std::vector<std::string> lines = Split(std::move(buffer), "\n"); in getProcStatLocked() local
102 for (size_t i = 0; i < lines.size(); i++) { in getProcStatLocked()
103 if (lines[i].empty()) { in getProcStatLocked()
106 if (!lines[i].compare(0, 4, "cpu ")) { in getProcStatLocked()
110 if (!parseCpuStats(std::move(lines[i]), &info.cpuStats)) { in getProcStatLocked()
113 } else if (!lines[i].compare(0, 6, "procs_")) { in getProcStatLocked()
114 if (!lines[i].compare(0, 13, "procs_running")) { in getProcStatLocked()
118 if (!parseProcsCount(std::move(lines[i]), &info.runnableProcessesCnt)) { in getProcStatLocked()
123 } else if (!lines[i].compare(0, 13, "procs_blocked")) { in getProcStatLocked()
127 if (!parseProcsCount(std::move(lines[i]), &info.ioBlockedProcessesCnt)) { in getProcStatLocked()
133 return Error() << "Unknown procs_ line `" << lines[i] << "` in " << kPath; in getProcStatLocked()