ClassList PowerScript function
Description
Provides a list of the classes included in a performance analysis
model.
Controls
Profiling object
Syntax
|
1 |
<span>instancename</span>.<span>ClassList</span> ( <span>list</span> ) |
|
Argument |
Description |
|---|---|
|
instancename |
Instance name of the Profiling object. |
|
list |
An unbounded array variable of datatype |
Return Values
ErrorReturn. Returns one of the following values:
-
Success! – The function
succeeded -
ModelNotExistsError! – The function failed
because no model exists
Usage
You use the ClassList function to extract
a list of the classes included in a performance analysis model.
You must have previously created the performance analysis model
from a trace file using the BuildModel function. Each
class listed is defined as a ProfileClass object and provides the
class name, its parent class and type, and a list of the routines
associated with that class. The classes are listed in no particular
order.
Examples
This example lists the classes included in the performance
analysis model:
|
1 |
ProfileClass lproclass_list[], lproclass_class |
|
1 |
Profiling lpro_model |
|
1 |
Long ll_limitclass, ll_indexclass |
|
1 |
|
1 |
lpro_model = CREATE Profiling |
|
1 |
lpro_model.BuildModel() |
|
1 |
|
1 |
lpro_model.<span>ClassList</span>(lproclass_list) |
|
1 |
ll_limitclass = UpperBound(lproclass_list) |
|
1 |
|
1 |
FOR ll_indexclass = 1 TO ll_limitclass |
|
1 |
lproclass_class = lproclass_list[ll_indexclass] |
|
1 |
... |
|
1 |
NEXT |