class Watcher

Defined at line 23 of file ../../src/developer/memory/metrics/watcher.h

Watches memory usage and reports back when memory reaches a new high.

Public Methods

void Watcher (zx::duration poll_frequency, uint64_t high_water_threshold, async_dispatcher_t * dispatcher, CaptureFn capture_cb, HighWaterFn high_water_cb)

Constructs a new Watcher which will check memory usage at the rate

specified by |poll_frequency|, using the |async_dispatcher|.

Each time usage increasess by at least |high_water_threshold| the

|high_water_cb| will be called.

|capture_cb| is used to access memory usage.

Defined at line 15 of file ../../src/developer/memory/metrics/watcher.cc

void ~Watcher ()

Defined at line 32 of file ../../src/developer/memory/metrics/watcher.h