RoutineList – PB Docs 2022

RoutineList

PowerScript function

Description

Provides a list of the routines included in a performance analysis
model.

Applies to

ProfileClass and Profiling objects

Syntax

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.

Return value

ErrorReturn. Returns one of the following values:

  • Success! — The function succeeded

  • ModelNotExistsError! — No model exists

Usage

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.

Examples

This example lists the routines included in each class found in a
performance analysis model:

See also

ClassList


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x