From 595f9a705135e415c429613620bc397a8b7b28ad Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 26 Dec 2011 13:17:26 +0400 Subject: [PATCH] perf tests --- .../testFramework/PlatformTestUtil.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java b/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java index 50d654362141..0ab4905a7ca2 100644 --- a/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java +++ b/platform/testFramework/src/com/intellij/testFramework/PlatformTestUtil.java @@ -521,16 +521,16 @@ public class PlatformTestUtil { } else { // try one more time - //if (attempts == 0) { - // try { - // Object result = Class.forName("com.intellij.util.ProfilingUtil").getMethod("captureCPUSnapshot").invoke(null); - // System.err.println("CPU snapshot captured in '"+result+"'"); - // } - // catch (Exception e) { - // } - // - // throw new AssertionFailedError(logMessage); - //} + if (attempts == 0) { + //try { + // Object result = Class.forName("com.intellij.util.ProfilingUtil").getMethod("captureCPUSnapshot").invoke(null); + // System.err.println("CPU snapshot captured in '"+result+"'"); + //} + //catch (Exception e) { + //} + + throw new AssertionFailedError(logMessage); + } System.gc(); System.gc(); System.gc();