Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
Gets the current memory usage for a runtime.
Syntax
STDAPI_(JsErrorCode) JsGetRuntimeMemoryUsage(
_In_ JsRuntimeHandle runtime,
_Out_ size_t *memoryUsage
);
Parameters
runtime
The runtime whose memory usage is to be retrieved.
memoryUsage
The runtime's current memory usage, in bytes.
Return Value
The code JsNoError if the operation succeeded, a failure code otherwise.
Remarks
Memory usage can be always be retrieved, regardless of whether or not the runtime is active on another thread.
Requirements
Header: jsrt.h