Searched refs:vma (Results 1 – 4 of 4) sorted by relevance
/system/core/libmeminfo/tools/ |
D | showmap.cpp | 35 Vma vma; member 40 VmaInfo(const Vma& v) : vma(v), is_bss(false), count(1) {} in VmaInfo() 41 VmaInfo(const Vma& v, bool bss) : vma(v), is_bss(bss), count(1) {} in VmaInfo() 42 VmaInfo(const Vma& v, const std::string& name, bool bss) : vma(v), is_bss(bss), count(1) { in VmaInfo() 43 vma.name = name; in VmaInfo() 78 return (a.vma.start < b.vma.start || (a.vma.start == b.vma.start && a.vma.end < b.vma.end)); in insert_before() 81 return strcmp(a.vma.name.c_str(), b.vma.name.c_str()) < 0; in insert_before() 84 static void collect_vma(const Vma& vma) { in collect_vma() argument 86 g_vmas.emplace_back(vma); in collect_vma() 90 VmaInfo current(vma); in collect_vma() [all …]
|
D | procmem.cpp | 100 for (auto& vma : maps) { in show() local 101 const MemUsage& vma_stats = vma.usage; in show() 106 ss << vma.name << std::endl; in show()
|
/system/core/libmeminfo/ |
D | procmeminfo.cpp | 137 auto collect_vmas = [&](const Vma& vma) { maps_.emplace_back(vma); }; in Smaps() argument 210 bool ProcMemInfo::PageMap(const Vma& vma, std::vector<uint64_t>* pagemap) { in PageMap() argument 220 uint64_t nr_pages = (vma.end - vma.start) / getpagesize(); in PageMap() 223 uint64_t idx = vma.start / getpagesize(); in PageMap() 266 for (auto& vma : maps_) { in ReadMaps() local 267 if (!ReadVmaStats(pagemap_fd.get(), vma, get_wss, use_pageidle)) { in ReadMaps() 268 LOG(ERROR) << "Failed to read page map for vma " << vma.name << "[" << vma.start << "-" in ReadMaps() 269 << vma.end << "]"; in ReadMaps() 273 add_mem_usage(&usage_, vma.usage); in ReadMaps() 279 bool ProcMemInfo::ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle) { in ReadVmaStats() argument [all …]
|
/system/core/libmeminfo/include/meminfo/ |
D | procmeminfo.h | 86 bool PageMap(const Vma& vma, std::vector<uint64_t>* pagemap); 92 bool ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle);
|