public class Profile
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Purpose: Any information stored for a profile operation.
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class |
domainClass |
protected long |
localTime |
protected long |
longestTime |
protected long |
numberOfInstancesEffected |
protected java.util.Hashtable |
operationTimings |
protected long |
profileTime |
protected java.lang.Class |
queryClass |
protected long |
shortestTime |
protected long |
totalTime |
Constructor and Description |
---|
Profile() |
Modifier and Type | Method and Description |
---|---|
void |
addTiming(java.lang.String name,
long time) |
java.lang.Object |
clone() |
java.lang.Class |
getDomainClass() |
long |
getLocalTime() |
long |
getLongestTime() |
long |
getNumberOfInstancesEffected() |
long |
getObjectsPerSecond() |
java.util.Hashtable |
getOperationTimings() |
long |
getProfileTime() |
java.lang.Class |
getQueryClass() |
long |
getShortestTime() |
long |
getTimePerObject() |
long |
getTotalTime() |
void |
setDomainClass(java.lang.Class domainClass) |
void |
setLocalTime(long localTime) |
void |
setLongestTime(long longestTime) |
void |
setNumberOfInstancesEffected(long numberOfInstancesEffected) |
void |
setOperationTimings(java.util.Hashtable operationTimings) |
void |
setProfileTime(long profileTime) |
void |
setQueryClass(java.lang.Class queryClass) |
void |
setShortestTime(long shortestTime) |
void |
setTotalTime(long totalTime) |
java.lang.String |
toString() |
void |
write(java.io.Writer writer,
PerformanceProfiler profiler) |
protected java.lang.Class queryClass
protected java.lang.Class domainClass
protected long numberOfInstancesEffected
protected java.util.Hashtable operationTimings
protected long localTime
protected long profileTime
protected long totalTime
protected long shortestTime
protected long longestTime
public void addTiming(java.lang.String name, long time)
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.Class getDomainClass()
public long getLocalTime()
public long getLongestTime()
public long getNumberOfInstancesEffected()
public long getObjectsPerSecond()
public java.util.Hashtable getOperationTimings()
public long getProfileTime()
public java.lang.Class getQueryClass()
public long getShortestTime()
public long getTimePerObject()
public long getTotalTime()
public void setDomainClass(java.lang.Class domainClass)
public void setLocalTime(long localTime)
public void setLongestTime(long longestTime)
public void setNumberOfInstancesEffected(long numberOfInstancesEffected)
public void setOperationTimings(java.util.Hashtable operationTimings)
public void setProfileTime(long profileTime)
public void setQueryClass(java.lang.Class queryClass)
public void setShortestTime(long shortestTime)
public void setTotalTime(long totalTime)
public java.lang.String toString()
toString
in class java.lang.Object
public void write(java.io.Writer writer, PerformanceProfiler profiler)