Searched refs:stats_data (Results 1 – 3 of 3) sorted by relevance
70 bool ParseProcStats(const std::string& stats_data, in ParseProcStats() argument74 if (stats_data.empty()) in ParseProcStats()81 size_t open_parens_idx = stats_data.find(" ("); in ParseProcStats()82 size_t close_parens_idx = stats_data.rfind(") "); in ParseProcStats()86 DLOG(WARNING) << "Failed to find matched parens in '" << stats_data << "'"; in ParseProcStats()94 proc_stats->push_back(stats_data.substr(0, open_parens_idx)); in ParseProcStats()97 stats_data.substr(open_parens_idx + 1, in ParseProcStats()102 stats_data.substr(close_parens_idx + 2), " ", in ParseProcStats()137 std::string stats_data; in ReadProcStatsAndGetFieldAsInt64() local138 if (!ReadProcStats(pid, &stats_data)) in ReadProcStatsAndGetFieldAsInt64()[all …]
78 std::string stats_data; in CheckForNextProcess() local101 if (!internal::ReadProcStats(pid, &stats_data)) in CheckForNextProcess()103 if (!internal::ParseProcStats(stats_data, &proc_stats)) in CheckForNextProcess()
46 bool ParseProcStats(const std::string& stats_data,