summaryrefslogtreecommitdiffstats
path: root/src/corelib/tracing/qctfplugin.cpp
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2023-03-09 11:21:13 +0200
committerAntti Määttä <antti.maatta@qt.io>2023-03-21 10:06:32 +0200
commitaed3de39125896ec8a09405b7bd5b53a1406f7b9 (patch)
treef10f6cfeff5e8cbe955164f42d482e051c14b450 /src/corelib/tracing/qctfplugin.cpp
parent643b6e5b291669c0decda1ed827ec2a98cfc6e29 (diff)
Move CTF tracing plugin to plugins directory
A coming change to support streaming requires networking so having it in corelib is dubious. Pick-to: 6.5 Change-Id: Idc25abe23b5ed07823d749294796c9f318ef1744 Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Diffstat (limited to 'src/corelib/tracing/qctfplugin.cpp')
-rw-r--r--src/corelib/tracing/qctfplugin.cpp58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/corelib/tracing/qctfplugin.cpp b/src/corelib/tracing/qctfplugin.cpp
deleted file mode 100644
index db052fa6e0c..00000000000
--- a/src/corelib/tracing/qctfplugin.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright (C) 2022 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
-
-#define BUILD_LIBRARY
-#include <qstring.h>
-#include "qctfplugin_p.h"
-#include "qctflib_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QCtfTracePlugin : public QObject, public QCtfLib
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QCtfLib" FILE "trace.json")
- Q_INTERFACES(QCtfLib)
-
-public:
- QCtfTracePlugin()
- {
-
- }
- ~QCtfTracePlugin()
- {
- m_cleanup = true;
- QCtfLibImpl::cleanup();
- }
-
- bool tracepointEnabled(const QCtfTracePointEvent &point) override
- {
- if (m_cleanup)
- return false;
- return QCtfLibImpl::instance()->tracepointEnabled(point);
- }
- void doTracepoint(const QCtfTracePointEvent &point, const QByteArray &arr) override
- {
- if (m_cleanup)
- return;
- QCtfLibImpl::instance()->doTracepoint(point, arr);
- }
- bool sessionEnabled() override
- {
- if (m_cleanup)
- return false;
- return QCtfLibImpl::instance()->sessionEnabled();
- }
- QCtfTracePointPrivate *initializeTracepoint(const QCtfTracePointEvent &point) override
- {
- if (m_cleanup)
- return nullptr;
- return QCtfLibImpl::instance()->initializeTracepoint(point);
- }
-private:
- bool m_cleanup = false;
-};
-
-#include "qctfplugin.moc"
-
-QT_END_NAMESPACE