Lines Matching refs:proc_stats
76 std::vector<std::string>* proc_stats) { in ParseProcStats() argument
97 proc_stats->clear(); in ParseProcStats()
99 proc_stats->push_back(stats_data.substr(0, open_parens_idx)); in ParseProcStats()
101 proc_stats->push_back( in ParseProcStats()
110 proc_stats->push_back(other_stats[i]); in ParseProcStats()
123 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsInt64() argument
126 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsInt64()
129 return StringToInt64(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsInt64()
132 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsSizeT() argument
135 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsSizeT()
138 return StringToSizeT(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsSizeT()
146 std::vector<std::string> proc_stats; in ReadStatFileAndGetFieldAsInt64() local
147 if (!ParseProcStats(stats_data, &proc_stats)) in ReadStatFileAndGetFieldAsInt64()
149 return GetProcStatsFieldAsInt64(proc_stats, field_num); in ReadStatFileAndGetFieldAsInt64()
167 std::vector<std::string> proc_stats; in ReadProcStatsAndGetFieldAsSizeT() local
168 if (!ParseProcStats(stats_data, &proc_stats)) in ReadProcStatsAndGetFieldAsSizeT()
170 return GetProcStatsFieldAsSizeT(proc_stats, field_num); in ReadProcStatsAndGetFieldAsSizeT()