summaryrefslogtreecommitdiff
path: root/services/java/com/android
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2020-04-01 09:59:53 +0100
committerFlorian Mayer <fmayer@google.com>2020-04-07 08:46:11 +0000
commit876e06aa979df8da8fa8edb458fff5d4cf356860 (patch)
treea258fec6b180a2c9db328b4bbbeb1d0ddeb0a4a8 /services/java/com/android
parent1d26c937fd02ed02cb02934e587b5529cb296716 (diff)
Make system_server profilable on user.
Test: m with matching SELinux change. profile sys_srv. This is a cherry-pick of be583be3ed6a53d3de6c4949a7c9754ec7fee3ed. Bug: 151140716 Change-Id: I545b758421ea7527d75b5d2756a6b11ae475e7de Merged-In: I545b758421ea7527d75b5d2756a6b11ae475e7de
Diffstat (limited to 'services/java/com/android')
-rw-r--r--services/java/com/android/server/SystemServer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index 2a914ecf4db6..e5ffbacb357b 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -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) {