diff options
author | Yao Chen <yaochen@google.com> | 2017-11-18 18:54:50 -0800 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2017-11-18 19:26:07 -0800 |
commit | 8d9989bb376f3937d9c8fef07c9cc65ef78cbcae (patch) | |
tree | 68e318840a296207746f8e2d5c43ebf04d76fa01 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | ae6a83a1cd729376fda3a849714b529f9666f4cb (diff) |
The first step towards adding a guardrail.
Added a malloc debug cmd to find memory leak and where
the most heap allocations are with backtrace.
More info: malloc_debug/README.md
The util class is borrowed from audio server.
Usage:
adb shell stop
adb shell setprop libc.debug.malloc.program statsd
adb shell setprop libc.debug.malloc.options backtrace
adb shell start
adb shell cmd stats meminfo
Also,
adb shell dumpsys meminfo [statsd_pid]
also gives you the overall summary of the memory usage.
Test: manual
Change-Id: I4eb4167466a748ea0c3d9fd39e45d9900bc00fc2
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions