aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristiaan Janssen <christiaan.janssen@nokia.com>2011-11-03 12:42:35 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-03 16:01:53 +0100
commit92b420a041fe2dbdb792344ce8822a9690e398a7 (patch)
tree56360cf1e38ed0db9277174e22155871ce97cf3e /src
parent73bf1bae926daeec135bb9838782916142a840f0 (diff)
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 <kai.koehne@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/debugger/qv8profilerservice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/debugger/qv8profilerservice.cpp b/src/declarative/debugger/qv8profilerservice.cpp
index e74ccbcc8e..c3c65a5b86 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") {