forked from qt-creator/qt-creator
QmlProfiler: reportStopped() only when entering Idle
Change-Id: I291ff6506a16e294165109a89f2acf22d24d7928 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -133,10 +133,11 @@ void QmlProfilerRunner::stop()
|
|||||||
switch (d->m_profilerState->currentState()) {
|
switch (d->m_profilerState->currentState()) {
|
||||||
case QmlProfilerStateManager::AppRunning:
|
case QmlProfilerStateManager::AppRunning:
|
||||||
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppStopRequested);
|
d->m_profilerState->setCurrentState(QmlProfilerStateManager::AppStopRequested);
|
||||||
return; // Don't reportStopped() here. We are still waiting for data.
|
break;
|
||||||
case QmlProfilerStateManager::AppStopRequested:
|
case QmlProfilerStateManager::AppStopRequested:
|
||||||
// Pressed "stop" a second time. Kill the application without collecting data
|
// Pressed "stop" a second time. Kill the application without collecting data
|
||||||
d->m_profilerState->setCurrentState(QmlProfilerStateManager::Idle);
|
d->m_profilerState->setCurrentState(QmlProfilerStateManager::Idle);
|
||||||
|
reportStopped();
|
||||||
break;
|
break;
|
||||||
case QmlProfilerStateManager::Idle:
|
case QmlProfilerStateManager::Idle:
|
||||||
case QmlProfilerStateManager::AppDying:
|
case QmlProfilerStateManager::AppDying:
|
||||||
@@ -149,7 +150,6 @@ void QmlProfilerRunner::stop()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
reportStopped();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void QmlProfilerRunner::notifyRemoteFinished()
|
void QmlProfilerRunner::notifyRemoteFinished()
|
||||||
|
|||||||
Reference in New Issue
Block a user