JsStopProfiling Function

Stops profiling in the current context.

Syntax

STDAPI_(JsErrorCode) JsStopProfiling(
   _In_ HRESULT reason
);

Parameters

  • reason
    The reason for stopping profiling to pass to the profiler callback.

Return Value

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

Remarks

Will not return an error if profiling has not started.

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)