mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reflecting changes in profiling API
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user