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
« Back to merge proposal
263 + event_map[ display_ id]++; >log(ml: :Severity: :informational, string( event.second) + " vsync events on [" + string( event.first) + "] over " + string( duration_ cast<millisecon ds>(now - last_report) .count( )) + "ms",
264 + if (now > last_report + report_interval)
265 + {
266 + for(auto const& event : event_map)
267 + logger-
268 + std::to_
269 + std::to_
270 + std::to_
271 + component());
272 + event_map.clear();
273 + last_report = now;
274 + }
Needs a mutex & lock