aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/debugger/qv8profilerservice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/debugger/qv8profilerservice.cpp')
-rw-r--r--src/declarative/debugger/qv8profilerservice.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/declarative/debugger/qv8profilerservice.cpp b/src/declarative/debugger/qv8profilerservice.cpp
index c611366974..48d2d1365d 100644
--- a/src/declarative/debugger/qv8profilerservice.cpp
+++ b/src/declarative/debugger/qv8profilerservice.cpp
@@ -152,8 +152,7 @@ void QV8ProfilerService::messageReceived(const QByteArray &message)
startProfiling(QString::fromUtf8(title));
} else if (option == "stop") {
stopProfiling(QString::fromUtf8(title));
- // Send messages to client
- d->sendMessages();
+ sendProfilingData();
}
d->initialized = true;
}
@@ -191,6 +190,13 @@ void QV8ProfilerService::stopProfiling(const QString &title)
}
}
+void QV8ProfilerService::sendProfilingData()
+{
+ Q_D(QV8ProfilerService);
+ // Send messages to client
+ d->sendMessages();
+}
+
void QV8ProfilerServicePrivate::printProfileTree(const v8::CpuProfileNode *node, int level)
{
for (int index = 0 ; index < node->GetChildrenCount() ; index++) {