Lines Matching refs:meminfo
434 SystemMemoryInfoKB meminfo;
435 if (!GetSystemMemoryInfo(&meminfo))
437 return meminfo.total - meminfo.free - meminfo.buffers - meminfo.cached;
598 SystemMemoryInfoKB* meminfo) {
599 // The format of /proc/meminfo is:
611 meminfo->total = 0;
620 DLOG(WARNING) << "meminfo: tokens: " << tokens.size()
627 target = &meminfo->total;
629 target = &meminfo->free;
632 target = &meminfo->available;
635 target = &meminfo->buffers;
637 target = &meminfo->cached;
639 target = &meminfo->active_anon;
641 target = &meminfo->inactive_anon;
643 target = &meminfo->active_file;
645 target = &meminfo->inactive_file;
647 target = &meminfo->swap_total;
649 target = &meminfo->swap_free;
651 target = &meminfo->dirty;
656 target = &meminfo->shmem;
658 target = &meminfo->slab;
665 return meminfo->total > 0;
670 SystemMemoryInfoKB* meminfo) {
690 StringToInt(tokens[1], &meminfo->pswpin);
692 StringToInt(tokens[1], &meminfo->pswpout);
694 StringToInt(tokens[1], &meminfo->pgmajfault);
701 bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) {
706 FilePath meminfo_file("/proc/meminfo");
713 if (!ParseProcMeminfo(meminfo_data, meminfo)) {
728 meminfo->gem_objects = -1;
729 meminfo->gem_size = -1;
737 meminfo->gem_objects = gem_objects;
738 meminfo->gem_size = gem_size;
750 meminfo->gem_size += mali_size;
761 if (!ParseProcVmstat(vmstat_data, meminfo)) {