IActiveScriptProfilerCallback::Initialize

Called to initialize the profiler object whenever profiling is started on a scripting engine.

Syntax

HRESULT Initialize(  
    [in] DWORD dwContext);  

Parameters

dwContext
[in] A 4-byte value that is passed to IActiveScriptProfilerControl::StartProfiling.

Return Value

Returns an HRESULT. Possible values are as follows:

Return Value Meaning
S_OK The method succeeded.

Remarks

If the method cannot initialize the profiler object, it should return a failure HRESULT to notify the scripting engine. In this case, the scripting engine should directly call IActiveScriptProfilerCallback::Shutdown, passing the HRESULT in the parameter, and then release the profiler object.

See also

IActiveScriptProfilerCallback Interface