|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.sessions.SessionProfilerAdapter
org.eclipse.persistence.tools.profiler.PerformanceProfiler
public class PerformanceProfiler
Purpose: A tool used to provide high level performance profiling information.
| Field Summary | |
|---|---|
protected int |
nestLevel
|
protected long |
nestTime
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> |
operationStartTimesByThread
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> |
operationTimingsByThread
|
protected java.util.List<Profile> |
profiles
|
protected long |
profileTime
|
protected org.eclipse.persistence.internal.sessions.AbstractSession |
session
|
protected boolean |
shouldLogProfile
|
| Fields inherited from interface org.eclipse.persistence.sessions.SessionProfiler |
|---|
ALL, AssignSequence, CacheHits, CacheMisses, CacheSize, Caching, ChangeSetsNotProcessed, ChangeSetsProcessed, ClientSessionCreated, ClientSessionReleased, ConnectionManagement, ConnectionPing, Connects, DescriptorEvent, Disconnects, DistributedMerge, HEAVY, JtsAfterCompletion, JtsBeforeCompletion, Logging, LoginTime, Merge, NONE, NORMAL, ObjectBuilding, OptimisticLockException, QueryPreparation, RcmReceived, RcmSent, RcmStatus, Register, Remote, RemoteChangeSet, RemoteLazy, RemoteMetadata, RowFetch, SessionEvent, SessionName, SqlGeneration, SqlPrepare, StatementExecute, Transaction, UowCommit, UowCommits, UowCreated, UowReleased, UowRollbacks |
| Constructor Summary | |
|---|---|
PerformanceProfiler()
PUBLIC: Create a new profiler. |
|
PerformanceProfiler(boolean shouldLogProfile)
PUBLIC: Create a new profiler. |
|
PerformanceProfiler(Session session)
Deprecated. replaced by PerformanceProfiler() |
|
PerformanceProfiler(Session session,
boolean shouldLogProfile)
Deprecated. replaced by PerformanceProfiler() |
|
| Method Summary | |
|---|---|
protected void |
addProfile(Profile profile)
|
Profile |
buildProfileSummary()
INTERNAL: Return a summary profile reporting on the profiles contained. |
java.util.Hashtable |
buildProfileSummaryByClass()
INTERNAL: Return a map of summary profiles reporting on the profile contained. |
java.util.Hashtable |
buildProfileSummaryByQuery()
INTERNAL: Return a map of summary profiles reporting on the profile contained. |
PerformanceProfiler |
clone()
|
void |
dontLogProfile()
PUBLIC: Set whether after each query execution the profile result should be logged. |
void |
endOperationProfile(java.lang.String operationName)
INTERNAL: End the operation timing. |
void |
endOperationProfile(java.lang.String operationName,
DatabaseQuery query,
int weight)
INTERNAL: End the operation timing. |
protected int |
getNestLevel()
|
protected long |
getNestTime()
|
protected java.util.Map<java.lang.String,java.lang.Long> |
getOperationStartTimes()
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> |
getOperationStartTimesByThread()
|
protected java.util.Map<java.lang.String,java.lang.Long> |
getOperationTimings()
|
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> |
getOperationTimingsByThread()
|
java.util.List<Profile> |
getProfiles()
Return the profiles logged in this profiler. |
protected long |
getProfileTime()
|
int |
getProfileWeight()
INTERNAL: Return DMS sensor weight(DMS) |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession()
|
void |
initialize()
INTERNAL: Initialize EclipseLink noun tree(DMS) |
void |
logProfile()
PUBLIC: Set whether after each query execution the profile result should be logged. |
void |
logProfileSummary()
PUBLIC: Log a profile summary. |
void |
logProfileSummaryByClass()
PUBLIC: Log a profile summary by class. |
void |
logProfileSummaryByQuery()
PUBLIC: Log a profile summary by query. |
java.lang.Object |
profileExecutionOfQuery(DatabaseQuery query,
Record row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Finish a profile operation if profiling. |
protected void |
setNestLevel(int nestLevel)
|
protected void |
setNestTime(long nestTime)
|
protected void |
setOperationStartTimes(java.util.Map<java.lang.String,java.lang.Long> operationStartTimes)
|
protected void |
setOperationStartTimesByThread(java.util.Hashtable operationStartTimesByThread)
|
protected void |
setOperationTimings(java.util.Map<java.lang.String,java.lang.Long> operationTimings)
|
protected void |
setOperationTimingsByThread(java.util.Hashtable operationTimingsByThread)
|
protected void |
setProfiles(java.util.Vector profiles)
|
protected void |
setProfileTime(long profileTime)
|
void |
setSession(Session session)
INTERNAL: Set the session. |
void |
setShouldLogProfile(boolean shouldLogProfile)
PUBLIC: Set whether after each query execution the profile result should be logged. |
boolean |
shouldLogProfile()
|
void |
startOperationProfile(java.lang.String operationName)
INTERNAL: Start the operation timing. |
void |
startOperationProfile(java.lang.String operationName,
DatabaseQuery query,
int weight)
INTERNAL: Start the operation timing. |
protected void |
writeNestingTabs(java.io.Writer writer)
|
| Methods inherited from class org.eclipse.persistence.sessions.SessionProfilerAdapter |
|---|
occurred, occurred, setProfileWeight, update |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<Profile> profiles
protected transient org.eclipse.persistence.internal.sessions.AbstractSession session
protected boolean shouldLogProfile
protected int nestLevel
protected long nestTime
protected long profileTime
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> operationTimingsByThread
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> operationStartTimesByThread
| Constructor Detail |
|---|
public PerformanceProfiler()
public PerformanceProfiler(Session session)
public PerformanceProfiler(Session session,
boolean shouldLogProfile)
public PerformanceProfiler(boolean shouldLogProfile)
| Method Detail |
|---|
protected void addProfile(Profile profile)
public Profile buildProfileSummary()
public java.util.Hashtable buildProfileSummaryByClass()
public java.util.Hashtable buildProfileSummaryByQuery()
public PerformanceProfiler clone()
clone in class java.lang.Objectpublic void dontLogProfile()
public void endOperationProfile(java.lang.String operationName)
endOperationProfile in interface SessionProfilerendOperationProfile in class SessionProfilerAdapter
public void endOperationProfile(java.lang.String operationName,
DatabaseQuery query,
int weight)
endOperationProfile in interface SessionProfilerendOperationProfile in class SessionProfilerAdapterprotected int getNestLevel()
protected long getNestTime()
protected java.util.Map<java.lang.String,java.lang.Long> getOperationStartTimes()
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> getOperationStartTimesByThread()
protected java.util.Map<java.lang.String,java.lang.Long> getOperationTimings()
protected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,java.lang.Long>> getOperationTimingsByThread()
public java.util.List<Profile> getProfiles()
protected long getProfileTime()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
public void logProfile()
public void logProfileSummary()
public void logProfileSummaryByClass()
public void logProfileSummaryByQuery()
public java.lang.Object profileExecutionOfQuery(DatabaseQuery query,
Record row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
profileExecutionOfQuery in interface SessionProfilerprofileExecutionOfQuery in class SessionProfilerAdapterprotected void setNestLevel(int nestLevel)
protected void setNestTime(long nestTime)
protected void setOperationStartTimes(java.util.Map<java.lang.String,java.lang.Long> operationStartTimes)
protected void setOperationStartTimesByThread(java.util.Hashtable operationStartTimesByThread)
protected void setOperationTimings(java.util.Map<java.lang.String,java.lang.Long> operationTimings)
protected void setOperationTimingsByThread(java.util.Hashtable operationTimingsByThread)
protected void setProfiles(java.util.Vector profiles)
protected void setProfileTime(long profileTime)
public void setSession(Session session)
SessionProfilerAdapter
setSession in interface SessionProfilersetSession in class SessionProfilerAdapterpublic void setShouldLogProfile(boolean shouldLogProfile)
public boolean shouldLogProfile()
public void startOperationProfile(java.lang.String operationName)
startOperationProfile in interface SessionProfilerstartOperationProfile in class SessionProfilerAdapter
public void startOperationProfile(java.lang.String operationName,
DatabaseQuery query,
int weight)
startOperationProfile in interface SessionProfilerstartOperationProfile in class SessionProfilerAdapterprotected void writeNestingTabs(java.io.Writer writer)
public int getProfileWeight()
SessionProfilerAdapter
getProfileWeight in interface SessionProfilergetProfileWeight in class SessionProfilerAdapterpublic void initialize()
SessionProfilerAdapter
initialize in interface SessionProfilerinitialize in class SessionProfilerAdapter
|
EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||