JsStartProfiling Function

Starts profiling in the current context.

Syntax

STDAPI_(JsErrorCode) JsStartProfiling(  
   _In_ IActiveScriptProfilerCallback *callback,  
   _In_ PROFILER_EVENT_MASK eventMask,  
   _In_ unsigned long context  
);  

Parameters

callback
The profiling callback to use.

eventMask
The profiling events to callback with.

context
A context to pass to the profiling callback.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

Requires an active script context.

This API is supported in desktop apps, but is not supported in Store apps.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)