getUsedMemory static method
Returns the memory currently used by the SDK engine.
Useful for monitoring memory consumption and detecting potential memory leaks during development.
Returns
- The memory used by the engine in bytes.
See also:
- getTotalMemory - For total system memory.
- getFreeMemory - For available system memory.
- getMaxUsedMemory - For peak memory usage.
Implementation
static int getUsedMemory() {
final OperationResult resultString = staticMethod('Debug', 'getUsedMemory');
return resultString['result'];
}