forked from qt-creator/qt-creator
QmlProfiler: cleaning output when starting new trace
Reviewed-by: Kai Koehne
This commit is contained in:
@@ -298,6 +298,9 @@ void QmlProfilerTool::connectClient()
|
|||||||
if (QmlProfilerPlugin::debugOutput)
|
if (QmlProfilerPlugin::debugOutput)
|
||||||
qWarning("QmlProfiler: Failed to connect: %s", qPrintable(d->m_client->errorString()));
|
qWarning("QmlProfiler: Failed to connect: %s", qPrintable(d->m_client->errorString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (d->m_traceWindow->isRecording())
|
||||||
|
clearDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerTool::disconnectClient()
|
void QmlProfilerTool::disconnectClient()
|
||||||
@@ -309,8 +312,10 @@ void QmlProfilerTool::disconnectClient()
|
|||||||
void QmlProfilerTool::startRecording()
|
void QmlProfilerTool::startRecording()
|
||||||
{
|
{
|
||||||
d->m_traceWindow->setRecordAtStart(true);
|
d->m_traceWindow->setRecordAtStart(true);
|
||||||
if (d->m_client->isConnected())
|
if (d->m_client->isConnected()) {
|
||||||
|
clearDisplay();
|
||||||
d->m_traceWindow->setRecording(true);
|
d->m_traceWindow->setRecording(true);
|
||||||
|
}
|
||||||
emit fetchingData(true);
|
emit fetchingData(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user