forked from qt-creator/qt-creator
QmlProfiler: Enable on Windows
Replace use of sleep() call with a timer.
This commit is contained in:
@@ -52,9 +52,6 @@
|
||||
|
||||
#include <QProcess>
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
#include <unistd.h> // sleep
|
||||
#endif
|
||||
|
||||
using namespace QmlProfiler::Internal;
|
||||
|
||||
@@ -176,9 +173,6 @@ bool QmlProfilerEngine::QmlProfilerEnginePrivate::launchperfmonitor()
|
||||
connect(m_process,SIGNAL(finished(int)),q,SLOT(spontaneousStop()));
|
||||
m_process->start(m_params.debuggee, arguments);
|
||||
|
||||
// give the process time to start
|
||||
sleep(1);
|
||||
|
||||
if (!m_process->waitForStarted()) {
|
||||
if (QmlProfilerPlugin::debugOutput)
|
||||
qWarning("QmlProfiler: %s failed to start", qPrintable(m_params.displayName));
|
||||
|
||||
Reference in New Issue
Block a user