Mir

Code review comment for lp:~kdub/mir/report-vsync

Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

263 + event_map[display_id]++;
264 + if (now > last_report + report_interval)
265 + {
266 + for(auto const& event : event_map)
267 + logger->log(ml::Severity::informational,
268 + std::to_string(event.second) + " vsync events on [" +
269 + std::to_string(event.first) + "] over " +
270 + std::to_string(duration_cast<milliseconds>(now - last_report).count()) + "ms",
271 + component());
272 + event_map.clear();
273 + last_report = now;
274 + }

Needs a mutex & lock

review: Needs Fixing

« Back to merge proposal