diff --git a/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java b/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java index e4118c04e376..f30707206a2b 100644 --- a/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java +++ b/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java @@ -908,14 +908,14 @@ public class PlatformTestUtil { public static void captureMemorySnapshot() { try { - Method snapshot = ReflectionUtil.getMethod(Class.forName("com.jetbrains.performancePlugin.utils.ProfilingUtil"), "captureMemorySnapshot"); + Method snapshot = ReflectionUtil.getMethod(Class.forName("com.jetbrains.performancePlugin.profilers.YourKitProfilerHandler"), "captureMemorySnapshot"); if (snapshot != null) { Object path = snapshot.invoke(null); System.out.println("Memory snapshot captured to '" + path + "'"); } } catch (ClassNotFoundException e) { - // ProfilingUtil is missing from the classpath, ignore + // YourKitProfilerHandler is missing from the classpath, ignore } catch (Exception e) { e.printStackTrace(System.err);