SystemRoutine PowerScript function
Description
Provides the routine node representing the system root in
a performance analysis model.
Controls
Profiling object
Syntax
|
1 |
<span>instancename</span>.<span>SystemRoutine </span><span></span>( <span>theroutine</span> ) |
|
Argument |
Description |
|---|---|
|
instancename |
Instance name of the Profiling object. |
|
theroutine |
A value of type ProfileRoutine containing |
Return Values
ErrorReturn. Returns one of the following values:
-
Success! – The function
succeeded -
ModelNotExistsError! – The function failed
because no model exists
Usage
Use this function to extract the routine node representing
the system root in a performance analysis model. You must have previously
created the performance analysis model from a trace file using the BuildModel function. The
routine node 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.
Examples
This example provides the routine that represents
the system root in a performance analysis model:
|
1 |
Profiling lpro_model |
|
1 |
ProfileRoutine lprort_routine |
|
1 |
|
1 |
lpro_model.BuildModel() |
|
1 |
lpro_model.<span>SystemRoutine</span>(lprort_routine) |
|
1 |
... |