/external/chromium_org/base/process/ |
internal_linux.cc | 70 std::vector<std::string>* proc_stats) { 91 proc_stats->clear(); 93 proc_stats->push_back(stats_data.substr(0, open_parens_idx)); 95 proc_stats->push_back( 103 proc_stats->push_back(other_stats[i]); 118 int GetProcStatsFieldAsInt(const std::vector<std::string>& proc_stats, 121 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()); 124 return StringToInt(proc_stats[field_num], &value) ? value : 0; 127 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats, 130 CHECK_LT(static_cast<size_t>(field_num), proc_stats.size()) [all...] |
process_iterator_linux.cc | 17 // Reads the |field_num|th field from |proc_stats|. 22 const std::vector<std::string>& proc_stats, 29 if (proc_stats.size() > static_cast<size_t>(field_num)) 30 return proc_stats[field_num]; 75 std::vector<std::string> proc_stats; local 99 if (!internal::ParseProcStats(stats_data, &proc_stats)) 103 GetProcStatsFieldAsString(proc_stats, internal::VM_STATE); 124 entry_.ppid_ = GetProcStatsFieldAsInt(proc_stats, internal::VM_PPID); 125 entry_.gid_ = GetProcStatsFieldAsInt(proc_stats, internal::VM_PGRP);
|
internal_linux.h | 39 // Takes |stats_data| and populates |proc_stats| with the values split by 43 std::vector<std::string>* proc_stats); 61 // Reads the |field_num|th field from |proc_stats|. Returns 0 on failure. 64 int GetProcStatsFieldAsInt(const std::vector<std::string>& proc_stats, 68 size_t GetProcStatsFieldAsSizeT(const std::vector<std::string>& proc_stats,
|
process_metrics_linux.cc | 374 std::vector<std::string> proc_stats; local 375 if (!internal::ParseProcStats(input, &proc_stats)) 378 if (proc_stats.size() <= internal::VM_STIME) 380 int utime = GetProcStatsFieldAsInt(proc_stats, internal::VM_UTIME); 381 int stime = GetProcStatsFieldAsInt(proc_stats, internal::VM_STIME);
|
/external/chromium/base/ |
process_util_linux.cc | 34 // Reads /proc/<pid>/stat and populates |proc_stats| with the values split by 36 bool GetProcStats(pid_t pid, std::vector<std::string>* proc_stats) { 46 base::SplitString(mem_stats, ' ', proc_stats); 269 std::vector<std::string> proc_stats; local 270 if (!GetProcStats(process_, &proc_stats)) 273 if (proc_stats.size() > kVmSize) { 275 base::StringToInt(proc_stats[kVmSize], &vm_size); 283 std::vector<std::string> proc_stats; local 284 if (!GetProcStats(process_, &proc_stats)) 287 if (proc_stats.size() > kVmPeak) 297 std::vector<std::string> proc_stats; local 311 std::vector<std::string> proc_stats; local [all...] |
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
BandwidthTest.java | 126 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); local 135 AddStatsToResults(PROC_LABEL, proc_stats, results); 180 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); local 189 AddStatsToResults(PROC_LABEL, proc_stats, results); 237 NetworkStats proc_stats = post_test_stats.subtract(pre_test_stats); local 246 AddStatsToResults(PROC_LABEL, proc_stats, results);
|
/packages/apps/Settings/res/xml/ |
development_prefs.xml | 59 <PreferenceScreen android:key="proc_stats"
|