diff options
author | Ryan Savitski <rsavitski@google.com> | 2018-12-14 15:57:21 +0000 |
---|---|---|
committer | Ryan Savitski <rsavitski@google.com> | 2019-01-23 18:30:54 +0000 |
commit | ecc37e38771aaf994a97c51104017a7d1b73a568 (patch) | |
tree | 2b1a1d908e99eb5181cdaf77e06005a4459dcaa1 /libc/malloc_hooks/malloc_hooks.cpp | |
parent | 176d2fbcaefe4691b8fd7844f6cec8e7a1a22c76 (diff) |
conditional zygote child heap profiling + android_internal_mallopt
On user builds, heapprofd should only be allowed to profile apps that
are either debuggable, or profileable (according to the manifest). This
change exposes extra zygote-specific knowledge to bionic, and makes the
dedicated signal handler check for the special case of being in a zygote child.
With this & the corresponding framework change, we should now be
handling the 4 combinations of:
{java, native} x {profile_at_runtime, profile_at_startup}.
See internal go/heapprofd-java-trigger for further context.
Test: on-device unit tests (shared & static) on blueline-userdebug.
Test: flashed blueline-userdebug, confirmed that java profiling activates from startup and at runtime.
Bug: 120409382
Change-Id: Ic251afeca4324dc650ac1d4f46976b526eae692a
(cherry picked from commit 998792e2b6e1b84222b5d124f13ecdcb446cb22f)
Merged-In: Ic251afeca4324dc650ac1d4f46976b526eae692a
Diffstat (limited to 'libc/malloc_hooks/malloc_hooks.cpp')
0 files changed, 0 insertions, 0 deletions