Lines Matching refs:proc_stats
85 std::vector<std::string>* proc_stats) { in ParseProcStats() argument
90 proc_stats->clear(); in ParseProcStats()
92 proc_stats->push_back(IntToString(stats_data.pr_pid)); in ParseProcStats()
94 proc_stats->push_back(stats_data.pr_fname); in ParseProcStats()
96 proc_stats->push_back("0"); in ParseProcStats()
98 proc_stats->push_back(IntToString(stats_data.pr_ppid)); in ParseProcStats()
101 proc_stats->push_back(IntToString(stats_data.pr_pgid)); in ParseProcStats()
115 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsInt64() argument
118 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsInt64()
121 return StringToInt64(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsInt64()
124 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsSizeT() argument
127 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); in GetProcStatsFieldAsSizeT()
130 return StringToSizeT(proc_stats[field_num], &value) ? value : 0; in GetProcStatsFieldAsSizeT()
137 std::vector<std::string> proc_stats; in ReadProcStatsAndGetFieldAsInt64() local
138 if (!ParseProcStats(stats_data, &proc_stats)) in ReadProcStatsAndGetFieldAsInt64()
141 return GetProcStatsFieldAsInt64(proc_stats, field_num); in ReadProcStatsAndGetFieldAsInt64()
148 std::vector<std::string> proc_stats; in ReadProcStatsAndGetFieldAsSizeT() local
149 if (!ParseProcStats(stats_data, &proc_stats)) in ReadProcStatsAndGetFieldAsSizeT()
151 return GetProcStatsFieldAsSizeT(proc_stats, field_num); in ReadProcStatsAndGetFieldAsSizeT()