Partager via


IActiveScriptProfilerCallback3::SetWebWorkerId Method

Notifies the profiler about the worker ID to use for this profiling session. If the function is not executing in the context of the page, then this method is not invoked. The value of webWorkerId increments by 1 for every worker, starting at 1. The ID values are not intended to be stable beyond a session, and correspond only to the order in which the workers were created.

Syntax

HRESULT SetWebWorkerId([in] DWORD webWorkerId);  

Parameters

webWorkerId
The web worker ID.

Return Value

The return value of this method is ignored by the scripting engine.