summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2019-09-10 09:11:26 -0700
committerandroid-build-merger <android-build-merger@google.com>2019-09-10 09:11:26 -0700
commited511cde166aaeebf7e2d6947a54f853221e4b66 (patch)
treeacc5b4ed5a5eeae4072f6a227f2ce7ee93b84d4a
parent3fbb9535dd3ce91e924c572755fbccd95d980805 (diff)
parent8690600c2308f86be8a2f02569866b4e9ffbba28 (diff)
Merge "Rename profileSystemServer to shouldProfileSystemServer" am: f7335ffb9a am: 2b3e8ad368 am: 3f75400059
am: 8690600c23 Change-Id: I8e06ce4174e091c1aa97dc976ce1ec172709628d
-rw-r--r--core/java/com/android/internal/os/ZygoteInit.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java
index b5d494540f8a..31995f7ec821 100644
--- a/core/java/com/android/internal/os/ZygoteInit.java
+++ b/core/java/com/android/internal/os/ZygoteInit.java
@@ -460,7 +460,7 @@ public class ZygoteInit {
ZygoteHooks.gcAndFinalize();
}
- private static boolean profileSystemServer() {
+ private static boolean shouldProfileSystemServer() {
boolean defaultValue = SystemProperties.getBoolean("dalvik.vm.profilesystemserver",
/*default=*/ false);
// Can't use DeviceConfig since it's not initialized at this point.
@@ -492,7 +492,7 @@ public class ZygoteInit {
}
// Capturing profiles is only supported for debug or eng builds since selinux normally
// prevents it.
- if (profileSystemServer() && (Build.IS_USERDEBUG || Build.IS_ENG)) {
+ if (shouldProfileSystemServer() && (Build.IS_USERDEBUG || Build.IS_ENG)) {
try {
Log.d(TAG, "Preparing system server profile");
prepareSystemServerProfile(systemServerClasspath);
@@ -765,8 +765,7 @@ public class ZygoteInit {
Zygote.applyDebuggerSystemProperty(parsedArgs);
Zygote.applyInvokeWithSystemProperty(parsedArgs);
- if (profileSystemServer()) {
-
+ if (shouldProfileSystemServer()) {
parsedArgs.mRuntimeFlags |= Zygote.PROFILE_SYSTEM_SERVER;
}