class StallObserver
Defined at line 83 of file ../../zircon/kernel/lib/stall/include/lib/stall.h
A stall observer that keeps a circular queue with the last N samples (where N corresponds to the
number of samples covering the requested time window).
Every time a new sample is pushed into it, it tests if the sum of all the stored samples is
greater than or equal to the given threshold value and then notifies its callback function
accordingly.
This class doesn't need to be thread safe because all its usages are protected by the
StallAggregator's observers_lock_.
Public Methods
void StallObserver (const StallObserver & )
Defined at line 91 of file ../../zircon/kernel/lib/stall/include/lib/stall.h
void StallObserver (StallObserver && )
Defined at line 92 of file ../../zircon/kernel/lib/stall/include/lib/stall.h
StallObserver & operator= (const StallObserver & )
Defined at line 93 of file ../../zircon/kernel/lib/stall/include/lib/stall.h
StallObserver & operator= (StallObserver && )
Defined at line 94 of file ../../zircon/kernel/lib/stall/include/lib/stall.h
zx::result<ktl::unique_ptr<StallObserver>> Create (zx_duration_mono_t threshold, zx_duration_mono_t window, EventReceiver * event_receiver)
Defined at line 120 of file ../../zircon/kernel/lib/stall/stall.cc
void PushSample (zx_duration_mono_t sample)
Defined at line 148 of file ../../zircon/kernel/lib/stall/stall.cc