Viewing procedure profiling information in Sybase Central

Procedure profiling provides you with different information depending whether you choose to look at information for your entire database, a specific type of object, or a particular procedure. The information can be displayed in the following ways:

You must be connected to your database and have profiling enabled to view profiling information.

When you view profiling information for your entire database, the following columns appear:

These columns provide a summary of the profiling information for all of the procedures that have been executed within the database. One procedure can call other procedures, so there may be more items listed than those users call specifically.

StepsTo view summary profiling information for stored procedures and functions

  1. Select the Procedures & Functions folder in the left pane.

  2. Click the Profile tab in the right pane.

    Profiling information about all the stored procedures and functions within your database appears on the Profile tab.

StepsTo view summary profiling information for events

  1. Open the Events folder in the left pane.

    A list of all the events in your database appears on the Events tab in the right pane.

  2. Click the Profile tab in the right pane.

    Profiling information about all of the events within your database appears on the Profile tab.

StepsTo view summary profiling information for triggers

  1. Open the Triggers folder in the left pane.

    A list of all the triggers in your database appears on the Triggers tab.

  2. Click the Profile tab in the right pane.

    Profiling information about all of the triggers in your database appears on the Profile tab.

StepsTo view summary profiling information for system triggers

  1. Open the System Triggers folder in the left pane.

    A list of all the triggers in your database appears on the System Triggers tab.

  2. Click the Profile tab in the right pane.

    Profiling information about all of the system triggers in your database appears on the Profile tab.


Viewing profiling information for a specific procedure

Sybase IQ provides procedure profiling information about individual stored procedures, functions, events, and triggers. Sybase Central displays different information about individual procedures than it does about all of the stored procedures, functions, events, or triggers within a database.

When you look at the profiling information for a specific procedure, the following columns appear:

The procedure is broken down line by line and you can examine it to see which lines have longer execution times and therefore might benefit from changes to improve the procedure's performance. You must be connected to the database, have profiling enabled, and have DBA authority to access procedure profiling information.

StepsTo view the profiling information for a stored procedure or function

  1. Expand the database in the left pane.

  2. Select the Procedures and Functions folder in the left pane.

    A list of all the stored procedures and functions within your database appears on the Procedures & Functions tab in the right pane.

  3. Click the stored procedure or function you want to profile in the left pane.

  4. Click the Profile tab in the right pane.

    Profiling information about the specific stored procedure or function appears on the Profile tab in the right pane.

StepsTo view profiling information for an event

  1. Expand the database in the left pane.

  2. Select the Events folder in the left pane.

    A list of all the events within your database appears on the Events tab in the right pane.

  3. Click the event you want to profile in the left pane.

  4. Click the Profile tab in the right pane.

    Profiling information about the specific event appears on the Profile tab in the right pane.

StepsTo view profiling information for triggers

  1. Expand the database in the left pane.

  2. Open the Triggers folder in the left pane.

    A list of all the triggers appears on the Triggers tab in the right pane.

  3. Select the trigger you want to profile in the right pane.

  4. Click the Profile tab in the right pane.

    Profiling information about the specific trigger appears on the Profile tab in the right pane.

StepsTo view profiling information for system triggers

  1. Expand the database in the left pane.

  2. Open the System Triggers folder in the left pane.

    A list of all the system triggers appears on the System Triggers tab in the right pane.

  3. Select the system trigger you want to profile in the right pane.

  4. Click the Profile tab in the right pane.

    Profiling information about the specific system trigger appears on the Profile tab in the right pane.