Lines Matching refs:proc_stats
71 std::vector<std::string>* proc_stats) { in ParseProcStats() argument
92 proc_stats->clear(); in ParseProcStats()
94 proc_stats->push_back(stats_data.substr(0, open_parens_idx)); in ParseProcStats()
96 proc_stats->push_back( in ParseProcStats()
105 proc_stats->push_back(other_stats[i]); in ParseProcStats()
118 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsInt64() argument
121 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsInt64()
124 return StringToInt64(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsInt64()
127 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsSizeT() argument
130 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsSizeT()
133 return StringToSizeT(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsSizeT()
140 std::vector<std::string> proc_stats; in ReadProcStatsAndGetFieldAsInt64() local
141 if (!ParseProcStats(stats_data, &proc_stats)) in ReadProcStatsAndGetFieldAsInt64()
143 return GetProcStatsFieldAsInt64(proc_stats, field_num); in ReadProcStatsAndGetFieldAsInt64()
151 std::vector<std::string> proc_stats; in ReadProcStatsAndGetFieldAsSizeT() local
152 if (!ParseProcStats(stats_data, &proc_stats)) in ReadProcStatsAndGetFieldAsSizeT()
154 return GetProcStatsFieldAsSizeT(proc_stats, field_num); in ReadProcStatsAndGetFieldAsSizeT()