Searched refs:smaps (Results 1 – 2 of 2) sorted by relevance
156 char *smaps = nullptr; in GetMemoryProfile() local159 if (!ReadFileToBuffer("/proc/self/smaps", &smaps, &smaps_cap, &smaps_len)) in GetMemoryProfile()163 const char *pos = smaps; in GetMemoryProfile()164 while (pos < smaps + smaps_len) { in GetMemoryProfile()176 UnmapOrDie(smaps, smaps_cap); in GetMemoryProfile()
237 with open(filename, 'r') as smaps:239 for line in smaps:319 smaps = dict((key, sum(values) * 1024) for key, values in321 return smaps