Skip to content
Commit 5fe706c7 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
parent 1077ae03
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment