Lines Matching refs:fields
37 std::vector<std::string> fields = android::base::Split(line, " "); in CpuUsage() local
38 if (fields[0].find("cpu") != std::string::npos && fields[0] != "cpu") { in CpuUsage()
89 std::vector<std::string> fields = android::base::Split(pidStat, " "); in profileProcess() local
96 if (!base::ParseUint(fields[0], &pid) || in profileProcess()
97 !base::ParseUint(fields[13], &utime) || in profileProcess()
98 !base::ParseUint(fields[14], &stime) || in profileProcess()
99 !base::ParseUint(fields[15], &cutime) || in profileProcess()
100 !base::ParseUint(fields[16], &cstime)) { in profileProcess()
104 std::string proc = fields[1]; in profileProcess()
164 std::vector<std::string> fields = android::base::Split(line, " "); in getOverallUsage() local
165 if (fields[0].find("cpu") != std::string::npos) { in getOverallUsage()
166 std::string cpuStr = fields[0]; in getOverallUsage()
181 if (!base::ParseUint(fields[base], &user) || in getOverallUsage()
182 !base::ParseUint(fields[base + 1], &nice) || in getOverallUsage()
183 !base::ParseUint(fields[base + 2], &system) || in getOverallUsage()
184 !base::ParseUint(fields[base + 3], &idle) || in getOverallUsage()
185 !base::ParseUint(fields[base + 4], &iowait) || in getOverallUsage()
186 !base::ParseUint(fields[base + 5], &irq) || in getOverallUsage()
187 !base::ParseUint(fields[base + 6], &softirq) || in getOverallUsage()
188 !base::ParseUint(fields[base + 7], &steal)) { in getOverallUsage()