Commit e8f4d7bc authored by Thiago Santini's avatar Thiago Santini

Report before resetting performance counters

parent ede37688
......@@ -64,6 +64,8 @@ void PerformanceMonitorWidget::update()
void PerformanceMonitorWidget::on_resetCounters_clicked()
{
gPerformanceMonitor.report();
qInfo() << "Resetting counters:";
for (auto c = gPerformanceMonitor.droppedFrameCount.begin(); c != gPerformanceMonitor.droppedFrameCount.end(); c++)
*c = 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment