Oracle Application Server TopLink API Reference
10g (9.0.4)

B10491-01

oracle.toplink.tools.profiler
Class PerformanceProfiler

java.lang.Object
  |
  +--oracle.toplink.tools.profiler.PerformanceProfiler
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable, 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

Constructor Summary
PerformanceProfiler()
          PUBLIC: Create a new profiler.
PerformanceProfiler(boolean shouldLogProfile)
          PUBLIC: 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()
          PUBLIC: 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.publicinterface.Session getSession()
           
 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 setSession(Session session)
          INTERNAL: Set the sesssion.
 void setShouldLogProfile(boolean shouldLogProfile)
          PUBLIC: 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()
PUBLIC: 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)
PUBLIC: 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()
PUBLIC: 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.publicinterface.Session getSession()

logProfile

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

logProfileSummary

public void logProfileSummary()
PUBLIC: Log a profile summary.

logProfileSummaryByClass

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

logProfileSummaryByQuery

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

setSession

public void setSession(Session session)
Description copied from interface: SessionProfiler
INTERNAL: Set the sesssion.
Specified by:
setSession in interface SessionProfiler

setShouldLogProfile

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

shouldLogProfile

public boolean shouldLogProfile()

Copyright © 2003 Oracle Corporation. All Rights Reserved.