RoutineList PowerScript function
Description
Provides a list of the routines included in a performance
analysis model.
Controls
ProfileClass and Profiling objects
Syntax
|
1 |
<span><span>instancename</span>.RoutineList </span><span></span>( <span>list </span>) |
|
Argument |
Description |
|---|---|
|
instancename |
Instance name of the ProfileClass or |
|
list |
An unbounded array variable of datatype |
Return Values
ErrorReturn. Returns one of the following values:
-
Success! – The function
succeeded -
ModelNotExistsError! – No model exists
Usage
Use this function to extract a list of the routines included
in the performance analysis model in a particular class. You must
have previously created the performance analysis model from a trace
file using the BuildModel function. Each routine
is defined as a ProfileRoutine object and provides the time spent in
the routine, any called routines, the number of times each routine
was called, and the class to which the routine belongs. The routines
are listed in no particular order.
Object creation and destruction for a class are each indicated
by a routine in this list as well as by embedded SQL statements.
Examples
This example lists the routines included in each
class found in a performance analysis model:
|
1 |
Long ll_cnt |
|
1 |
ProfileCall lproc_call[] |
|
1 |
|
1 |
lpro_model.BuildModel() |
|
1 |
lpro_model.<span>RoutineList</span>(iprort_list) |
|
1 |
... |