Using the BuildModel function to build a call graph model – PB Docs 2017

Using the BuildModel function to build a call graph
model

The call graph model that you create with the BuildModel
function contains all the routines in the trace file and can take a
long time to build. If you want to monitor the progress of the build
or you want to be able to interrupt it while the model is being
built, you can pass optional arguments to BuildModel.

BuildModel arguments

BuildModel takes three arguments: the name of an object of
type PowerObject, the name of a user event, and a long value
representing how often the user event should be triggered as a
percentage of the build completed.

The user event returns a boolean value and has two arguments:
the number of the current activity, and the total number of
activities in the trace file.

Destroying existing
models

Before you call BuildModel, you can call DestroyModel to clean
up any objects remaining from an existing model.

Example: building a call graph
model

In the following example, the user event argument to
BuildModel is called ue_progress and is triggered each time five
percent of the activities have been processed. The progress of the
build is shown in a window called w_progress that has a cancel
button.


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