diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-03-05 13:07:23 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-04-15 13:03:03 +0200 |
commit | e75f3e6bd2d30cc7237493b77d078831c63c9d3e (patch) | |
tree | 22f249ff9d278824e375dea84b8bc59d369fc488 /src/qml/debugger/qv8profilerservice.cpp | |
parent | 2cd8a90bd4d171ed2404822b6046455a94d4b6ed (diff) |
Fix compilation with v4vm's v8 compatibility headers
Some code is also commented out - it will disappear during the removal of the
v8 code later.
Change-Id: I46e07be47ed7d4bc12423a6348d674d2fca489f7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/debugger/qv8profilerservice.cpp')
-rw-r--r-- | src/qml/debugger/qv8profilerservice.cpp | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/src/qml/debugger/qv8profilerservice.cpp b/src/qml/debugger/qv8profilerservice.cpp index 7aa029fb6b..5d8873bada 100644 --- a/src/qml/debugger/qv8profilerservice.cpp +++ b/src/qml/debugger/qv8profilerservice.cpp @@ -52,6 +52,8 @@ QT_BEGIN_NAMESPACE Q_GLOBAL_STATIC(QV8ProfilerService, v8ProfilerInstance) +#if 0 +// ### FIXME: v4 class DebugServiceOutputStream : public v8::OutputStream { public: @@ -68,6 +70,7 @@ public: } QList<QByteArray> messages; }; +#endif // convert to a QByteArray that can be sent to the debug client QByteArray QV8ProfilerData::toByteArray() const @@ -90,10 +93,10 @@ public: { } - void takeSnapshot(v8::HeapSnapshot::Type); - - void printProfileTree(const v8::CpuProfileNode *node, int level = 0); - void sendMessages(); + // ### FIXME: v4 +// void takeSnapshot(v8::HeapSnapshot::Type); +// void printProfileTree(const v8::CpuProfileNode *node, int level = 0); +// void sendMessages(); QList<QV8ProfilerData> m_data; @@ -200,7 +203,8 @@ void QV8ProfilerService::startProfiling(const QString &title) v8::HandleScope handle_scope; v8::Handle<v8::String> v8title = v8::String::New(reinterpret_cast<const uint16_t*>(title.data()), title.size()); - v8::CpuProfiler::StartProfiling(v8title); + // ### FIXME: v4 +// v8::CpuProfiler::StartProfiling(v8title); d->m_ongoing.append(title); @@ -221,6 +225,8 @@ void QV8ProfilerService::stopProfiling(const QString &title) return; d->m_ongoing.removeOne(title); +#if 0 + // ### FIXME: v4 v8::HandleScope handle_scope; v8::Handle<v8::String> v8title = v8::String::New(reinterpret_cast<const uint16_t*>(title.data()), title.size()); const v8::CpuProfile *cpuProfile = v8::CpuProfiler::StopProfiling(v8title); @@ -236,26 +242,32 @@ void QV8ProfilerService::stopProfiling(const QString &title) sendMessage(data); } +#endif } void QV8ProfilerService::takeSnapshot() { Q_D(QV8ProfilerService); - d->takeSnapshot(v8::HeapSnapshot::kFull); + // ### FIXME: v4 +// d->takeSnapshot(v8::HeapSnapshot::kFull); } void QV8ProfilerService::deleteSnapshots() { - v8::HeapProfiler::DeleteAllSnapshots(); + // ### FIXME: v4 +// v8::HeapProfiler::DeleteAllSnapshots(); } void QV8ProfilerService::sendProfilingData() { Q_D(QV8ProfilerService); // Send messages to client - d->sendMessages(); + // ### FIXME: v4 +// d->sendMessages(); } +#if 0 +// ### FIXME: v4 void QV8ProfilerServicePrivate::printProfileTree(const v8::CpuProfileNode *node, int level) { for (int index = 0 ; index < node->GetChildrenCount() ; index++) { @@ -314,6 +326,6 @@ void QV8ProfilerServicePrivate::sendMessages() q->sendMessages(messages); } - +#endif QT_END_NAMESPACE |