From d2e88a7f9fe29a207b38ac4b73b85e24fad21ef9 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 28 Jul 2006 10:21:04 +0000 Subject: pipeline changes: new info message for time taken, plus optional (commented out logic) for easily attaching jconsole --- org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'org.aspectj.ajdt.core') diff --git a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java index f0215278c..5c5d4dd9e 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java @@ -243,7 +243,14 @@ public class Main { // make sure we handle out of memory gracefully... try { // byte[] b = new byte[100000000]; for testing OoME only! - run(args, holder); + long stime = System.currentTimeMillis(); + // uncomment next line to pause before startup (attach jconsole) +// try {Thread.sleep(5000); }catch(Exception e) {} + run(args, holder); + long etime = System.currentTimeMillis(); + holder.handleMessage(MessageUtil.info("Compiler took "+(etime-stime)+"ms")); + // uncomment next line to pause at end (keeps jconsole alive!) +// try { System.in.read(); } catch (Exception e) {} } catch (OutOfMemoryError outOfMemory) { IMessage outOfMemoryMessage = new Message(OUT_OF_MEMORY_MSG,null,true); -- cgit v1.2.3