| Home | Previous Lesson: Trace View Next Lesson: Performance Modelling Objects |
Enabling the tracing from the 'System Options' dialog box is the easiest and fastest way to capture performance info and analyze it. However, if you need, you can do custom models using the PowerScript function calls provided for this purpose.
First, you need to open the trace file using TraceOpen() function and TraceEnableActivity() function for each activity that you want to trace. The possible values for this function are:
Once you enable things you want to trace, then call TraceBegin() function to start tracing. At the end of the code where you want to stop tracing, call TraceEnd() function to stop tracing. This function does not close the trace file; You need to call TraceClose() to close the trace file. Once you open the trace file, you can call TraceBegin(),TraceEnd() functions any number of times to trace different blocks of code. You can even write your own messages and error messages using TraceUser() and TraceError() functions.
Capturing doesn't take much coding, but analysis needs a lot of coding.
| Home | Previous Lesson: Trace View Next Lesson: Performance Modelling Objects |