Skip to content

MemoryProbe

Collects free physical and virtual memory as FreeMemory on a regular basis as specified by the IntervalSamplingConfiguration.interval.

Only available on Android (it seems).

Inheritance

Constructors

MemoryProbe

MemoryProbe()

Methods

getMeasurement

Future<Measurement?> getMeasurement()
override

Collects the Measurement. Implemented by subclasses.

Can return null if no data is available. Can return an Error measurement if an error occurs.

onInitialize

bool onInitialize()
override

Called by initialize. Returns true if successfully initialized.

If false, the executor stays in ExecutorState.Created. This is a synchronous method and must be light-weight.