Merge "Parse method-trace properties only in debug builds."

am: 8fa7e93050

* commit '8fa7e93050f5b3d7ccac8775fee302f1f4394d4f':
  Parse method-trace properties only in debug builds.
This commit is contained in:
Calin Juravle
2015-11-11 17:00:22 +00:00
committed by android-build-merger

View File

@@ -889,9 +889,9 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote)
profileMaxStackDepth, profileMaxStackDepth,
"-Xprofile-max-stack-depth:"); "-Xprofile-max-stack-depth:");
/* // Trace files are stored in /data/misc/trace which is writable only in debug mode.
* Tracing options. property_get("ro.debuggable", propBuf, "0");
*/ if (strcmp(propBuf, "1") == 0) {
property_get("dalvik.vm.method-trace", propBuf, "false"); property_get("dalvik.vm.method-trace", propBuf, "false");
if (strcmp(propBuf, "true") == 0) { if (strcmp(propBuf, "true") == 0) {
addOption("-Xmethod-trace"); addOption("-Xmethod-trace");
@@ -906,6 +906,7 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv, bool zygote)
addOption("-Xmethod-trace-stream"); addOption("-Xmethod-trace-stream");
} }
} }
}
// Native bridge library. "0" means that native bridge is disabled. // Native bridge library. "0" means that native bridge is disabled.
property_get("ro.dalvik.vm.native.bridge", propBuf, ""); property_get("ro.dalvik.vm.native.bridge", propBuf, "");