Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

GetChildrenList – PB Docs 2019 – PowerBuilder Library

GetChildrenList – PB Docs 2019

GetChildrenList

PowerScript function

Description

Provides a list of the children of a routine included in a trace
tree model.

Applies to

TraceTreeObject, TraceTreeRoutine, and TraceTreeGarbageCollect
objects

Syntax

Argument

Description

instancename

Instance name of the TraceTreeObject, TraceTreeRoutine, or
TraceTreeGarbageCollect object.

list

An unbounded array variable of datatype TraceTreeNode in
which GetChildrenList stores a TraceTreeNode object for each
child of a routine. This argument is passed by reference.

Return value

ErrorReturn. Returns the following values:

  • Success! — The function succeeded

  • ModelNotExistsError! — The model does not exist

Usage

You use the GetChildrenList function to extract a list of the
children of a routine (the classes and routines it calls) included in a
trace tree model. Each child listed is defined as a TraceTreeNode object
and provides the type of activity represented by that child.

You must have previously created the trace tree model from a trace
file using the BuildModel function.

When the GetChildrenList function is called for
TraceTreeGarbageCollect objects, each child listed usually represents the
destruction of a garbage collected object.

Examples

This example checks the activity type of a node included in the
trace tree model. If the activity type is an occurrence of a routine, it
determines the name of the class that contains the routine and provides a
list of the classes and routines called by that routine:

See also

BuildModel


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