Home
last modified time | relevance | path

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

/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java84 private final MemoryMetric mZero = new MemoryMetric(0, 0, 0);
111 List<MemoryMetric> allMemsForProcess = new ArrayList<>(); in sampleAndLogAllProcesses()
113 Optional<MemoryMetric> mem = snapMemoryUsage(processName, pid); in sampleAndLogAllProcesses()
125 MemoryMetric combined = allMemsForProcess.stream().reduce(mZero, MemoryMetric::sum); in sampleAndLogAllProcesses()
179 private Optional<MemoryMetric> snapMemoryUsage(String processName, String pid) in snapMemoryUsage()
200 return Optional.of(new MemoryMetric(pss, rss, vss)); in snapMemoryUsage()
212 private void logMemoryMetric(String processName, MemoryMetric memoryMetric) { in logMemoryMetric()
219 private final class MemoryMetric { class in NativeProcessesMemoryTest
224 MemoryMetric(long pss, long rss, long vss) { in MemoryMetric() method in NativeProcessesMemoryTest.MemoryMetric
230 MemoryMetric sum(MemoryMetric other) { in sum()
[all …]