Searched refs:Vma (Results 1 – 9 of 9) sorted by relevance
29 using VmaCallback = std::function<void(const Vma&)>;39 const std::vector<Vma>& Maps();46 const std::vector<Vma>& MapsWithPageIdle();49 const std::vector<Vma>& MapsWithoutUsageStats();53 bool FillInVmaStats(Vma& vma);59 const std::vector<Vma>& Smaps(const std::string& path = "");93 bool PageMap(const Vma& vma, std::vector<uint64_t>* pagemap);99 bool ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle);106 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() function73 ~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()
31 using Vma = ::android::meminfo::Vma; typedef98 static int show(const MemUsage& proc_stats, const std::vector<Vma>& maps) { in show()127 auto pss_sort = [](const Vma& a, const Vma& b) { in main()133 auto uss_sort = [](const Vma& a, const Vma& b) { in main()139 std::function<bool(const Vma& a, const Vma& b)> sort_func = nullptr; in main()195 std::vector<Vma> maps(proc.Maps()); in main()
34 using ::android::meminfo::Vma;37 Vma vma;42 VmaInfo(const Vma& v) : vma(v), is_bss(false), count(1) {} in VmaInfo()43 VmaInfo(const Vma& v, bool bss) : vma(v), is_bss(bss), count(1) {} in VmaInfo()44 VmaInfo(const Vma& v, const std::string& name, bool bss) : vma(v), is_bss(bss), count(1) { in VmaInfo()86 static void collect_vma(const Vma& vma) { in collect_vma()
42 using ::android::meminfo::Vma;180 const std::vector<Vma> maps = pmem.Maps(); in scan_libs_per_process()
50 const std::vector<android::meminfo::Vma>& maps = proc_mem.MapsWithoutUsageStats(); in GatherRss()54 android::meminfo::Vma update_vma(vma); in GatherRss()
121 const std::vector<Vma>& ProcMemInfo::Maps() { in Maps()129 const std::vector<Vma>& ProcMemInfo::MapsWithPageIdle() { in MapsWithPageIdle()137 const std::vector<Vma>& ProcMemInfo::MapsWithoutUsageStats() { in MapsWithoutUsageStats()145 const std::vector<Vma>& ProcMemInfo::Smaps(const std::string& path) { in Smaps()150 auto collect_vmas = [&](const Vma& vma) { in Smaps()228 bool ProcMemInfo::PageMap(const Vma& vma, std::vector<uint64_t>* pagemap) { in PageMap()281 maps_.emplace_back(Vma(start, end, pgoff, flags, name)); in ReadMaps()311 bool ProcMemInfo::FillInVmaStats(Vma& vma) { in FillInVmaStats()325 bool ProcMemInfo::ReadVmaStats(int pagemap_fd, Vma& vma, bool get_wss, bool use_pageidle) { in ReadVmaStats()444 Vma vma; in ForEachVmaFromFile()
61 const std::vector<Vma>& maps = proc_mem.Maps(); in TEST()67 const std::vector<Vma>& maps = proc_mem.Maps(); in TEST()87 const std::vector<Vma>& maps = proc_mem.MapsWithoutUsageStats(); in TEST()106 const std::vector<Vma>& maps = proc_mem.MapsWithoutUsageStats(); in TEST()109 Vma update_map(map); in TEST()145 const std::vector<Vma>& maps = proc_mem.MapsWithoutUsageStats(); in TEST()149 const Vma* test_vma = nullptr; in TEST()150 for (const Vma& vma : maps) { in TEST()346 std::vector<Vma> vmas; in TEST()347 auto collect_vmas = [&](const Vma& v) { vmas.push_back(v); }; in TEST()