Home
last modified time | relevance | path

Searched refs:proc_stats (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/process/
Dinternal_aix.cc85 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()
[all …]
Dinternal_linux.cc76 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()
[all …]
Dprocess_iterator_linux.cc25 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()
Dinternal_aix.h44 std::vector<std::string>* proc_stats);
67 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats,
71 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats,
Dinternal_linux.h47 std::vector<std::string>* proc_stats);
70 int64_t GetProcStatsFieldAsInt64(const std::vector<std::string>& proc_stats,
74 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats,
Dprocess_metrics_linux.cc137 std::vector<std::string> proc_stats; in GetProcessCPU() local
139 !internal::ParseProcStats(buffer, &proc_stats)) { in GetProcessCPU()
144 internal::GetProcStatsFieldAsInt64(proc_stats, internal::VM_UTIME) + in GetProcessCPU()
145 internal::GetProcStatsFieldAsInt64(proc_stats, internal::VM_STIME); in GetProcessCPU()
248 std::vector<std::string> proc_stats; in GetPageFaultCounts() local
249 if (!internal::ParseProcStats(stats_data, &proc_stats)) in GetPageFaultCounts()
253 internal::GetProcStatsFieldAsInt64(proc_stats, internal::VM_MINFLT); in GetPageFaultCounts()
255 internal::GetProcStatsFieldAsInt64(proc_stats, internal::VM_MAJFLT); in GetPageFaultCounts()