From de99f08f658c13ae8e0cd46f7bebc78311585bf2 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Fri, 6 Jun 2014 16:00:53 +0100 Subject: Fixed comments related to profile properties. Change-Id: Idd6de8fe2a193a36cf1ea6bcadacb3289973c5ab --- core/jni/AndroidRuntime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/jni/AndroidRuntime.cpp b/core/jni/AndroidRuntime.cpp index 1772509..5e7d6ef 100644 --- a/core/jni/AndroidRuntime.cpp +++ b/core/jni/AndroidRuntime.cpp @@ -813,13 +813,14 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv) * Set profiler options */ if (libart) { - // Number of seconds during profile runs. + // Whether or not the profiler should be enabled. property_get("dalvik.vm.profiler", propBuf, "0"); if (propBuf[0] == '1') { opt.optionString = "-Xenable-profiler"; mOptions.add(opt); } + // Whether the profile should start upon app startup or be delayed by some random offset. property_get("dalvik.vm.profile.start-immediately", propBuf, "0"); if (propBuf[0] == '1') { opt.optionString = "-Xprofile-start-immediately"; -- cgit v1.1