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

QmlProfiler: Don't re-estimate profiling time when not profiling



Change-Id: I2485aff4f1317a0bf194455969757da497c7e404
Task-number: QTCREATORBUG-14024
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@theqtcompany.com>
parent ad484b1c
......@@ -264,13 +264,14 @@ void QmlProfilerStateWidget::profilerStateChanged()
if (d->m_profilerState->currentState() == QmlProfilerStateManager::AppStarting)
d->appKilled = false;
d->isRecording = d->m_profilerState->serverRecording();
if (d->isRecording)
if (d->m_profilerState->serverRecording()) {
d->profilingTimer.start();
else {
d->isRecording = true;
} else if (d->isRecording) {
// estimated time in ns
d->estimatedProfilingTime = d->profilingTimer.elapsed() * 1e6;
emit newTimeEstimation(d->estimatedProfilingTime);
d->isRecording = false;
}
updateDisplay();
}
......
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