com.sun.enterprise.util
Class ProfilerImpl

java.lang.Object
  extended by com.sun.enterprise.util.ProfilerImpl

public class ProfilerImpl
extends java.lang.Object

Simple class for profiling code. beginItem/endItem pairs start and stop the timing for an item.

Author:
bnevins

Constructor Summary
ProfilerImpl()
          Create an empty object
 
Method Summary
 void beginItem()
          Start timing an item.
 void beginItem(java.lang.String desc)
          Start timing an item.
 void endItem()
          Stop timing an item and store the information.
static void main(java.lang.String[] notUsed)
          Simple unit test
 void reset()
          Reset all the timing information
 java.lang.String toString()
          Return a formatted String with the timing information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProfilerImpl

public ProfilerImpl()
Create an empty object

Method Detail

reset

public void reset()
Reset all the timing information


beginItem

public void beginItem()
Start timing an item.


beginItem

public void beginItem(java.lang.String desc)
Start timing an item.

Parameters:
desc - - Descriptive text for the item

endItem

public void endItem()
Stop timing an item and store the information.


toString

public java.lang.String toString()
Return a formatted String with the timing information

Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] notUsed)
Simple unit test



Copyright © 2012 GlassFish Community. All Rights Reserved.