org.databene.profile
Class Profile

java.lang.Object
  extended by org.databene.profile.Profile

public class Profile
extends Object

Uses a LatencyCounter to collect profile information and manages sub profiles.

Created: 19.05.2011 09:08:27

Since:
2.0.0
Author:
Volker Bergmann

Constructor Summary
Profile(String name, Profile parent)
           
 
Method Summary
 void addSample(int duration)
           
 boolean equals(Object obj)
           
 double getAverageLatency()
           
 long getInvocationCount()
           
 String getName()
           
 Profile getOrCreateSubProfile(String name)
           
 Profile getParent()
           
 Collection<Profile> getSubProfiles()
           
 long getTotalLatency()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Profile

public Profile(String name,
               Profile parent)
Method Detail

getName

public String getName()

getParent

public Profile getParent()

getSubProfiles

public Collection<Profile> getSubProfiles()

getOrCreateSubProfile

public Profile getOrCreateSubProfile(String name)

addSample

public void addSample(int duration)

getInvocationCount

public long getInvocationCount()

getTotalLatency

public long getTotalLatency()

getAverageLatency

public double getAverageLatency()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.