memUsage static method
Get system memory currently used
Implementation
static double memUsage() {
if (_libsysres == null) {
throw Exception(
'SystemResources are not initialized, call init() before using this method.',
);
}
final fn = _libsysres!
.lookup<ffi.NativeFunction<ffi.Float Function()>>('get_memory_usage')
.asFunction<GetMemoryUsage>();
return fn();
}