class MemoryWatchdog
Defined at line 22 of file ../../zircon/kernel/object/include/object/memory_watchdog.h
Object is thread safe.
Delegates business logic to its Rust state stored in opaque_storage_.
Public Methods
void MemoryWatchdog (const MemoryWatchdog & )
Defined at line 36 of file ../../zircon/kernel/object/include/object/memory_watchdog.h
MemoryWatchdog & operator= (const MemoryWatchdog & )
Defined at line 37 of file ../../zircon/kernel/object/include/object/memory_watchdog.h
void MemoryWatchdog ()
Defined at line 40 of file ../../zircon/kernel/object/memory_watchdog.cc
void ~MemoryWatchdog ()
Defined at line 45 of file ../../zircon/kernel/object/memory_watchdog.cc
fbl::RefPtr<EventDispatcher> GetMemPressureEvent (uint32_t kind)
Defined at line 47 of file ../../zircon/kernel/object/memory_watchdog.cc
uint64_t DebugNumBytesTillPressureLevel (PressureLevel level)
Defined at line 55 of file ../../zircon/kernel/object/memory_watchdog.cc
void Dump ()
Defined at line 60 of file ../../zircon/kernel/object/memory_watchdog.cc
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 62 of file ../../zircon/kernel/object/memory_watchdog.cc
Enumerations
enum PressureLevel : uint8_t
| 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