com.caucho.tools.profiler
Class ProfilerPoint

java.lang.Object
  extended by com.caucho.tools.profiler.ProfilerPoint
All Implemented Interfaces:
java.lang.Comparable<ProfilerPoint>
Direct Known Subclasses:
CategorizingProfilerPoint

public class ProfilerPoint
extends java.lang.Object
implements java.lang.Comparable<ProfilerPoint>

Represents a unique point at which profiling is performed. Obtained from a ProfilerManager. Equality between two instances of ProfilerPoint is based on the name only.


Method Summary
 ProfilerPoint addProfilerPoint(java.lang.String name)
           
 int compareTo(ProfilerPoint point)
           
protected  ProfilerPoint create(java.lang.String name)
           
 boolean equals(java.lang.Object o)
           
 long getInvocationCount()
           
 long getMaxTime()
          Minimum time for this node in nanoseconds, does not include the time for child nodes.
 long getMinTime()
          Minimum time for this node in nanoseconds, does not include the time for child nodes.
 java.lang.String getName()
           
protected  ProfilerManager getProfilerManager()
           
 long getTime()
          Time for this node in nanoseconds, does not include the time for child nodes.
 int hashCode()
           
 Profiler start()
           
protected  Profiler start(ProfilerPoint parent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getProfilerManager

protected ProfilerManager getProfilerManager()

getName

public java.lang.String getName()

addProfilerPoint

public ProfilerPoint addProfilerPoint(java.lang.String name)

create

protected ProfilerPoint create(java.lang.String name)

start

public Profiler start()

start

protected Profiler start(ProfilerPoint parent)

getTime

public long getTime()
Time for this node in nanoseconds, does not include the time for child nodes.


getMinTime

public long getMinTime()
Minimum time for this node in nanoseconds, does not include the time for child nodes.


getMaxTime

public long getMaxTime()
Minimum time for this node in nanoseconds, does not include the time for child nodes.


getInvocationCount

public long getInvocationCount()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(ProfilerPoint point)
Specified by:
compareTo in interface java.lang.Comparable<ProfilerPoint>

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object