From cb4e3009fcbc02061dddb03cf504350bd324dbfd Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 27 Sep 2009 13:48:35 +0400 Subject: [PATCH] can't use yourkit here --- .../jetbrains/groovy/compiler/rt/GroovycRunner.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/groovy/rt/src/org/jetbrains/groovy/compiler/rt/GroovycRunner.java b/plugins/groovy/rt/src/org/jetbrains/groovy/compiler/rt/GroovycRunner.java index 4847dace2a54..0085430fed18 100644 --- a/plugins/groovy/rt/src/org/jetbrains/groovy/compiler/rt/GroovycRunner.java +++ b/plugins/groovy/rt/src/org/jetbrains/groovy/compiler/rt/GroovycRunner.java @@ -15,8 +15,6 @@ package org.jetbrains.groovy.compiler.rt; -import com.yourkit.api.Controller; -import com.yourkit.api.ProfilingModes; import groovy.lang.GroovyClassLoader; import org.codehaus.groovy.control.*; import org.codehaus.groovy.control.messages.WarningMessage; @@ -52,13 +50,14 @@ public class GroovycRunner { public static final String MESSAGES_END = "/%m"; public static final String SEPARATOR = "#%%#%%%#%%%%%%%%%#"; - public static final Controller ourController = initController(); + //public static final Controller ourController = initController(); public static final String PRESENTABLE_MESSAGE = "@#$%@# Presentable:"; public static final String CLEAR_PRESENTABLE = "$@#$%^ CLEAR_PRESENTABLE"; private GroovycRunner() { } + /* private static Controller initController() { if (!"true".equals(System.getProperty("profile.groovy.compiler"))) { return null; @@ -72,9 +71,11 @@ public class GroovycRunner { return null; } } + */ public static void main(String[] args) { + /* if (ourController != null) { try { ourController.startCPUProfiling(ProfilingModes.CPU_SAMPLING, null); @@ -83,6 +84,7 @@ public class GroovycRunner { e.printStackTrace(); } } + */ if (args.length != 2) { System.err.println("There is no arguments for groovy compiler"); @@ -144,6 +146,7 @@ public class GroovycRunner { catch (Throwable e) { e.printStackTrace(); } + /* finally { if (ourController != null) { try { @@ -155,6 +158,7 @@ public class GroovycRunner { } } } + */ } private static String fillFromArgsFile(File argsFile, CompilerConfiguration compilerConfiguration, List patchers, List compilerMessages,