Provides a list of the routines included in a performance analysis model.
ProfileClass and Profiling objects
instancename.RoutineList ( list )
Argument |
Description |
---|---|
instancename |
Instance name of the ProfileClass or Profiling object. |
list |
An unbounded array variable of datatype ProfileRoutine in which RoutineList stores a ProfileRoutine object for each routine that exists in the model within a class. This argument is passed by reference. |
ErrorReturn. Returns one of the following values:
Success! – The function succeeded
ModelNotExistsError! – No model exists
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.
This example lists the routines included in each class found in a performance analysis model:
Long ll_cnt
ProfileCall lproc_call[]
lpro_model.BuildModel()
lpro_model.RoutineList(iprort_list)
...