Lines Matching refs:contents
123 std::unordered_map<std::string, std::string> contents; in readKeyValueFile() local
137 if (contents.find(key) != contents.end()) { in readKeyValueFile()
141 contents[key] = value; in readKeyValueFile()
143 return contents; in readKeyValueFile()
160 auto contents = ret.value(); in readPidStatusFile() local
161 if (contents.empty()) { in readPidStatusFile()
164 if (contents.find("Uid") == contents.end() || in readPidStatusFile()
165 !ParseInt(Split(contents["Uid"], "\t")[0], &processStats->uid)) { in readPidStatusFile()
168 if (contents.find("Tgid") == contents.end() || in readPidStatusFile()
169 !ParseInt(contents["Tgid"], &processStats->tgid)) { in readPidStatusFile()
173 if (contents.find("VmPeak") != contents.end() && in readPidStatusFile()
174 !ParseUint(Split(contents["VmPeak"], " ")[0], &processStats->vmPeakKb)) { in readPidStatusFile()
177 if (contents.find("VmSize") != contents.end() && in readPidStatusFile()
178 !ParseUint(Split(contents["VmSize"], " ")[0], &processStats->vmSizeKb)) { in readPidStatusFile()
181 if (contents.find("VmHWM") != contents.end() && in readPidStatusFile()
182 !ParseUint(Split(contents["VmHWM"], " ")[0], &processStats->vmHwmKb)) { in readPidStatusFile()
185 if (contents.find("VmRSS") != contents.end() && in readPidStatusFile()
186 !ParseUint(Split(contents["VmRSS"], " ")[0], &processStats->vmRssKb)) { in readPidStatusFile()