| commit | 1e9ccf55d410e668f2437dc61025831f424a1d67 | [log] [tgz] |
|---|---|---|
| author | Eric Miao <ericymiao@google.com> | Fri Jun 07 10:27:24 2024 -0700 |
| committer | Eric Miao <ericymiao@google.com> | Thu Sep 19 09:42:58 2024 -0700 |
| tree | 9d65286cd28f91c6a3cf7b0ecaca695da30a12c6 | |
| parent | fddf3266072bd64d93e59046612fa6459508ad98 [diff] |
Add bitmaps/native allocation metrics to 'dumpsys meminfo'
Bug: 331243037
Flag: com.android.libcore.native_metrics
Add metrics for Bitmaps, HardwareBuffer, and other objects with
native allocations associated to 'dumpsys meminfo'.
E.g.
$ adb shell dumpsys meminfo com.google.android.GoogleCamera
...
Native Allocations
Count Total(kB)
------ ------
Bitmap (malloced): 31 6570
Bitmap (nonmalloced): 1 2976
HardwareBuffer: 5 3681
Others (malloced): 4133 391
Others (nonmalloced): 391 244
Change-Id: Ifa7dcc96806617cf378001b02b20a27208e0fbff