Protomatter Software v1.1.7

com.protomatter.util
Class OpTimerUtil

java.lang.Object
  |
  +--com.protomatter.util.OpTimerUtil

public class OpTimerUtil
extends java.lang.Object

A utility class for parsing log files with timer traces. Run this class as follows for a usage display:

  java com.protomatter.util.OpTimerUtil
  
Example output looks like the following:


  Reading file "file.txt"
  Parsed 2843 lines.
  Found 1 unique timer names
  Found 2843 timer traces
  
  Timing information:
  ---------------------------------------------------------------------------
  OpTimer: My timer
    count   = 2,843
    total   = 222,946 ms
    min     = 0 ms
    max     = 360 ms
    median  = 65 ms
    average = 78.42 ms
  
    Histogram:
    Median: ------------v
   Average: --------------v
        132   o   o                                                              
            o ooo o   o                                                          
            ooooo o  ooo o                                                       
         88 oooooooo oooooo                                                      
            ooooooooooooooooooo                                                  
            ooooooooooooooooooooo                                                
         44 ooooooooooooooooooooooooo  o                                         
            ooooooooooooooooooooooooooooooo                                      
            oooooooooooooooooooooooooooooooooooooo  o                            
    count 0 ooooooooooooooooooooooooooooooooooooooooooooooooooooo ooooooo oo    o
            |          |          |          |          |          |          |
     millis 0         58        116        175        233        291        349
  
  

The graph axes are automatically scaled for the data being parsed. This can be very useful for gathering statistics from log files to determine system bottlenecks.

Command line options include the ability to only display analytic data for a subset of the timers traced in a given log file.

See Also:
OpTimer

Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)

Protomatter Software v1.1.7
Copyright 1998-2002 Nate Sammons

Protomatter Software v1.1.7 http://protomatter.sourceforge.net/1.1.7