SystemRoutine
PowerScript function
Description
Provides the routine node representing the system root in a
performance analysis model.
Applies to
Profiling object
Syntax
1 |
instancename.SystemRoutine ( theroutine ) |
Argument |
Description |
---|---|
instancename |
Instance name of the Profiling object. |
theroutine |
A value of type ProfileRoutine containing the routine node |
Return value
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 2 3 4 5 6 |
Profiling lpro_model ProfileRoutine lprort_routine lpro_model.BuildModel() lpro_model.SystemRoutine(lprort_routine) ... |
See also