Home
last modified time | relevance | path

Searched refs:field_num (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/process/
Dinternal_linux.cc119 ProcStatsFields field_num) { in GetProcStatsFieldAsInt64() argument
120 DCHECK_GE(field_num, VM_PPID); in GetProcStatsFieldAsInt64()
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()
128 ProcStatsFields field_num) { in GetProcStatsFieldAsSizeT() argument
129 DCHECK_GE(field_num, VM_PPID); in GetProcStatsFieldAsSizeT()
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()
136 int64_t ReadProcStatsAndGetFieldAsInt64(pid_t pid, ProcStatsFields field_num) { in ReadProcStatsAndGetFieldAsInt64() argument
143 return GetProcStatsFieldAsInt64(proc_stats, field_num); in ReadProcStatsAndGetFieldAsInt64()
[all …]
Dinternal_linux.h69 ProcStatsFields field_num);
73 ProcStatsFields field_num);
77 int64_t ReadProcStatsAndGetFieldAsInt64(pid_t pid, ProcStatsFields field_num);
81 ProcStatsFields field_num);
Dprocess_iterator_linux.cc26 internal::ProcStatsFields field_num) { in GetProcStatsFieldAsString() argument
27 if (field_num < internal::VM_COMM || field_num > internal::VM_STATE) { in GetProcStatsFieldAsString()
32 if (proc_stats.size() > static_cast<size_t>(field_num)) in GetProcStatsFieldAsString()
33 return proc_stats[field_num]; in GetProcStatsFieldAsString()