am d5a873fb: Merge "Add command line flags to enable lock profiling." into froyo
Merge commit 'd5a873fbe8df67e86990969b6729db0079bbc278' into froyo-plus-aosp * commit 'd5a873fbe8df67e86990969b6729db0079bbc278': Add command line flags to enable lock profiling.
This commit is contained in:
@@ -703,6 +703,24 @@ int AndroidRuntime::startVm(JavaVM** pJavaVM, JNIEnv** pEnv)
|
||||
//mOptions.add(opt);
|
||||
}
|
||||
|
||||
char lockProfThresholdBuf[sizeof("-Xlockprofthreshold:") + sizeof(propBuf)];
|
||||
property_get("dalvik.vm.lockprof.threshold", propBuf, "");
|
||||
if (strlen(propBuf) > 0) {
|
||||
strcpy(lockProfThresholdBuf, "-Xlockprofthreshold:");
|
||||
strcat(lockProfThresholdBuf, propBuf);
|
||||
opt.optionString = lockProfThresholdBuf;
|
||||
mOptions.add(opt);
|
||||
}
|
||||
|
||||
char lockProfSampleBuf[sizeof("-Xlockprofsample:") + sizeof(propBuf)];
|
||||
property_get("dalvik.vm.lockprof.sample", propBuf, "");
|
||||
if (strlen(propBuf) > 0) {
|
||||
strcpy(lockProfSampleBuf, "-Xlockprofsample:");
|
||||
strcat(lockProfSampleBuf, propBuf);
|
||||
opt.optionString = lockProfSampleBuf;
|
||||
mOptions.add(opt);
|
||||
}
|
||||
|
||||
#if defined(WITH_JIT)
|
||||
/* Minimal profile threshold to trigger JIT compilation */
|
||||
char jitThresholdBuf[sizeof("-Xjitthreshold:") + PROPERTY_VALUE_MAX];
|
||||
|
||||
Reference in New Issue
Block a user