Add an option to enable JIT trace profiling for app_process.

This commit is contained in:
Ben Cheng
2009-07-17 16:03:26 -07:00
parent 6a535849fb
commit 0e01fbf722

View File

@@ -746,6 +746,15 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
opt.optionString = "-Xincludeselectedmethod";
mOptions.add(opt);
}
/*
* Enable profile collection on JIT'ed code.
*/
property_get("dalvik.vm.jit.profile", propBuf, "");
if (strlen(propBuf) > 0) {
opt.optionString = "-Xjitprofile";
mOptions.add(opt);
}
#endif
if (executionMode == kEMIntPortable) {