summaryrefslogtreecommitdiff
path: root/runtime/runtime.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r--runtime/runtime.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 3d4116ba06..135ee63c1f 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -994,16 +994,13 @@ void Runtime::InitNonZygoteOrPostFork(
}
}
- if (is_system_server) {
- jit_options_->SetSaveProfilingInfo(profile_system_server);
- if (profile_system_server) {
- // Set the system server package name to "android".
- // This is used to tell the difference between samples provided by system server
- // and samples generated by other apps when processing boot image profiles.
- SetProcessPackageName("android");
- jit_options_->SetWaitForJitNotificationsToSaveProfile(false);
- VLOG(profiler) << "Enabling system server profiles";
- }
+ if (is_system_server && profile_system_server) {
+ // Set the system server package name to "android".
+ // This is used to tell the difference between samples provided by system server
+ // and samples generated by other apps when processing boot image profiles.
+ SetProcessPackageName("android");
+ jit_options_->SetWaitForJitNotificationsToSaveProfile(false);
+ VLOG(profiler) << "Enabling system server profiles";
}
// Create the thread pools.