name pool alloc, useful for seeing its effective reduction of mallocs
authorjjenista <jjenista>
Thu, 14 Oct 2010 17:49:16 +0000 (17:49 +0000)
committerjjenista <jjenista>
Thu, 14 Oct 2010 17:49:16 +0000 (17:49 +0000)
Robust/CoreProf/Trace.java
Robust/CoreProf/makefile

index 40ca7f607330862924ce23a9e9453ba2f690bf24..a5cf97379873978d4ffab0536b5aa771eff37b25 100644 (file)
@@ -15,6 +15,7 @@ public class Trace {
   public static final int CP_EVENTID_MAIN             = 0x04;
   public static final int CP_EVENTID_RUNMALLOC        = 0x10;
   public static final int CP_EVENTID_RUNFREE          = 0x11;
+  public static final int CP_EVENTID_POOLALLOC        = 0x14;
   public static final int CP_EVENTID_COUNT_POOLALLOC  = 0x15;
   public static final int CP_EVENTID_COUNT_POOLREUSE  = 0x16;
   public static final int CP_EVENTID_WORKSCHEDGRAB    = 0x20;
@@ -41,8 +42,9 @@ public class Trace {
     eid2name.put( CP_EVENTID_MAIN,              "MAIN         " );
     eid2name.put( CP_EVENTID_RUNMALLOC,         "RUNMALLOC    " );
     eid2name.put( CP_EVENTID_RUNFREE,           "RUNFREE      " );
-    eid2name.put( CP_EVENTID_RUNFREE,           "POOLALLOC    " );
-    eid2name.put( CP_EVENTID_RUNFREE,           "POOLREUSE    " );
+    eid2name.put( CP_EVENTID_POOLALLOC,         "POOLALLOC    " );
+    eid2name.put( CP_EVENTID_COUNT_POOLALLOC,   "POOLALLOC CNT" );
+    eid2name.put( CP_EVENTID_COUNT_POOLREUSE,   "POOLREUSE CNT" );
     eid2name.put( CP_EVENTID_WORKSCHEDGRAB,     "WORKSCHEDGRAB" );
     eid2name.put( CP_EVENTID_TASKDISPATCH,      "TASKDISPATCH " );
     eid2name.put( CP_EVENTID_PREPAREMEMQ,       "PREPAREMEMQ  " );
index 56ecebf506e98018456176c5ab48864fcfdf7851..f35f61f8f035c6afd6f29f362c002ec8d7c8470a 100644 (file)
@@ -9,4 +9,4 @@ run:
 clean:
        rm -f *.class
        rm -f *~
-       rm -f trace.out
+       rm -f trace.out*