summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorIoannis Ilkos <ilkos@google.com>2021-03-25 15:44:03 +0000
committerIoannis Ilkos <ilkos@google.com>2021-03-30 10:38:10 +0100
commit228fc0293b498cbb29f08d6eeec3dda2545dddbc (patch)
treed510469022b9fa66ba5d22a1b4cc450764f93186 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1d70937fe795e7d879e496ee192f1621a7ce0cbb (diff)
Per process DMA-BUF stats
In order to detect memory regressions caused by improper handling of dma-buf buffers we need to measure how this memory is used. This change: - Introduces DmabufInfoReader which wraps libmeminfo and provides per-process DMA-BUF stats. - Specifically, measures buffers mapped to the process address space (from /proc/pid/maps). This is supported on all devices. - For devices running 5.4+ (where the system processes can query fdinfo) also measures the total retained memory (either by mmap or an open fd). - Introduces a statsd atom that collects this for all running managed processes. Non-managed processes will also hold dmabufs, but the likelihood of them causing issues (post-launch) is smaller so I am trading them off for cheaper collection (if indeed we encounter such problems, they will definitely be caught by the total dmabuf counters). Test: manual Bug: 183708249 Change-Id: I5e0ef58ac1a66ebe2d280c5733de46ba84f75a46
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions