Home
last modified time | relevance | path

Searched refs:pss (Results 1 – 14 of 14) sorted by relevance

/system/extras/pssbench/
Dmain.cpp37 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/core/libmeminfo/tools/
Dlibrank.cpp70 to->pss += from.pss; in add_mem_usage()
127 uint64_t pss() const { return usage_.pss; } in pss() function
237 return g_reverse_sort ? a.usage().pss < b.usage().pss : a.usage().pss > b.usage().pss; in main()
321 [](const LibRecord& l1, const LibRecord& l2) { return l1.pss() > l2.pss(); }); in main()
324 printf("%6" PRIu64 "K %7s %6s %6s %6s ", lib.pss() / 1024, "", "", "", ""); in main()
342 usage.vss / 1024, usage.rss / 1024, usage.pss / 1024, usage.uss / 1024); in main()
Dwsstop.cpp72 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()
Dprocrank.cpp233 proc.Wss().rss / 1024, proc.Wss().pss / 1024, in print_process_record()
239 proc.Usage().pss / 1024, proc.Usage().uss / 1024); in print_process_record()
254 total_pss += show_wss ? proc.Wss().pss : proc.Usage().pss; in print_processes()
339 return reverse_sort ? stats_a.pss < stats_b.pss : stats_a.pss > stats_b.pss; in main()
351 return reverse_sort ? stats_a.rss < stats_b.pss : stats_a.pss > stats_b.pss; in main()
Dprocmem.cpp92 stats.rss / 1024, stats.pss / 1024, stats.uss / 1024, in print_stats()
119 uint64_t pss_a = a.usage.pss; in main()
120 uint64_t pss_b = b.usage.pss; in main()
Dshowmap.cpp107 it->vma.usage.pss += current.vma.usage.pss; in collect_vma()
165 v.vma.usage.vss, v.vma.usage.rss, v.vma.usage.pss, v.vma.usage.shared_clean, in print_vmainfo()
187 g_total.vma.usage.pss += v.vma.usage.pss; in showmap()
/system/core/libmeminfo/
Dlibmeminfo_test.cpp51 EXPECT_EQ(usage.pss, 0); in TEST()
70 EXPECT_EQ(wss.pss, 0); in TEST()
121 EXPECT_EQ(stats.pss, 202052); in TEST()
161 EXPECT_EQ(stats.pss, 2652); in TEST()
199 uint64_t pss; in TEST() local
200 ASSERT_EQ(SmapsOrRollupPssFromFile(tf.path, &pss), true); in TEST()
201 EXPECT_EQ(pss, 2652); in TEST()
209 uint64_t pss; in TEST() local
210 ASSERT_EQ(SmapsOrRollupPssFromFile(path, &pss), true); in TEST()
211 EXPECT_EQ(pss, 19119); in TEST()
[all …]
Dprocmeminfo.cpp46 to->pss += from.pss; in add_mem_usage()
67 stats->pss = strtoull(c, nullptr, 10); in parse_smaps_field()
190 bool ProcMemInfo::SmapsOrRollupPss(uint64_t* pss) const { in SmapsOrRollupPss()
193 return SmapsOrRollupPssFromFile(path, pss); in SmapsOrRollupPss()
354 vma.usage.pss += pagesz / pg_counts[i]; in ReadVmaStats()
460 stats->pss += strtoull(c, nullptr, 10); in SmapsOrRollupFromFile()
493 bool SmapsOrRollupPssFromFile(const std::string& path, uint64_t* pss) { in SmapsOrRollupPssFromFile() argument
498 *pss = 0; in SmapsOrRollupPssFromFile()
504 *pss += v; in SmapsOrRollupPssFromFile()
Dlibmeminfo_benchmark.cpp483 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/core/libmeminfo/include/meminfo/
Dmeminfo.h32 uint64_t pss; member
46 pss(0), in MemUsage()
58 vss = rss = pss = uss = swap = swap_pss = 0; in clear()
Dprocmeminfo.h77 bool SmapsOrRollupPss(uint64_t* pss) const;
123 bool SmapsOrRollupPssFromFile(const std::string& path, uint64_t* pss);
/system/core/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp102 auto pss = std::make_unique<long[]>(pid_count); in PrintDmaBufInfo() local
104 memset(pss.get(), 0, sizeof(long) * pid_count); in PrintDmaBufInfo()
116 pss[pid_column[it->first]] += buf->size() * it->second / buf->count(); in PrintDmaBufInfo()
121 pss[pid_column[it->first]] += buf->size() * it->second / buf->count(); in PrintDmaBufInfo()
132 std::cout << ::android::base::StringPrintf("%15ldK", pss[i] / 1024); in PrintDmaBufInfo()
/system/extras/memtrack/
Dmemtrack.h38 bool getPss(size_t *pss);
Dmemtrack.cpp80 bool FileData::getPss(size_t *pss) { in getPss() argument
102 *pss = value; in getPss()