• Home
  • Raw
  • Download

Lines Matching refs:vma

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()
93 if (vma.name.empty()) { in collect_vma()
94 if (last.vma.end == current.vma.start && is_library(last.vma.name)) { in collect_vma()
95 current.vma.name = last.vma.name; in collect_vma()
98 current.vma.name = "[anon]"; in collect_vma()
104 if (g_merge_by_names && (it->vma.name == current.vma.name)) { in collect_vma()
105 it->vma.usage.vss += current.vma.usage.vss; in collect_vma()
106 it->vma.usage.rss += current.vma.usage.rss; in collect_vma()
107 it->vma.usage.pss += current.vma.usage.pss; in collect_vma()
109 it->vma.usage.shared_clean += current.vma.usage.shared_clean; in collect_vma()
110 it->vma.usage.shared_dirty += current.vma.usage.shared_dirty; in collect_vma()
111 it->vma.usage.private_clean += current.vma.usage.private_clean; in collect_vma()
112 it->vma.usage.private_dirty += current.vma.usage.private_dirty; in collect_vma()
113 it->vma.usage.swap += current.vma.usage.swap; in collect_vma()
114 it->vma.usage.swap_pss += current.vma.usage.swap_pss; in collect_vma()
160 printf("%16" PRIx64 " %16" PRIx64 " ", v.vma.start, v.vma.end); in print_vmainfo()
165 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo()
166 v.vma.usage.shared_dirty, v.vma.usage.private_clean, v.vma.usage.private_dirty, in print_vmainfo()
167 v.vma.usage.swap, v.vma.usage.swap_pss); in print_vmainfo()
185 g_total.vma.usage.vss += v.vma.usage.vss; in showmap()
186 g_total.vma.usage.rss += v.vma.usage.rss; in showmap()
187 g_total.vma.usage.pss += v.vma.usage.pss; in showmap()
189 g_total.vma.usage.private_clean += v.vma.usage.private_clean; in showmap()
190 g_total.vma.usage.private_dirty += v.vma.usage.private_dirty; in showmap()
191 g_total.vma.usage.shared_clean += v.vma.usage.shared_clean; in showmap()
192 g_total.vma.usage.shared_dirty += v.vma.usage.shared_dirty; in showmap()
194 g_total.vma.usage.swap += v.vma.usage.swap; in showmap()
195 g_total.vma.usage.swap_pss += v.vma.usage.swap_pss; in showmap()
198 if (g_terse && !(v.vma.usage.private_dirty || v.vma.usage.private_clean)) { in showmap()
203 printf("%s%s\n", v.vma.name.c_str(), v.is_bss ? " [bss]" : ""); in showmap()