JsEnumerateHeap Function

Enumerates the heap of the current context.


STDAPI_(JsErrorCode) JsEnumerateHeap(
   _Out_ IActiveScriptProfilerHeapEnum **enumerator


  • enumerator
    The heap enumerator.

Return Value

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


While the heap is being enumerated, the current context cannot be removed, and all calls to modify the state of the context will fail until the heap enumerator is released.

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)