EnableProfiling Method

Applies to TestComplete 14.70, last modified on April 22, 2021

Description

Use the EnableProfiling method to enable or disable the profiling status. A call to this method has the same effect as checking or unchecking the Enable\Disable Profiling button in AQtime.

Declaration

AQtimeObj.EnableProfiling(Value)

AQtimeObj An expression, variable or parameter that specifies a reference to an AQtime object
Value [in]    Required    Boolean    
Result Boolean

Applies To

The method is applied to the following object:

Parameters

The method has the following parameter:

Value

If Value is True, the profiling will be enabled, if Value is False, the profiling will be disabled.

Result Value

True, if the profiling status has been changed successfully, false - otherwise.

Remarks

You can change the profiling status during the profiler run. For instance, you can do this to profile only the needed parts of the application and to reduce the number of profiling results.

Note that under certain conditions, for instance, when the Allocation profiler is working, the profiling status cannot be off. It is automatically enabled.

Example

To view an example, see the Integration With AQtime Using the AQtimeIntegration and AQtime Objects help topic.

See Also

Attach Method
StartProfiling Method
OpenProject Method

Highlight search results