QmlProfiler: Enable on Windows

Replace use of sleep() call with a timer.
This commit is contained in:
Kai Koehne
2011-04-12 17:24:56 +02:00
parent 233f65da57
commit e6620167fc
5 changed files with 37 additions and 15 deletions

View File

@@ -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));