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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Oct 23 17:14:32 EDT 2008


Author: jesper.pedersen
Date: 2008-10-23 17:14:32 -0400 (Thu, 23 Oct 2008)
New Revision: 488

Modified:
   branches/JBossProfiler2/src/main/org/jboss/profiler/shared/FrameInfo.java
Log:
Remove toString() method

Modified: branches/JBossProfiler2/src/main/org/jboss/profiler/shared/FrameInfo.java
===================================================================
--- branches/JBossProfiler2/src/main/org/jboss/profiler/shared/FrameInfo.java	2008-10-23 20:59:57 UTC (rev 487)
+++ branches/JBossProfiler2/src/main/org/jboss/profiler/shared/FrameInfo.java	2008-10-23 21:14:32 UTC (rev 488)
@@ -22,7 +22,6 @@
 package org.jboss.profiler.shared;
 
 import java.io.Serializable;
-import java.text.DecimalFormat;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Iterator;
@@ -299,21 +298,4 @@
     childMap.put(mi, Integer.valueOf(children.size() - 1));
     netTime = -1;
   }
-  
-  public String toString(){
-	  DecimalFormat df = new DecimalFormat("#0.00");
-	  long alltime;
-	  long total = this.getTotalTime();
-	  long net = this.getNetTime();
-	  //df.format(Math.toPercent(net, total);
-	  FrameInfo currentParent,currentFrame;
-	  currentFrame=this;
-	  currentParent=this.parent;
-	  while(currentParent!=null) {
-		  currentFrame=currentParent;
-		  currentParent=currentParent.parent;
-	  }
-	  alltime= currentFrame.getTotalTime();	  
-	  return df.format(Math.toPercent(total, alltime))+ "% - "+df.format(Math.nanoToMilli(total))+" ms - "+this.getCount()+" inv. - "+ this.method.getMethodName();
-  }
 }




More information about the jboss-cvs-commits mailing list