Profiling and Tracing PL/SQL Programs
To help you isolate performance problems in large PL/SQL programs, PL/SQL provides these tools, implemented as PL/SQL packages.
Table 13-1 Profiling and Tracing Tools Summary
Tool | Package | Description |
---|---|---|
Profiler interface |
|
Computes the time that your PL/SQL program spends at each line and in each subprogram. You must have Saves runtime statistics in database tables, which you can query. |
Trace interface |
|
Traces the order in which subprograms run. You can specify the subprograms to trace and the tracing level. Saves runtime statistics in database tables, which you can query. |
PL/SQL hierarchical profiler |
|
Reports the dynamic execution program profile of your PL/SQL program, organized by subprogram invocations. Accounts for SQL and PL/SQL execution times separately. Requires no special source or compile-time preparation. Generates reports in HTML. Provides the option of storing profiler data and results in relational format in database tables for custom report generation (such as third-party tools offer). |
SQL trace |
|
Uses the |
PL/SQL Basic Block Coverage |
|
Collects and analyzes basic block coverage data. |
Call Stack Utilities |
|
Provides information about currently executing subprograms (such as subprogram names, unit names, owner names, edition names, and error stack information) that you can use to create more revealing error logs and application execution traces. |
Related Topics
-
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_APPLICATION_INFO
package -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_HPROF
package -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_PLSQL_CODE_COVERAGE
package -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_PROFILER
package -
Oracle Database PL/SQL Packages and Types Reference for more information about the
DBMS_TRACE
packageOracle Database PL/SQL Packages and Types Reference for more information about the
UTL_CALL_STACK
package -
COVERAGE Pragma for the syntax and semantics of
COVERAGE PRAGMA
-
Oracle Database Development Guide for more information about using PL/SQL basic block coverage
-
Oracle Database Development Guide for a detailed description of PL/SQL hierarchical profiler
-
Oracle Database Development Guide for more information about analyzing and debugging stored subprograms