summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2006-07-28 10:21:04 +0000
committeraclement <aclement>2006-07-28 10:21:04 +0000
commitd2e88a7f9fe29a207b38ac4b73b85e24fad21ef9 (patch)
tree085f29d2689b4444bcb805ca57761ffd699903e7
parent2719757a9231f54c8634ee0df316894dd2e47667 (diff)
downloadaspectj-d2e88a7f9fe29a207b38ac4b73b85e24fad21ef9.tar.gz
aspectj-d2e88a7f9fe29a207b38ac4b73b85e24fad21ef9.zip
pipeline changes: new info message for time taken, plus optional (commented out logic) for easily attaching jconsole
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java9
1 files changed, 8 insertions, 1 deletions
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);