reflecting changes in profiling API

This commit is contained in:
Eugene Zhuravlev
2015-01-12 17:44:40 +01:00
parent da07a030dd
commit 8b9969cea2
@@ -33,9 +33,9 @@ class ProfilingHelper {
public void startProfiling() {
try {
final Method startMethod = myControllerClass.getDeclaredMethod("startCPUProfiling", long.class, String.class);
final Method startMethod = myControllerClass.getDeclaredMethod("startCPUSampling", String.class);
if (startMethod != null) {
startMethod.invoke(myController, 4L/*ProfilingModes.CPU_SAMPLING*/, null);
startMethod.invoke(myController, new Object[] {null});
}
else {
System.err.println("Cannot find method 'startCPUProfiling' in class " + myControllerClass.getName());