Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.tools.profiler
Class PerformanceProfiler

java.lang.Object
  extended by oracle.toplink.tools.profiler.PerformanceProfiler
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, SessionProfiler

public class PerformanceProfiler
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable, SessionProfiler

Purpose: A tool used to provide high level performance profiling information.

Since:
TopLink 1.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface oracle.toplink.sessions.SessionProfiler
ALL, AssignSequence, CACHE, CachedObjects, CacheHits, CacheMisses, CacheNounType, Caching, ChangeSetsNotProcessed, ChangeSetsProcessed, ClientSessionCreated, CONNECT, ConnectionInUse, ConnectionManagement, ConnectionNounType, ConnectionPing, DatabaseExecute, DeletedObject, DescriptorEvent, DistributedMerge, DistributedMergeDmsDisplayName, HEAVY, JtsAfterCompletion, JtsBeforeCompletion, Logging, LoggingDMSDisPlayName, LoginTime, Merge, MergeTime, MiscellaneousNounType, NONE, NORMAL, OBJECT_BUILDING, ObjectBuilding, OptimisticLockException, QUERY_PREPARE, QueryNounType, QueryPreparation, RcmNounType, RcmReceived, RcmSent, RcmStatus, Register, RemoteChangeSet, ROW_FETCH, RowFetch, Sequencing, SessionEvent, SessionName, SessionNounType, SQL_GENERATION, SQL_PREPARE, SqlGeneration, SqlPrepare, STATEMENT_EXECUTE, TlConnects, TlDisconnects, TopLinkRootNoun, TRANSACTION, TransactionNounType, UnitOfWorkRegister, UowCommit, UowCreated, UowRollbacks, Wrapping
 
Constructor Summary
PerformanceProfiler()
          Create a new profiler.
PerformanceProfiler(boolean shouldLogProfile)
          Create a new profiler.
PerformanceProfiler(Session session)
          OBSOLETE: Create a new profiler.
PerformanceProfiler(Session session, boolean shouldLogProfile)
          OBSOLETE: Create a new profiler.
 
Method Summary
 java.lang.Object clone()
           
 void dontLogProfile()
          Set whether after each query execution the profile result should be logged.
 java.util.Vector getProfiles()
          Return the profiles logged in this profiler.
 oracle.toplink.internal.sessions.AbstractSession getSession()
           
 void logProfile()
          Set whether after each query execution the profile result should be logged.
 void logProfileSummary()
          Log a profile summary.
 void logProfileSummaryByClass()
          Log a profile summary by class.
 void logProfileSummaryByQuery()
          Log a profile summary by query.
 void setShouldLogProfile(boolean shouldLogProfile)
          Set whether after each query execution the profile result should be logged.
 boolean shouldLogProfile()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceProfiler

public PerformanceProfiler()
Create a new profiler. The profiler can be registered with a session to log performance information on queries.


PerformanceProfiler

public PerformanceProfiler(Session session)
OBSOLETE: Create a new profiler. The profiler can be registered with a session to log performance information on queries.


PerformanceProfiler

public PerformanceProfiler(Session session,
                           boolean shouldLogProfile)
OBSOLETE: Create a new profiler. The profiler can be registered with a session to log performance information on queries.


PerformanceProfiler

public PerformanceProfiler(boolean shouldLogProfile)
Create a new profiler. The profiler can be registered with a session to log performance information on queries.

Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

dontLogProfile

public void dontLogProfile()
Set whether after each query execution the profile result should be logged. Bu default this is true.


getProfiles

public java.util.Vector getProfiles()
Return the profiles logged in this profiler.


getSession

public oracle.toplink.internal.sessions.AbstractSession getSession()

logProfile

public void logProfile()
Set whether after each query execution the profile result should be logged. Bu default this is true.


logProfileSummary

public void logProfileSummary()
Log a profile summary.


logProfileSummaryByClass

public void logProfileSummaryByClass()
Log a profile summary by class.


logProfileSummaryByQuery

public void logProfileSummaryByQuery()
Log a profile summary by query.


setShouldLogProfile

public void setShouldLogProfile(boolean shouldLogProfile)
Set whether after each query execution the profile result should be logged. Bu default this is true.


shouldLogProfile

public boolean shouldLogProfile()

Copyright © 1998, 2010, Oracle. All Rights Reserved.