18 #ifndef ION_PROFILE_VSYNCPROFILER_H_
19 #define ION_PROFILE_VSYNCPROFILER_H_
59 uint32 last_vsync_timestamp_;
66 #define ION_PROFILE_VSYNC(timestamp, vsync_number)
68 #define ION_PROFILE_VSYNC(timestamp, vsync_number) \
69 ::ion::profile::VSyncProfiler::Get()->RecordVSyncEvent( \
70 timestamp, vsync_number);
71 #endif // ION_PRODUCTION
73 #endif // ION_PROFILE_VSYNCPROFILER_H_
Class for recording frame events.
static VSyncProfiler * Get()
Gets the VSyncProfiler singleton instance.
Manages call trace recording for visualization in Web Tracing Framework (WTF) format.
Singleton class that augments CallTraceManager with VSync tracing support.
void RecordVSyncEvent(uint32 timestamp, uint32 vsync_number)
Records a VSync event at given timestamp.