Searched refs:Vma (Results 1 – 8 of 8) sorted by relevance
29 using VmaCallback = std::function<void(const Vma&)>;39 const std::vector<Vma>& Maps();46 const std::vector<Vma>& MapsWithPageIdle();52 const std::vector<Vma>& Smaps(const std::string& path = "");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);99 std::vector<Vma> maps_;
63 struct Vma { struct70 Vma() : start(0), end(0), offset(0), flags(0), name("") {} in Vma() argument71 Vma(uint64_t s, uint64_t e, uint64_t off, uint16_t f, const char* n) in Vma() argument73 ~Vma() = default;
33 using ::android::meminfo::Vma;68 static void print_vma(const Vma& v) { in print_vma()78 static bool same_vma(const Vma& cur, const Vma& last) { in same_vma()83 static Vma diff_vma_params(const Vma& cur, const Vma& last) { in diff_vma_params()84 Vma res; in diff_vma_params()114 static void diff_workingset(std::vector<Vma>& wss, std::vector<Vma>& old, std::vector<Vma>* res) { in diff_workingset()116 auto vma_sorter = [](const Vma& a, const Vma& b) { return a.start < b.start; }; in diff_workingset()146 std::vector<Vma> last_wss = {}; in workingset()147 std::vector<Vma> diff_wss = {}; in workingset()152 std::vector<Vma> wss = proc_mem->MapsWithPageIdle(); in workingset()
30 using Vma = ::android::meminfo::Vma; typedef97 static int show(const MemUsage& proc_stats, const std::vector<Vma>& maps) { in show()118 auto pss_sort = [](const Vma& a, const Vma& b) { in main()124 auto uss_sort = [](const Vma& a, const Vma& b) { in main()130 std::function<bool(const Vma& a, const Vma& b)> sort_func = nullptr; in main()186 std::vector<Vma> maps(proc.Maps()); in main()
32 using ::android::meminfo::Vma;35 Vma vma;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()84 static void collect_vma(const Vma& vma) { in collect_vma()
42 using ::android::meminfo::Vma;171 const std::vector<Vma> maps = pmem.Maps(); in scan_libs_per_process()
116 const std::vector<Vma>& ProcMemInfo::Maps() { in Maps()124 const std::vector<Vma>& ProcMemInfo::MapsWithPageIdle() { in MapsWithPageIdle()132 const std::vector<Vma>& ProcMemInfo::Smaps(const std::string& path) { in Smaps()137 auto collect_vmas = [&](const Vma& vma) { maps_.emplace_back(vma); }; in Smaps()210 bool ProcMemInfo::PageMap(const Vma& vma, std::vector<uint64_t>* pagemap) { in PageMap()251 maps_.emplace_back(Vma(start, end, pgoff, flags, name)); in ReadMaps()279 bool ProcMemInfo::ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle) { in ReadVmaStats()377 Vma vma; in ForEachVmaFromFile()
59 const std::vector<Vma>& maps = proc_mem.Maps(); in TEST()220 std::vector<Vma> vmas; in TEST()221 auto collect_vmas = [&](const Vma& v) { vmas.push_back(v); }; in TEST()