add more debug logging to Scheduler
authoradam <adam@megacz.com>
Wed, 7 Apr 2004 20:36:34 +0000 (20:36 +0000)
committeradam <adam@megacz.com>
Wed, 7 Apr 2004 20:36:34 +0000 (20:36 +0000)
darcs-hash:20040407203634-5007d-b7d84c97c5ae95c2b41000288ff603a20fec6d28.gz

src/org/ibex/Scheduler.java

index 9b39509..09487bd 100644 (file)
@@ -13,7 +13,7 @@ public class Scheduler {
 
     private static Scheduler singleton;
     public static interface Task { public abstract void perform() throws IOException, JSExn; }
-    public static void add(Task t) { Scheduler.runnable.append(t); }
+    public static void add(Task t) { Log.debug(Scheduler.class, "scheduling " + t); Scheduler.runnable.append(t); }
     public static void init() { if (singleton == null) (singleton = Platform.getScheduler()).run(); }
 
     private static Task current = null;
@@ -74,6 +74,7 @@ public class Scheduler {
                             s._mousey = s.mousey;
                         }
                     }
+                    Log.debug(Scheduler.class, "performing " + current);
                     current.perform();
                 }
                 renderAll();