Destroys the current performance analysis or trace tree model.
Profiling and TraceTree objects
instancename.DestroyModel ( )
Argument |
Description |
---|---|
instancename |
Instance name of the Profiling or TraceTree object |
ErrorReturn. Returns one of the following values:
Success!—The function succeeded
ModelNotExistsError!—The function failed because no model exists
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.
This example destroys the performance analysis model previously created using the BuildModel function:
lpro_model.DestroyModel()
DESTROY lpro_model