Skip to content
Commit d616982c authored by Rafal Slawik's avatar Rafal Slawik
Browse files

Read process allocation sizes on system ion heap

We are planning to use this to attribute low-memory kills to processes.

Assume that each represents an allocation. Compute values for all fields
in the ProcessSystemIonHeapSize atom.

This code is intented to run only on userdebug or eng builds and it has
to be enabled via a statsd metric from the server only for devices with
required SELinux policies.

It extends SystemIonHeapSize atom to provide per-process ion allocations
attribution.

Bug: 130526489
Test: atest MemoryStatUtilTest
Test: statsd_testdrive returns non-zero values
Change-Id: I1c1f31e2739dc493e8f4b3f47d73f5bbaadc8bdf
(cherry picked from commit 5fe706c7)
parent 956197e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment