/system/extras/pssbench/ |
D | main.cpp | 37 int64_t pss = 0; in get_pss() local 43 pss += v; in get_pss() 50 return pss * 1024; in get_pss() 81 int64_t pss = 0; in main() local 83 pss = get_pss(pid); in main() 86 printf("iterations:%d pid:%d pss:%lld\n", iterations, pid, (long long)pss); in main()
|
/system/memory/libmeminfo/tools/ |
D | librank.cpp | 79 to->pss += from.pss; in add_mem_usage() 136 uint64_t pss() const { return usage_.pss; } in pss() function 260 + "," + std::to_string(l.pss() / 1024) in to_csv() 265 + "," + std::to_string(usage.pss/1024) in to_csv() 309 + ",\"Total_RSS\":" + std::to_string(l.pss() / 1024) in to_json() 314 + ",\"PSS\":" + std::to_string(usage.pss/1024) in to_json() 338 return g_reverse_sort ? a.usage().pss < b.usage().pss : a.usage().pss > b.usage().pss; in main() 439 [](const LibRecord& l1, const LibRecord& l2) { return l1.pss() > l2.pss(); }); in main() 443 printf("%6" PRIu64 "K %7s %6s %6s %6s ", lib.pss() / 1024, "", "", "", ""); in main() 464 usage.vss / 1024, usage.rss / 1024, usage.pss / 1024, usage.uss / 1024); in main()
|
D | wsstop.cpp | 72 v.usage.vss / 1024, v.usage.rss / 1024, v.usage.pss / 1024, v.usage.shared_clean / 1024, in print_vma() 99 res.usage.pss = cur.usage.pss > last.usage.pss ? cur.usage.pss - last.usage.pss : 0; in diff_vma_params()
|
D | procmem.cpp | 93 stats.rss / 1024, stats.pss / 1024, stats.uss / 1024, in print_stats() 128 uint64_t pss_a = a.usage.pss; in main() 129 uint64_t pss_b = b.usage.pss; in main()
|
D | showmap.cpp | 109 it->vma.usage.pss += current.vma.usage.pss; in collect_vma() 173 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo() 207 g_total.vma.usage.pss += v.vma.usage.pss; in showmap()
|
D | procrank.cpp | 234 proc.Wss().rss / 1024, proc.Wss().pss / 1024, in print_process_record() 240 proc.Usage().pss / 1024, proc.Usage().uss / 1024); in print_process_record() 255 total_pss += show_wss ? proc.Wss().pss : proc.Usage().pss; in print_processes() 340 return reverse_sort ? stats_a.pss < stats_b.pss : stats_a.pss > stats_b.pss; in main()
|
/system/memory/libmeminfo/ |
D | libmeminfo_test.cpp | 53 EXPECT_EQ(usage.pss, 0); in TEST() 75 total_pss += map.usage.pss; in TEST() 93 ASSERT_EQ(0, map.usage.pss); in TEST() 117 ASSERT_EQ(0, update_map.usage.pss); in TEST() 196 EXPECT_EQ(wss.pss, 0); in TEST() 247 EXPECT_EQ(stats.pss, 202052); in TEST() 287 EXPECT_EQ(stats.pss, 2652); in TEST() 325 uint64_t pss; in TEST() local 326 ASSERT_EQ(SmapsOrRollupPssFromFile(tf.path, &pss), true); in TEST() 327 EXPECT_EQ(pss, 2652); in TEST() [all …]
|
D | procmeminfo.cpp | 51 to->pss += from.pss; in add_mem_usage() 72 stats->pss = strtoull(c, nullptr, 10); in parse_smaps_field() 208 bool ProcMemInfo::SmapsOrRollupPss(uint64_t* pss) const { in SmapsOrRollupPss() 211 return SmapsOrRollupPssFromFile(path, pss); in SmapsOrRollupPss() 421 vma.usage.pss += pagesz / cur_page_counts; in ReadVmaStats() 527 stats->pss += strtoull(c, nullptr, 10); in SmapsOrRollupFromFile() 560 bool SmapsOrRollupPssFromFile(const std::string& path, uint64_t* pss) { in SmapsOrRollupPssFromFile() argument 565 *pss = 0; in SmapsOrRollupPssFromFile() 571 *pss += v; in SmapsOrRollupPssFromFile()
|
D | libmeminfo_benchmark.cpp | 483 rollup->pss += atoi(c); in get_smaps_rollup() 528 CHECK_EQ(stats.pss, 108384); in BM_SmapsRollup_old() 539 CHECK_EQ(stats.pss, 108384); in BM_SmapsRollup_new()
|
/system/memory/libmeminfo/include/meminfo/ |
D | meminfo.h | 32 uint64_t pss; member 46 pss(0), in MemUsage() 58 vss = rss = pss = uss = swap = swap_pss = 0; in clear()
|
D | procmeminfo.h | 84 bool SmapsOrRollupPss(uint64_t* pss) const; 130 bool SmapsOrRollupPssFromFile(const std::string& path, uint64_t* pss);
|
/system/memory/libmeminfo/libdmabufinfo/tools/ |
D | dmabuf_dump.cpp | 154 uint64_t pss = 0; in PrintDmaBufPerProcess() local 166 pss += proc_pss; in PrintDmaBufPerProcess() 169 pss / 1024, ""); in PrintDmaBufPerProcess() 172 total_pss += pss; in PrintDmaBufPerProcess()
|
/system/extras/memtrack/ |
D | memtrack.h | 38 bool getPss(size_t *pss);
|
D | memtrack.cpp | 80 bool FileData::getPss(size_t *pss) { in getPss() argument 102 *pss = value; in getPss()
|