Share via


JsEnumerateHeap Function

Enumerates the heap of the current context.

Syntax

STDAPI_(JsErrorCode) JsEnumerateHeap(  
   _Out_ IActiveScriptProfilerHeapEnum **enumerator  
);  

Parameters

enumerator
The heap enumerator.

Return Value

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

Remarks

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.

Requirements

Header: jsrt.h

See Also

Reference (JavaScript Runtime)