Switch profiler off by default
Change-Id: I40fdbfa1145a2e80644125932756b8ec7eafd4a2
diff --git a/runtime/profiler.cc b/runtime/profiler.cc
index 223fe87..77e7316 100644
--- a/runtime/profiler.cc
+++ b/runtime/profiler.cc
@@ -303,14 +303,12 @@
// Only on target...
#ifdef HAVE_ANDROID_OS
- if (!startImmediately) {
- // Switch off profiler if the dalvik.vm.profiler property has value 0.
- char buf[PROP_VALUE_MAX];
- property_get("dalvik.vm.profiler", buf, "0");
- if (strcmp(buf, "0") == 0) {
- LOG(INFO) << "Profiler disabled. To enable setprop dalvik.vm.profiler 1";
- return;
- }
+ // Switch off profiler if the dalvik.vm.profiler property has value 0.
+ char buf[PROP_VALUE_MAX];
+ property_get("dalvik.vm.profiler", buf, "0");
+ if (strcmp(buf, "0") == 0) {
+ LOG(INFO) << "Profiler disabled. To enable setprop dalvik.vm.profiler 1";
+ return;
}
#endif