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>
This commit is contained in:
parent
643b6e5b29
commit
aed3de3912
@ -43,9 +43,6 @@ endif()
|
||||
qt_install_3rdparty_library_wrap_config_extra_file(BundledZLIB)
|
||||
|
||||
add_subdirectory(corelib)
|
||||
if (QT_FEATURE_ctf AND QT_FEATURE_library)
|
||||
add_subdirectory(corelib/tracing)
|
||||
endif()
|
||||
|
||||
# Needs to be after corelib, because some of them reference Core.
|
||||
add_subdirectory(3rdparty)
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <qfileinfo.h>
|
||||
#include <qdir.h>
|
||||
|
||||
#include "qctflib_p.h"
|
||||
#include "qctf_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
//
|
||||
|
||||
#include <qtcoreexports.h>
|
||||
#include <qobject.h>
|
||||
|
||||
QT_REQUIRE_CONFIG(library);
|
||||
|
||||
@ -220,6 +221,17 @@ inline QByteArray toByteArrayFromFlags(QFlags<T> value)
|
||||
|
||||
#endif
|
||||
|
||||
class Q_CORE_EXPORT QCtfLib : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
virtual ~QCtfLib() = default;
|
||||
virtual bool tracepointEnabled(const QCtfTracePointEvent &point) = 0;
|
||||
virtual void doTracepoint(const QCtfTracePointEvent &point, const QByteArray &arr) = 0;
|
||||
virtual bool sessionEnabled() = 0;
|
||||
virtual QCtfTracePointPrivate *initializeTracepoint(const QCtfTracePointEvent &point) = 0;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif
|
||||
|
@ -25,3 +25,6 @@ if (TARGET Qt::Network)
|
||||
add_subdirectory(networkinformation)
|
||||
add_subdirectory(tls)
|
||||
endif()
|
||||
if (QT_FEATURE_ctf AND QT_FEATURE_library)
|
||||
add_subdirectory(tracing)
|
||||
endif()
|
||||
|
@ -18,6 +18,6 @@ qt_internal_add_plugin(QCtfTracePlugin
|
||||
SOURCES
|
||||
qctflib_p.h qctflib.cpp metadata_template.txt qctfplugin.cpp qctfplugin_p.h
|
||||
LIBRARIES
|
||||
Qt6::Core
|
||||
Qt6::Core Qt6::CorePrivate
|
||||
)
|
||||
|
@ -16,7 +16,7 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include "qctf_p.h"
|
||||
#include <private/qctf_p.h>
|
||||
#include "qctfplugin_p.h"
|
||||
#include <qstring.h>
|
||||
#include <qmutex.h>
|
@ -8,7 +8,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCtfTracePlugin : public QObject, public QCtfLib
|
||||
class QCtfTracePlugin : public QCtfLib
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QCtfLib" FILE "trace.json")
|
@ -16,22 +16,12 @@
|
||||
//
|
||||
//
|
||||
|
||||
#include "qctf_p.h"
|
||||
#include <private/qctf_p.h>
|
||||
#include <qplugin.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCtfLib
|
||||
{
|
||||
public:
|
||||
virtual ~QCtfLib() = default;
|
||||
virtual bool tracepointEnabled(const QCtfTracePointEvent &point) = 0;
|
||||
virtual void doTracepoint(const QCtfTracePointEvent &point, const QByteArray &arr) = 0;
|
||||
virtual bool sessionEnabled() = 0;
|
||||
virtual QCtfTracePointPrivate *initializeTracepoint(const QCtfTracePointEvent &point) = 0;
|
||||
};
|
||||
|
||||
Q_DECLARE_INTERFACE(QCtfLib, "org.qt-project.Qt.QCtfLib");
|
||||
Q_DECLARE_INTERFACE(QCtfLib, "org.qt-project.Qt.QCtfLib")
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
Loading…
Reference in New Issue
Block a user