Enabling procedure profiling

Enabling procedure profiling allows the database server to gather profiling information until you disable profiling or until the database server is shut down.

Prerequisites

DBA or PROFILE authority.

Context and remarks

Note

All profiling information is deleted when the database server is shut down. To export profiling information, use the sa_procedure_profile system procedure.

You cannot use SQL statements to query profiling information retained by the database server. Profiling information is kept in in-memory database server data structures.

 Enable procedure profiling (Sybase Central)
  1. Use the SQL Anywhere 12 plug-in to connect to the database.

  2. In the left pane, select the database.

  3. Click Mode » Application Profiling.

    If the Application Profiling Wizard does not appear, click Application Profiling » Open Application Profiling Wizard.

  4. Follow the Application Profiling Wizard instructions.

  5. On the Profiling Options page, click Stored Procedure, Function, Trigger, Or Event Execution Time.

  6. Click Finish.

    If you switch to another mode, a prompt appears asking whether you want to stop collecting procedure profiling information. Click No to continue working in other modes while profiling continues.

Results

Procedure profiling is enabled and the database server collects procedure profiling information.

Next

None.

 See also