From: aclement Date: Fri, 28 Jul 2006 10:21:04 +0000 (+0000) Subject: pipeline changes: new info message for time taken, plus optional (commented out logic... X-Git-Tag: pre_pr_153572~48 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d2e88a7f9fe29a207b38ac4b73b85e24fad21ef9;p=aspectj.git pipeline changes: new info message for time taken, plus optional (commented out logic) for easily attaching jconsole --- 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);