Lines Matching refs:pairs
34 void TrimKeyValuePairs(StringPairs* pairs) { in TrimKeyValuePairs() argument
35 DCHECK(pairs); in TrimKeyValuePairs()
36 StringPairs& p_ref = *pairs; in TrimKeyValuePairs()
69 StringPairs pairs; in ReadProcStatusAndGetFieldAsSizeT() local
70 SplitStringIntoKeyValuePairs(status, ':', '\n', &pairs); in ReadProcStatusAndGetFieldAsSizeT()
71 TrimKeyValuePairs(&pairs); in ReadProcStatusAndGetFieldAsSizeT()
72 for (size_t i = 0; i < pairs.size(); ++i) { in ReadProcStatusAndGetFieldAsSizeT()
73 const std::string& key = pairs[i].first; in ReadProcStatusAndGetFieldAsSizeT()
74 const std::string& value_str = pairs[i].second; in ReadProcStatusAndGetFieldAsSizeT()
111 StringPairs pairs; in ReadProcSchedAndGetFieldAsUint64() local
112 SplitStringIntoKeyValuePairs(sched_data, ':', '\n', &pairs); in ReadProcSchedAndGetFieldAsUint64()
113 TrimKeyValuePairs(&pairs); in ReadProcSchedAndGetFieldAsUint64()
114 for (size_t i = 0; i < pairs.size(); ++i) { in ReadProcSchedAndGetFieldAsUint64()
115 const std::string& key = pairs[i].first; in ReadProcSchedAndGetFieldAsUint64()
116 const std::string& value_str = pairs[i].second; in ReadProcSchedAndGetFieldAsUint64()
273 StringPairs pairs; in GetIOCounters() local
274 SplitStringIntoKeyValuePairs(proc_io_contents, ':', '\n', &pairs); in GetIOCounters()
275 TrimKeyValuePairs(&pairs); in GetIOCounters()
276 for (size_t i = 0; i < pairs.size(); ++i) { in GetIOCounters()
277 const std::string& key = pairs[i].first; in GetIOCounters()
278 const std::string& value_str = pairs[i].second; in GetIOCounters()