Analyzing performance with a call graph model
Contents
You use the PowerScript functions and PowerBuilder objects
listed in The following table to analyze the performance of an
application.
|
Use this function |
With this object |
To do this |
|---|---|---|
|
SetTraceFileName |
Profiling |
Set the name of the trace file to be |
|
BuildModel |
Profiling |
Build a call graph model based on the trace file. |
|
RoutineList |
Profiling and ProfileClass |
Get a list of routines in the model or in a |
|
ClassList |
Profiling |
Get a list of classes in the |
|
SystemRoutine |
Profiling |
Get the name of the routine node that represents |
|
IncomingCallList |
ProfileRoutine |
Get a list of routines that called a specific |
|
OutgoingCallList |
ProfileRoutine and ProfileLine |
Get a list of routines called by a specific |
|
LineList |
ProfileRoutine |
Get a list of lines in the routine in line |
|
DestroyModel |
Profiling |
Destroy the current performance analysis model |
Each of these functions returns a value of the enumerated
datatype ErrorReturn. The objects contain information such as the
number of times a line or routine was executed, and the amount of time
spent in a line or routine and in any routines called from that line
or routine.