compute average processor ticks per event in parsed output
authorjjenista <jjenista>
Fri, 15 Oct 2010 21:34:44 +0000 (21:34 +0000)
committerjjenista <jjenista>
Fri, 15 Oct 2010 21:34:44 +0000 (21:34 +0000)
Robust/CoreProf/Trace.java
Robust/CoreProf/makefile

index a5cf97379873978d4ffab0536b5aa771eff37b25..0d69195e7ed5919c96238fe04af5d5c154475442 100644 (file)
@@ -513,10 +513,11 @@ public class Trace {
       new Long( es.totalTime_ticks ).floatValue();      
 
     String strSelfStats =
-      String.format( " total(ticks)=%12dK, %%self=%5.1f, count=%d",
+      String.format( " total(ticks)=%12dK, %%self=%5.1f, count=%d, avgTicks=%d",
                      es.totalTime_ticks/1000,
                      tSelf_perc,
-                     es.instanceCount );
+                     es.instanceCount,
+                     (int)((float)es.totalTime_ticks/(float)es.instanceCount) );
 
     bw.write( strIndent+
               strEventName+
index f35f61f8f035c6afd6f29f362c002ec8d7c8470a..79ecaa140c38214288af9881090c6f3a483525df 100644 (file)
@@ -9,4 +9,4 @@ run:
 clean:
        rm -f *.class
        rm -f *~
-       rm -f trace.out*
+