[jboss-cvs] JBoss Profiler SVN: r495 - branches/JBossProfiler2/src/main/org/jboss/profiler/client.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Nov 5 15:44:24 EST 2008


Author: jesper.pedersen
Date: 2008-11-05 15:44:24 -0500 (Wed, 05 Nov 2008)
New Revision: 495

Modified:
   branches/JBossProfiler2/src/main/org/jboss/profiler/client/SnapshotUtil.java
Log:
Add Avg to Caller report

Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/client/SnapshotUtil.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/client/SnapshotUtil.java	2008-10-29 20:35:43 UTC (rev 494)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/client/SnapshotUtil.java	2008-11-05 20:44:24 UTC (rev 495)
@@ -836,11 +836,12 @@
         }
         bw.write(NEW_LINE);
 
-        bw.write("Count\tMs\tMethod");
+        bw.write("Count\tAvg\tMs\tMethod");
         bw.write(NEW_LINE);
 
         for (CombinedFrameInfo cfi : callers) {
           bw.write(cfi.getCount() + "\t");
+          bw.write(df.format(cfi.getTotalTime() / (double)cfi.getCount()) + "\t");
           bw.write(df.format(cfi.getTotalTime()) + "\t");
           bw.write(cfi.getPrettyName());
           bw.write(NEW_LINE);




More information about the jboss-cvs-commits mailing list