Home
last modified time | relevance | path

Searched refs:rss_bytes (Results 1 – 11 of 11) sorted by relevance

/aosp12/system/extras/memory_replay/tests/
H A DNativeInfoTest.cpp62 size_t rss_bytes = 1; in TEST_F() local
64 NativeGetInfo(tmp_file_->fd, &rss_bytes, &va_bytes); in TEST_F()
65 ASSERT_EQ(0U, rss_bytes); in TEST_F()
123 size_t rss_bytes = 1; in TEST_F() local
125 NativeGetInfo(tmp_file_->fd, &rss_bytes, &va_bytes); in TEST_F()
126 ASSERT_EQ(32768U, rss_bytes); in TEST_F()
184 size_t rss_bytes = 1; in TEST_F() local
186 NativeGetInfo(tmp_file_->fd, &rss_bytes, &va_bytes); in TEST_F()
187 ASSERT_EQ(45056U, rss_bytes); in TEST_F()
326 size_t rss_bytes = 1; in TEST_F() local
[all …]
/aosp12/bionic/tests/
H A Dmalloc_stress_test.cpp74 uint64_t rss_bytes = 0; in TEST() local
81 rss_bytes += update_vma.usage.rss; in TEST()
85 if (rss_bytes < rss_min) { in TEST()
86 rss_min = rss_bytes; in TEST()
88 if (rss_bytes > rss_max) { in TEST()
89 rss_max = rss_bytes; in TEST()
97 printf("RSS %" PRIu64 " %0.2fMB\n", rss_bytes, rss_bytes / (1024.0 * 1024.0)); in TEST()
/aosp12/system/extras/memory_replay/
H A DNativeInfo.cpp51 void NativeGetInfo(int smaps_fd, size_t* rss_bytes, size_t* va_bytes) { in NativeGetInfo() argument
99 *rss_bytes = total_rss_bytes; in NativeGetInfo()
104 size_t rss_bytes; in NativePrintInfo() local
112 NativeGetInfo(smaps_fd, &rss_bytes, &va_bytes); in NativePrintInfo()
116 NativeFormatFloat(buffer, sizeof(buffer), rss_bytes, 1024 * 1024); in NativePrintInfo()
117 NativePrintf("%sNative RSS: %zu bytes %sMB\n", preamble, rss_bytes, buffer); in NativePrintInfo()
H A DNativeInfo.h19 void NativeGetInfo(int smaps_fd, size_t* rss_bytes, size_t* va_bytes);
/aosp12/bionic/benchmarks/
H A Dmalloc_map_benchmark.cpp47 static void Gather(uint64_t* rss_bytes) { in Gather() argument
57 *rss_bytes += update_vma.usage.rss; in Gather()
66 uint64_t rss_bytes = 0; in MapBenchmark() local
84 Gather(&rss_bytes); in MapBenchmark()
86 rss_bytes -= rss_bytes_before; in MapBenchmark()
92 double rss_mb = (rss_bytes / static_cast<double>(state.iterations())) / 1024.0 / 1024.0; in MapBenchmark()
/aosp12/system/unwinding/libunwindstack/benchmarks/
H A DElfBenchmark.cpp34 uint64_t rss_bytes = 0; in BenchmarkElfCreate() local
59 GatherRss(&rss_bytes); in BenchmarkElfCreate()
60 rss_bytes -= rss_bytes_before; in BenchmarkElfCreate()
66 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkElfCreate()
H A DSymbolBenchmark.cpp35 uint64_t rss_bytes = 0; in BenchmarkSymbolLookup() local
72 GatherRss(&rss_bytes); in BenchmarkSymbolLookup()
73 rss_bytes -= rss_bytes_before; in BenchmarkSymbolLookup()
79 state.counters["RSS_BYTES"] = rss_bytes / static_cast<double>(state.iterations()); in BenchmarkSymbolLookup()
H A DUtils.cpp48 void GatherRss(uint64_t* rss_bytes) { in GatherRss() argument
58 *rss_bytes += update_vma.usage.rss; in GatherRss()
H A DUtils.h35 void GatherRss(uint64_t* rss_bytes);
/aosp12/system/memory/lmkd/
H A Dstatslog.h120 int64_t rss_bytes, int64_t swap_bytes);
155 int64_t rss_bytes __unused, int64_t swap_bytes __unused) { in stats_read_memory_stat()
H A Dstatslog.cpp144 int64_t rss_bytes, int64_t swap_bytes) { in stats_read_memory_stat() argument
156 mem_st.rss_in_bytes = rss_bytes; in stats_read_memory_stat()