Don't create a QProcess object every second.

Creating a QProcess every second is very VERY expensive, making the QtCreator UI
experience pretty bad, the UI was not responsive when debugging or even when
running an Android application from QtCreator.

Thanks to Intel's VTUNE I could spot and fix the problem in minutes.

Change-Id: I6d3dc71db93e91d9846101a1877bab017df41aba
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
BogDan Vatra
2016-03-07 18:49:09 +02:00
parent 6884b377db
commit bf3ba0f577
2 changed files with 10 additions and 8 deletions

View File

@@ -92,6 +92,7 @@ private:
private:
QProcess m_adbLogcatProcess;
QProcess m_psProc;
QTimer m_checkPIDTimer;
bool m_wasStarted;
int m_tries;