Define sendProfilingData() to send data to client.
Change-Id: I1f4778946af4552ef6323c78a538ab7149990b0a
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
startProfiling(QString::fromUtf8(title));
} else if (option == "stop") {
stopProfiling(QString::fromUtf8(title));
- // Send messages to client
- d->sendMessages();
+ sendProfilingData();
}
d->initialized = true;
}
}
}
+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++) {
void startProfiling(const QString &title);
void stopProfiling(const QString &title);
+ void sendProfilingData();
+
protected:
void messageReceived(const QByteArray &);