aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/debugger/qqmlprofilerservice.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-01-24 13:24:19 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-15 22:37:38 +0100
commit9424383e6d0ea1dd02dcf1070259e21550da692a (patch)
treef7a9b1372a0a97f997d6a237e3a89e009b07b30e /src/qml/debugger/qqmlprofilerservice.cpp
parentab6b6b7c7ab544d347d59b7eefad403837d94012 (diff)
Move QtQuick profiling to own profiler adapter
The QtQuick parts of the QML profiler service thus become a proper global profiler which can be independently enabled and disabled. Change-Id: Ifad03801cab2be66a264fc46fdebdae582fcc99b Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/qml/debugger/qqmlprofilerservice.cpp')
-rw-r--r--src/qml/debugger/qqmlprofilerservice.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/qml/debugger/qqmlprofilerservice.cpp b/src/qml/debugger/qqmlprofilerservice.cpp
index 56d6cf14c5..e4620a282a 100644
--- a/src/qml/debugger/qqmlprofilerservice.cpp
+++ b/src/qml/debugger/qqmlprofilerservice.cpp
@@ -134,22 +134,12 @@ void QQmlProfilerData::toByteArrays(QList<QByteArray> &messages) const
}
}
-void QQmlProfilerService::animationTimerCallback(qint64 delta)
-{
- Q_QML_PROFILE(animationFrame(delta));
-}
-
QQmlProfilerService::QQmlProfilerService()
: QQmlConfigurableDebugService(QStringLiteral("CanvasFrameRate"), 1)
{
m_timer.start();
QMutexLocker lock(configMutex());
- // TODO: This is problematic as the service could be enabled at a later point in time. In that
- // case we might miss the callback registration.
- if (state() == Enabled)
- QUnifiedTimer::instance()->registerProfilerCallback(&animationTimerCallback);
-
// If there is no debug server it doesn't matter as we'll never get enabled anyway.
if (QQmlDebugServer::instance() != 0)
moveToThread(QQmlDebugServer::instance()->thread());