|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.tools.profiler.PerformanceProfiler
public class PerformanceProfiler
Purpose: A tool used to provide high level performance profiling information.
| Field Summary |
|---|
| 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 | |
|---|---|
Profile |
buildProfileSummary()
INTERNAL: Return a summary profile reporting on the profiles contained. |
Hashtable |
buildProfileSummaryByClass()
INTERNAL: Return a map of summary profiles reporting on the profile contained. |
Hashtable |
buildProfileSummaryByQuery()
INTERNAL: Return a map of summary profiles reporting on the profile contained. |
Object |
clone()
|
void |
dontLogProfile()
PUBLIC: Set whether after each query execution the profile result should be logged. |
void |
endOperationProfile(String operationName)
INTERNAL: End the operation timing. |
void |
endOperationProfile(String operationName,
DatabaseQuery query,
int weight)
INTERNAL: End the operation timing. |
Vector |
getProfiles()
Return the profiles logged in this profiler. |
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. |
void |
occurred(String operationName)
INTERNAL: Increase DMS Event sensor occurrence.(DMS) |
Object |
profileExecutionOfQuery(DatabaseQuery query,
Record row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Finish a profile operation if profiling. |
void |
setProfileWeight(int weight)
INTERNAL: Set DMS sensor weight(DMS) |
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(String operationName)
INTERNAL: Start the operation timing. |
void |
startOperationProfile(String operationName,
DatabaseQuery query,
int weight)
INTERNAL: Start the operation timing. |
void |
update(String operationName,
Object value)
INTERNAL: Update the value of the State sensor.(DMS) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerformanceProfiler()
public PerformanceProfiler(Session session)
public PerformanceProfiler(Session session,
boolean shouldLogProfile)
public PerformanceProfiler(boolean shouldLogProfile)
| Method Detail |
|---|
public Profile buildProfileSummary()
public Hashtable buildProfileSummaryByClass()
public Hashtable buildProfileSummaryByQuery()
public Object clone()
clone in class Objectpublic void dontLogProfile()
public void endOperationProfile(String operationName)
endOperationProfile in interface SessionProfiler
public void endOperationProfile(String operationName,
DatabaseQuery query,
int weight)
endOperationProfile in interface SessionProfilerpublic Vector getProfiles()
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
public void logProfile()
public void logProfileSummary()
public void logProfileSummaryByClass()
public void logProfileSummaryByQuery()
public Object profileExecutionOfQuery(DatabaseQuery query,
Record row,
org.eclipse.persistence.internal.sessions.AbstractSession session)
profileExecutionOfQuery in interface SessionProfilerpublic void setSession(Session session)
SessionProfiler
setSession in interface SessionProfilerpublic void setShouldLogProfile(boolean shouldLogProfile)
public boolean shouldLogProfile()
public void startOperationProfile(String operationName)
startOperationProfile in interface SessionProfiler
public void startOperationProfile(String operationName,
DatabaseQuery query,
int weight)
startOperationProfile in interface SessionProfiler
public void update(String operationName,
Object value)
SessionProfiler
update in interface SessionProfilerpublic void occurred(String operationName)
SessionProfiler
occurred in interface SessionProfilerpublic void setProfileWeight(int weight)
SessionProfiler
setProfileWeight in interface SessionProfilerpublic int getProfileWeight()
SessionProfiler
getProfileWeight in interface SessionProfilerpublic void initialize()
SessionProfiler
initialize in interface SessionProfiler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||