DestroyModel
PowerScript function
Description
Destroys the current performance analysis or trace tree
model.
Applies to
Profiling and TraceTree objects
Syntax
|
1 |
instancename.DestroyModel ( ) |
|
Argument |
Description |
|---|---|
|
instancename |
Instance name of the Profiling or TraceTree |
Return value
ErrorReturn. Returns one of the following values:
-
Success! — The function succeeded
-
ModelNotExistsError! — The function failed because no model
exists
Usage
When you are finished with the performance analysis or trace tree
model you created using the BuildModel function, you must call
DestroyModel to destroy the model as well as all the objects associated
with that model. The memory allocated to a model will not be released
until the object is destroyed.
Examples
This example destroys the performance analysis model previously
created using the BuildModel function:
|
1 2 |
lpro_model.DestroyModel() DESTROY lpro_model |
See also