class PressureNotifier

Defined at line 17 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.h

Public Methods

void PressureNotifier (const PressureNotifier & )

Defined at line 39 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.h

PressureNotifier & operator= (const PressureNotifier & )

Defined at line 40 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.h

void PressureNotifier (bool watch_for_changes, bool send_critical_pressure_crash_reports, fidl::Client<fuchsia_feedback::CrashReporter> crash_reporter, async_dispatcher_t * dispatcher)

|dispatcher| is the dispatcher associated with memory_pressure_signaler's main thread.

The fuchsia::memorypressure::Provider service which the |PressureNotifier| class implements runs

on this thread.

Defined at line 47 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.cc

void RegisterWatcher (RegisterWatcherRequest & request, RegisterWatcherCompleter::Sync & completer)

fuchsia::memorypressure::Provider interface

Defined at line 167 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.cc

void Notify ()

Notify watchers of a pressure level change.

Defined at line 58 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.cc

void DebugNotify (fuchsia_memorypressure::Level level)

Notify watchers with a simulated memory pressure |level|. For diagnostic use by MemoryDebugger.

Defined at line 99 of file ../../src/developer/memory/pressure_signaler/pressure_notifier.cc

Records

Friends

class PressureNotifierUnitTest