Home
last modified time | relevance | path

Searched refs:stats_data (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/process/
Dinternal_linux.cc70 bool ParseProcStats(const std::string& stats_data, in ParseProcStats() argument
74 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() local
138 if (!ReadProcStats(pid, &stats_data)) in ReadProcStatsAndGetFieldAsInt64()
[all …]
Dprocess_iterator_linux.cc78 std::string stats_data; in CheckForNextProcess() local
101 if (!internal::ReadProcStats(pid, &stats_data)) in CheckForNextProcess()
103 if (!internal::ParseProcStats(stats_data, &proc_stats)) in CheckForNextProcess()
Dinternal_linux.h46 bool ParseProcStats(const std::string& stats_data,