org.databene.profile
Class Profile
java.lang.Object
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
Profile
public Profile(String name,
Profile parent)
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.