Merge "Log when trying to profile non profilable app."

This commit is contained in:
Treehugger Robot 2019-05-29 19:12:30 +00:00 committed by Gerrit Code Review
commit c3c4929659

View file

@ -116,6 +116,7 @@ static void MaybeInstallInitHeapprofdHook(int) {
// Zygote child processes must be marked profileable. // Zygote child processes must be marked profileable.
if (gZygoteChild && if (gZygoteChild &&
!atomic_load_explicit(&gZygoteChildProfileable, memory_order_acquire)) { !atomic_load_explicit(&gZygoteChildProfileable, memory_order_acquire)) {
error_log("%s: not enabling heapprofd, not marked profileable.", getprogname());
return; return;
} }