Contents Index Index Consultant Graphical plan

ASA SQL User's Guide
  Monitoring and Improving Performance
    Performance analysis tools

Procedure profiling


Procedure profiling shows you how long it takes your stored procedures, functions, events, and triggers to execute. You can also view the execution time for each line of a procedure. Using the database profiling information, you can determine which procedures can be fine-tuned to improve performance within your database.

Procedure profiling can help you analyze specific database procedures (including stored procedures, functions, events and triggers) found to be expensive via request level logging. It can also help you discover expensive, hidden, procedures, for example triggers, events, and nested stored procedure calls. As well, it can help pin-point potential problem areas within the body of a procedure

You can use stored procedures to view procedure profiling information that has been gathered by the server. The sa_procedure_profile_summary stored procedure provides information about all of the procedures within the database. You can use this procedure to view the profiling data for stored procedures, functions, events, and triggers within the same result set. However, a better way to examine this information is to use Sybase Central.

Profiling can be enabled/disabled dynamically and the data it generates is transient, stored in memory by the server. You can view it using the Profile tab in Sybase Central. Once profiling is enabled, the database gathers profiling information until you disable profiling or until the server is shut down. Profiling information is cumulative, and accurate to 1 ms.


Contents Index Index Consultant Graphical plan