compute average processor ticks per event in parsed output
[IRC.git] / Robust / CoreProf / Trace.java
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+