Merge change 7775

* changes:
  Add an option to enable JIT trace profiling for app_process.
This commit is contained in:
Android (Google) Code Review
2009-07-20 09:43:25 -07:00

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) {