From 264daf2d60695c2ea6dc174a8961d6ede7422bee Mon Sep 17 00:00:00 2001 From: "Maxim.Kolmakov" Date: Mon, 27 May 2019 11:48:03 +0200 Subject: [PATCH] Fix missing memory snapshot ProfilingUtil was merged into YourKitProfilerHandler GitOrigin-RevId: fe60c9a0d1da8196e70036b40612306dfcacdab7 --- .../src/com/intellij/testFramework/PlatformTestUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);