Measuring time in ForTestCompileRuntime
This commit is contained in:
@@ -22,6 +22,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.jet.JetTestUtils;
|
||||
import org.jetbrains.jet.cli.common.ExitCode;
|
||||
import org.jetbrains.jet.cli.jvm.K2JVMCompiler;
|
||||
import org.jetbrains.jet.utils.Profiler;
|
||||
import org.junit.Assert;
|
||||
|
||||
import javax.tools.*;
|
||||
@@ -120,7 +121,9 @@ public class ForTestCompileRuntime {
|
||||
|
||||
// This method is very convenient when you have trouble compiling runtime in tests
|
||||
public static void main(String[] args) throws IOException {
|
||||
Profiler stdlib = Profiler.create("compileStdlib").start();
|
||||
compileStdlib(JetTestUtils.tmpDir("runtime"));
|
||||
stdlib.end();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user