aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlprofiler/qmlprofilerclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmlprofiler/qmlprofilerclient.cpp')
-rw-r--r--tools/qmlprofiler/qmlprofilerclient.cpp48
1 files changed, 0 insertions, 48 deletions
diff --git a/tools/qmlprofiler/qmlprofilerclient.cpp b/tools/qmlprofiler/qmlprofilerclient.cpp
index 72e11eadec..ff723381bc 100644
--- a/tools/qmlprofiler/qmlprofilerclient.cpp
+++ b/tools/qmlprofiler/qmlprofilerclient.cpp
@@ -296,51 +296,3 @@ void QmlProfilerClient::messageReceived(const QByteArray &data)
}
}
}
-
-V8ProfilerClient::V8ProfilerClient(QQmlDebugConnection *client)
- : ProfilerClient(QStringLiteral("V8Profiler"), client)
-{
-}
-
-V8ProfilerClient::~V8ProfilerClient()
-{
-}
-
-void V8ProfilerClient::sendRecordingStatus(bool record)
-{
- QByteArray ba;
- QDataStream stream(&ba, QIODevice::WriteOnly);
- QByteArray cmd("V8PROFILER");
- QByteArray option(record ? "start" : "stop");
- QByteArray title("");
-
- stream << cmd << option << title;
- sendMessage(ba);
-}
-
-void V8ProfilerClient::messageReceived(const QByteArray &data)
-{
- QByteArray rwData = data;
- QDataStream stream(&rwData, QIODevice::ReadOnly);
-
- int messageType;
-
- stream >> messageType;
-
- if (messageType == V8Complete) {
- emit complete();
- } else if (messageType == V8Entry) {
- QString filename;
- QString function;
- int lineNumber;
- double totalTime;
- double selfTime;
- int depth;
-
- stream >> filename >> function >> lineNumber >> totalTime >>
- selfTime >> depth;
- emit this->range(depth, function, filename, lineNumber, totalTime,
- selfTime);
- }
-}
-