]> source.dussan.org Git - aspectj.git/commitdiff
pipeline changes: new info message for time taken, plus optional (commented out logic...
authoraclement <aclement>
Fri, 28 Jul 2006 10:21:04 +0000 (10:21 +0000)
committeraclement <aclement>
Fri, 28 Jul 2006 10:21:04 +0000 (10:21 +0000)
org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java

index f0215278c9bf78ebb2ad556cf71d243f513ead59..5c5d4dd9eb6bcb98e65b2fabd792f1124672b459 100644 (file)
@@ -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);