axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/performance Monitor.java
Date Wed, 10 Jul 2002 16:24:34 GMT
antelder    2002/07/10 09:24:34

  Modified:    java/test/performance Monitor.java
  Log:
  Add a simple print method to display the collected results
  
  Revision  Changes    Path
  1.3       +13 -0     xml-axis-wsif/java/test/performance/Monitor.java
  
  Index: Monitor.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/performance/Monitor.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Monitor.java	9 Jul 2002 12:11:15 -0000	1.2
  +++ Monitor.java	10 Jul 2002 16:24:34 -0000	1.3
  @@ -114,6 +114,19 @@
         return results;
      }
   
  +   public static void printResults() {
  +      System.out.println( "\n=== performance monitor results ===" );
  +      HashMap results = getAvgResults();
  +      String name;
  +      float value;
  +      for (Iterator i = results.keySet().iterator(); i.hasNext(); ) {
  +         name = (String)i.next();
  +         value = (float) ((Float)results.get( name )).floatValue();
  +         System.out.println( name + " = " + value );	
  +      }   	   	
  +      System.out.println();
  +   }
  +
   }
   
   class Timer {
  
  
  

Mime
View raw message