Merge "Make system_server profilable on user." into rvc-dev am: 4b500ced32 am: 852c74a9ec am: 0a8807ac64

Change-Id: I5fbcef5cbd4756d93ee24ea0e98673c342a179d3
This commit is contained in:
TreeHugger Robot
2020-04-07 10:20:57 +00:00
committed by Automerger Merge Worker

View File

@@ -519,10 +519,8 @@ public final class SystemServer {
// Initialize native services.
System.loadLibrary("android_servers");
// Debug builds - allow heap profiling.
if (Build.IS_DEBUGGABLE) {
initZygoteChildHeapProfiling();
}
// Allow heap / perf profiling.
initZygoteChildHeapProfiling();
// Debug builds - spawn a thread to monitor for fd leaks.
if (Build.IS_DEBUGGABLE) {