class MemoryWatchdog

Defined at line 22 of file ../../zircon/kernel/object/include/object/memory_watchdog.h

Object is thread safe.

Public Methods

Thread * DebugGetWorkerThread ()

Debug method to retrieve any current worker thread. Only to be used for testing / debugging

purposes. It is up to the caller to know if this objects is alive or not.

Defined at line 43 of file ../../zircon/kernel/object/include/object/memory_watchdog.h

void Init (Executor * executor)

Init must be called before any other methods.

Defined at line 482 of file ../../zircon/kernel/object/memory_watchdog.cc

fbl::RefPtr<EventDispatcher> GetMemPressureEvent (uint32_t kind)

Defined at line 145 of file ../../zircon/kernel/object/memory_watchdog.cc

uint64_t DebugNumBytesTillPressureLevel (PressureLevel level)

Defined at line 445 of file ../../zircon/kernel/object/memory_watchdog.cc

void Dump ()

Defined at line 464 of file ../../zircon/kernel/object/memory_watchdog.cc

Enumerations

enum PressureLevel
Name Value
kOutOfMemory 0
kImminentOutOfMemory 1
kCritical 2
kWarning 3
kNormal 4
kNumLevels 5

Defined at line 24 of file ../../zircon/kernel/object/include/object/memory_watchdog.h