Xbasic

NodeServices::NodeMemory Class

Description

A NodeServices object that provides insight into Node.js memory usage and exposes a method to invoke garbage collection (when permitted).

These functions report on and manage the Node.js heap used by Alpha Anywhere’s Node integration. Garbage collection may not always run; CollectHeap returns .T. only if successful.

Methods

CollectHeap Method

Attempt to force a garbage collection cycle on the Node.js heap.

GetHeapSize Method

Return the total memory used by the Node.js heap (in bytes).

GetHeapStatistics Method

Check validity of token

See Also