Purpose: A tool used to provide high level performance profiling information.
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected long | |
| protected Map | |
| protected Map | |
| protected List | |
| protected long | |
| protected transient AbstractSession | |
| protected boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| nestLevel | back to summary |
|---|---|
| protected int nestLevel | |
| nestTime | back to summary |
|---|---|
| protected long nestTime | |
| operationStartTimesByThread | back to summary |
|---|---|
| protected Map<Integer, Map<String, Long>> operationStartTimesByThread | |
| operationTimingsByThread | back to summary |
|---|---|
| protected Map<Integer, Map<String, Long>> operationTimingsByThread | |
| profiles | back to summary |
|---|---|
| protected List<Profile> profiles | |
| profileTime | back to summary |
|---|---|
| protected long profileTime | |
| session | back to summary |
|---|---|
| protected transient AbstractSession session | |
| shouldLogProfile | back to summary |
|---|---|
| protected boolean shouldLogProfile | |
| PerformanceProfiler | back to summary |
|---|---|
| public PerformanceProfiler() PUBLIC: Create a new profiler. The profiler can be registered with a session to log performance information on queries. | |
| PerformanceProfiler | back to summary |
|---|---|
| public PerformanceProfiler(boolean shouldLogProfile) PUBLIC: Create a new profiler. The profiler can be registered with a session to log performance information on queries. | |
| addProfile | back to summary |
|---|---|
| protected void addProfile(Profile profile) | |
| buildProfileSummary | back to summary |
|---|---|
| public Profile buildProfileSummary() INTERNAL: Return a summary profile reporting on the profiles contained. | |
| buildProfileSummaryByClass | back to summary |
|---|---|
| public Hashtable INTERNAL: Return a map of summary profiles reporting on the profile contained. | |
| buildProfileSummaryByQuery | back to summary |
|---|---|
| public Hashtable INTERNAL: Return a map of summary profiles reporting on the profile contained. | |
| clone | back to summary |
|---|---|
| public PerformanceProfiler clone() Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| dontLogProfile | back to summary |
|---|---|
| public void dontLogProfile() PUBLIC: Set whether after each query execution the profile result should be logged. By default this is false. | |
| endOperationProfile | back to summary |
|---|---|
| public void endOperationProfile(String operationName) Overrides org. Implements org. INTERNAL: End the operation timing.
| |
| endOperationProfile | back to summary |
|---|---|
| public void endOperationProfile(String operationName, DatabaseQuery query, int weight) Overrides org. Implements org. INTERNAL: End the operation timing.
| |
| getNestLevel | back to summary |
|---|---|
| protected int getNestLevel() | |
| getNestTime | back to summary |
|---|---|
| protected long getNestTime() | |
| getOperationStartTimes | back to summary |
|---|---|
| protected Map | |
| getOperationStartTimesByThread | back to summary |
|---|---|
| protected Map | |
| getOperationTimings | back to summary |
|---|---|
| protected Map | |
| getOperationTimingsByThread | back to summary |
|---|---|
| protected Map | |
| getProfiles | back to summary |
|---|---|
| public List Return the profiles logged in this profiler. | |
| getProfileTime | back to summary |
|---|---|
| protected long getProfileTime() | |
| getProfileWeight | back to summary |
|---|---|
| public int getProfileWeight() Overrides org. Implements org. Doc from org. INTERNAL: Return DMS sensor weight(DMS)
| |
| getSession | back to summary |
|---|---|
| public AbstractSession getSession() | |
| initialize | back to summary |
|---|---|
| public void initialize() Overrides org. Implements org. Doc from org. INTERNAL: Initialize EclipseLink noun tree(DMS)
| |
| logProfile | back to summary |
|---|---|
| public void logProfile() PUBLIC: Set whether after each query execution the profile result should be logged. By default this is true. | |
| logProfileSummary | back to summary |
|---|---|
| public void logProfileSummary() PUBLIC: Log a profile summary. | |
| logProfileSummaryByClass | back to summary |
|---|---|
| public void logProfileSummaryByClass() PUBLIC: Log a profile summary by class. | |
| logProfileSummaryByQuery | back to summary |
|---|---|
| public void logProfileSummaryByQuery() PUBLIC: Log a profile summary by query. | |
| profileExecutionOfQuery | back to summary |
|---|---|
| public Object profileExecutionOfQuery(DatabaseQuery query, DataRecord row, AbstractSession session) Overrides org. Implements org. INTERNAL: Finish a profile operation if profiling. This assumes the start operation proceeds on the stack. The session must be passed to allow units of work etc. to share their parents profiler.
| |
| setNestLevel | back to summary |
|---|---|
| protected void setNestLevel(int nestLevel) | |
| setNestTime | back to summary |
|---|---|
| protected void setNestTime(long nestTime) | |
| setOperationStartTimes | back to summary |
|---|---|
| protected void setOperationStartTimes(Map<String, Long> operationStartTimes) | |
| setOperationStartTimesByThread | back to summary |
|---|---|
| protected void setOperationStartTimesByThread(Map<Integer, Map<String, Long>> operationStartTimesByThread) | |
| setOperationTimings | back to summary |
|---|---|
| protected void setOperationTimings(Map<String, Long> operationTimings) | |
| setOperationTimingsByThread | back to summary |
|---|---|
| protected void setOperationTimingsByThread(Map<Integer, Map<String, Long>> operationTimingsByThread) | |
| setProfiles | back to summary |
|---|---|
| protected void setProfiles(Vector<Profile> profiles) | |
| setProfileTime | back to summary |
|---|---|
| protected void setProfileTime(long profileTime) | |
| setSession | back to summary |
|---|---|
| public void setSession(Session session) Overrides org. Implements org. Doc from org. INTERNAL: Set the session.
| |
| setShouldLogProfile | back to summary |
|---|---|
| public void setShouldLogProfile(boolean shouldLogProfile) PUBLIC: Set whether after each query execution the profile result should be logged. By default this is true. | |
| shouldLogProfile | back to summary |
|---|---|
| public boolean shouldLogProfile() | |
| startOperationProfile | back to summary |
|---|---|
| public void startOperationProfile(String operationName) Overrides org. Implements org. INTERNAL: Start the operation timing.
| |
| startOperationProfile | back to summary |
|---|---|
| public void startOperationProfile(String operationName, DatabaseQuery query, int weight) Overrides org. Implements org. INTERNAL: Start the operation timing.
| |
| writeNestingTabs | back to summary |
|---|---|
| protected void writeNestingTabs(Writer writer) | |