Skip Headers
Oracle TopLink Developer's Guide
10g Release 3 (10.1.3)
B13593-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

Configuring a Performance Profiler

To successfully improve the performance of a TopLink application, you must measure performance before and after each optimization. TopLink provides a variety of built-in performance measuring features (known as profilers) that you can configure at the session level.

Table 77-10 summarizes which sessions support performance profiler configuration.

Table 77-10 Session Support for Performance Profiler Configuration

Session Using TopLink Workbench
Using Java

Server and Client Sessions


Supported.


Supported.


Session Broker and Client Sessions


Supported.


Supported.


Database Sessions


Supported.


Supported.



TopLink provides the following profilers:

Using TopLink Workbench

To specify the type of profiler in a session, use this procedure:

Use the following information to select the profiler option to use with this session:

Option Description
No Profiler Disable all profiling.
DMS Enable Oracle Dynamic Monitoring (DMS) profiling. For more information, see the following:
Standard (TopLink) Enable TopLink profiling. For more information, see the following:

Using Java

You can use Java to configure a session with a profiler using Session method setProfiler, as Example 77-5 shows.

Example 77-5 Configuring a Session with a TopLink Profiler

session.setProfiler(new PerformanceProfiler());

To end a profiling session, use Session method clearProfiler.