SystemRoutine

Description

Provides the routine node representing the system root in a performance analysis model.

Applies to

Profiling object

Syntax

instancename.SystemRoutine ( theroutine )

Argument

Description

instancename

Instance name of the Profiling object.

theroutine

A value of type ProfileRoutine containing the routine node representing the system root. This argument is passed by reference.


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:

Profiling lpro_model
ProfileRoutine lprort_routine
 
lpro_model.BuildModel()
lpro_model.SystemRoutine(lprort_routine)
...

See also

BuildModel