Commit fb6bd13d authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Show a trace duration of 0 while data is being cleared



Task-number: QTCREATORBUG-11834
Change-Id: Ie93ee7ed79534e86feec5809ef8e91a74da380fa
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
Reviewed-by: default avatarKai Koehne <kai.koehne@digia.com>
parent 0c9a9348
......@@ -366,8 +366,8 @@ void QmlProfilerTool::updateTimeDisplay()
if (d->m_profilerState->serverRecording() &&
d->m_profilerState->currentState() == QmlProfilerStateManager::AppRunning) {
seconds = d->m_recordingElapsedTime.elapsed() / 1000.0;
} else if (d->m_profilerModelManager->state() != QmlProfilerDataState::Empty ) {
//seconds = d->m_profilerModelManager->traceDuration() / 1.0e9;
} else if (d->m_profilerModelManager->state() != QmlProfilerDataState::Empty &&
d->m_profilerModelManager->state() != QmlProfilerDataState::ClearingData) {
seconds = d->m_profilerModelManager->traceTime()->duration() / 1.0e9;
}
QString timeString = QString::number(seconds,'f',1);
......
Supports Markdown
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