JsStartProfiling Function

Starts profiling in the current context.


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


  • 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.


Requires an active script context.

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


Header: jsrt.h

See Also

Reference (JavaScript Runtime)