Searched refs:proc_stats (Results 1 – 3 of 3) sorted by relevance
/external/libchrome/base/process/ |
D | internal_linux.cc | 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() [all …]
|
D | process_iterator_linux.cc | 25 const std::vector<std::string>& proc_stats, in GetProcStatsFieldAsString() argument 32 if (proc_stats.size() > static_cast<size_t>(field_num)) in GetProcStatsFieldAsString() 33 return proc_stats[field_num]; in GetProcStatsFieldAsString() 89 std::vector<std::string> proc_stats; in CheckForNextProcess() local 113 if (!internal::ParseProcStats(stats_data, &proc_stats)) in CheckForNextProcess() 117 GetProcStatsFieldAsString(proc_stats, internal::VM_STATE); in CheckForNextProcess() 138 entry_.ppid_ = GetProcStatsFieldAsInt64(proc_stats, internal::VM_PPID); in CheckForNextProcess() 139 entry_.gid_ = GetProcStatsFieldAsInt64(proc_stats, internal::VM_PGRP); in CheckForNextProcess()
|
D | internal_linux.h | 47 std::vector<std::string>* proc_stats); 68 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats, 72 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats,
|