From: Christiaan Janssen Date: Thu, 3 Nov 2011 11:42:35 +0000 (+0100) Subject: V8Profiler: fix block at start when profiling is disabled X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=92b420a041fe2dbdb792344ce8822a9690e398a7;p=konrad%2Fqtdeclarative.git V8Profiler: fix block at start when profiling is disabled The constructor would block the execution of the whole thread until profiling was enabled. This fix lets the user launch an application with profiling disabled. Change-Id: Ia57c19ce9200f7cc21ae2105db954cc2cb0df271 Reviewed-by: Kai Koehne --- diff --git a/src/declarative/debugger/qv8profilerservice.cpp b/src/declarative/debugger/qv8profilerservice.cpp index e74ccbc..c3c65a5 100644 --- a/src/declarative/debugger/qv8profilerservice.cpp +++ b/src/declarative/debugger/qv8profilerservice.cpp @@ -149,13 +149,13 @@ void QV8ProfilerService::messageReceived(const QByteArray &message) if (command == "V8PROFILER") { ds >> title; if (option == "start") { - d->initialized = true; startProfiling(QString::fromUtf8(title)); } else if (option == "stop") { stopProfiling(QString::fromUtf8(title)); // Send messages to client d->sendMessages(); } + d->initialized = true; } if (command == "V8SNAPSHOT") {