Share via


IActiveScriptProfilerControl::StopProfiling

Stops profiling on the scripting engine. This method calls IActiveScriptProfilerCallback::Shutdown on the profiler object and then releases it.

Syntax

HRESULT StopProfiling(  
    [in] HRESULT hrShutdownReason);  

Parameters

hrShutdownReason
[in] The HRESULT to be passed as a parameter to the IActiveScriptProfilerCallback::Shutdown method of the profiler object.

Return Value

Returns an HRESULT. Possible values are as follows:

Return Value Meaning
S_OK The method succeeded.
ACTIVPROF_E_PROFILER_ABSENT Profiling is not enabled.

See also

IActiveScriptProfilerControl Interface