40 : vsync_trace_recorder_(manager->GetNamedTraceRecorder(
42 last_vsync_timestamp_(0) {
43 DCHECK(vsync_trace_recorder_);
48 if (timestamp < last_vsync_timestamp_) {
50 <<
"Last: " << last_vsync_timestamp_ <<
", "
51 <<
"current: " << timestamp;
56 timestamp, event_name.c_str(),
nullptr);
57 last_vsync_timestamp_ = timestamp;
#define ION_DECLARE_SAFE_STATIC_POINTER(type, variable)
Declare a static non-array pointer and calls a default constructor.
CallTraceManager * GetCallTraceManager()
Get the global, static instance of CallTraceManager.
void CreateTimeStampAtTime(uint32 timestamp, const char *name, const char *value)
Same as CreateTimeStamp, but with specified timestamp.
std::string ValueToString(const T &val)
ValueToString.
#define LOG_ONCE(severity)
Logs the streamed message once per process run with a severity of severity.
static VSyncProfiler * Get()
Gets the VSyncProfiler singleton instance.
Copyright 2016 Google Inc.
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.