/external/chromium_org/base/process/ |
process_metrics_unittest.cc | 63 struct SystemMemoryInfoKB meminfo; local 76 EXPECT_FALSE(ParseProcMeminfo(invalid_input1, &meminfo)); 77 EXPECT_FALSE(ParseProcMeminfo(invalid_input2, &meminfo)); 78 EXPECT_FALSE(ParseProcMeminfo(invalid_input3, &meminfo)); 145 EXPECT_TRUE(ParseProcMeminfo(valid_input1, &meminfo)); 146 EXPECT_TRUE(meminfo.total == 3981504); 147 EXPECT_TRUE(meminfo.free == 140764); 148 EXPECT_TRUE(meminfo.buffers == 116480); 149 EXPECT_TRUE(meminfo.cached == 406160); 150 EXPECT_TRUE(meminfo.active_anon == 2972352) 172 struct SystemMemoryInfoKB meminfo; local [all...] |
process_metrics_linux.cc | 380 SystemMemoryInfoKB meminfo; local 381 if (!GetSystemMemoryInfo(&meminfo)) 383 return meminfo.total - meminfo.free - meminfo.buffers - meminfo.cached; 516 SystemMemoryInfoKB* meminfo) { 517 // The format of /proc/meminfo is: 529 meminfo->total = 0; 541 StringToInt(tokens[1], &meminfo->total) [all...] |
process_metrics.h | 247 // Data from /proc/meminfo about system-wide memory consumption. 281 // Parses a string containing the contents of /proc/meminfo 284 SystemMemoryInfoKB* meminfo); 289 SystemMemoryInfoKB* meminfo); 291 // Retrieves data from /proc/meminfo and /proc/vmstat 293 // Fills in the provided |meminfo| structure. Returns true on success. 295 BASE_EXPORT bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo);
|
/external/chromium_org/tools/telemetry/telemetry/core/platform/ |
proc_supporting_platform_backend.py | 21 meminfo_contents = self._GetFileContents('/proc/meminfo') 22 meminfo = self._GetProcFileDict(meminfo_contents) 23 return (self._ConvertKbToByte(meminfo['MemTotal']) 24 - self._ConvertKbToByte(meminfo['MemFree']) 25 - self._ConvertKbToByte(meminfo['Buffers']) 26 - self._ConvertKbToByte(meminfo['Cached']))
|
/external/chromium_org/chrome/browser/ui/webui/ |
about_ui.cc | 481 base::SystemMemoryInfoKB meminfo; local 482 base::GetSystemMemoryInfo(&meminfo); 487 "Total", base::IntToString(meminfo.total / 1024))); 489 "Free", base::IntToString(meminfo.free / 1024))); 490 int mem_allocated_kb = meminfo.active_anon + meminfo.inactive_anon; 493 if (meminfo.gem_size != -1) 494 mem_allocated_kb += meminfo.gem_size / 1024; 501 "Buffered", base::IntToString(meminfo.buffers / 1024))); 503 "Cached", base::IntToString(meminfo.cached / 1024))) [all...] |
/external/chromium_org/chrome/browser/ |
memory_details.cc | 468 base::SystemMemoryInfoKB meminfo; local 469 if (base::GetSystemMemoryInfo(&meminfo) && meminfo.gem_size != -1) 470 UMA_HISTOGRAM_MEMORY_MB("Memory.Graphics", meminfo.gem_size / 1024 / 1024);
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
MemoryUsageTest.java | 255 MemoryInfo meminfo = am.getProcessMemoryInfo(pids)[0]; local 256 return meminfo.getTotalPss();
|
/sdk/apps/DeviceConfig/src/com/example/android/deviceconfig/ |
ConfigGenerator.java | 455 BufferedReader meminfo = new BufferedReader(new FileReader("/proc/meminfo")); local 456 while ((line = meminfo.readLine()) != null) { 473 meminfo.close();
|
/external/chromium_org/tools/gyp/pylib/gyp/generator/ |
ninja.py | [all...] |