Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Starts profiling on the scripting engine. The scripting engine creates an instance of the profiler object by making a call to CoCreateInstance.
Syntax
HRESULT StartProfiling(
[in] REFCLSID clsidProfilerObject,
[in] DWORD dwEventMask,
[in] DWORD dwContext);
Parameters
clsidProfilerObject
[in] Class identifier (CLSID) of the profiler object to be created.
dwEventMask
[in] A 4-byte bitmask that specifies the types of events. The bits are defined in PROFILER_EVENT_MASK Enumeration.
dwContext
[in] A 4-byte value that is passed to the profiler object.
Return Value
Returns an HRESULT. Possible values are as follows:
Return Value | Meaning |
---|---|
S_OK |
The method succeeded. |
ACTIVPROF_E_PROFILER_PRESENT |
Profiling is already enabled. |