class VsyncMonitor
Defined at line 27 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.h
Maintains statistics about Vsync timing, refresh frequency, jitter, and stalls.
Frequency and jitter statistics are computed from the time interval between
consecutive Vsync events originating from the same display. If no display mode
has been committed to the display engine yet, only the Vsync frequency is
recorded in the histogram and jitter is omitted.
Public Methods
void VsyncMonitor (const VsyncMonitor & )
Defined at line 33 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.h
void VsyncMonitor (VsyncMonitor && )
Defined at line 34 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.h
VsyncMonitor & operator= (const VsyncMonitor & )
Defined at line 35 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.h
VsyncMonitor & operator= (VsyncMonitor && )
Defined at line 36 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.h
void VsyncMonitor (inspect::Node inspect_root, async_dispatcher_t * dispatcher)
`dispatcher` must be non-null and must outlive the `VsyncMonitor`
instance.
Defined at line 55 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.cc
void ~VsyncMonitor ()
Defined at line 97 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.cc
zx::result<> Initialize ()
Initialization code not suitable for the constructor.
Defined at line 99 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.cc
void Deinitialize ()
Defined at line 109 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.cc
void OnVsync (display::DisplayIddisplay_id,zx::time_monotonicvsync_timestamp_mono,zx::time_bootvsync_timestamp_boot_aproximate,display::DriverConfigStampvsync_config_stamp,std::optional<zx::duration>expected_vsync_interval)
Called when a display engine driver sends a Vsync event.
`expected_vsync_interval` is nullopt if no display mode has been committed
to the engine yet (for example, when the display was initialized by the
bootloader before the display coordinator started).
Defined at line 143 of file ../../src/graphics/display/drivers/coordinator/vsync-monitor.cc