getFreeMemory static method

int getFreeMemory()

Return system free memory (this will include swap and kernel cache memory)

Returns

  • The free memory in bytes.

Throws

  • An exception if it fails.

Implementation

static int getFreeMemory() {
  final OperationResult resultString = staticMethod('Debug', 'getFreeMemory');
  return resultString['result'];
}