Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmlabstractprofileradapter_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | static_assert(bool(1 == 1), "Required feature " "qml_debug" " for file " __FILE__ " not available."); | - |
5 | - | |
6 | class QQmlProfilerService; | - |
7 | class __attribute__((visibility("default"))) QQmlAbstractProfilerAdapter : public QObject, public QQmlProfilerDefinitions { | - |
8 | public: | - |
9 | #pragma GCC diagnostic push | - |
10 | - | |
11 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
12 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
13 | #pragma GCC diagnostic ignored "-Wattributes" | - |
14 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
15 | #pragma GCC diagnostic pop | - |
16 | struct QPrivateSignal {}; | - |
17 | - | |
18 | public: | - |
19 | static const int s_numMessagesPerBatch = 1000; | - |
20 | - | |
21 | QQmlAbstractProfilerAdapter(QObject *parent = nullptr) : | - |
22 | QObject(parent), service(nullptr), waiting(true), featuresEnabled(0) {} executed 120 times by 3 tests: end of block Executed by:
| 120 |
23 | ~QQmlAbstractProfilerAdapter() override {} | - |
24 | void setService(QQmlProfilerService *new_service) { service = new_service; } executed 120 times by 3 tests: end of block Executed by:
| 120 |
25 | - | |
26 | virtual qint64 sendMessages(qint64 until, QList<QByteArray> &messages) = 0; | - |
27 | - | |
28 | void startProfiling(quint64 features); | - |
29 | - | |
30 | void stopProfiling(); | - |
31 | - | |
32 | void reportData() { dataRequested(); } never executed: end of block | 0 |
33 | - | |
34 | void stopWaiting() { waiting = false; } executed 96 times by 3 tests: end of block Executed by:
| 96 |
35 | void startWaiting() { waiting = true; } executed 96 times by 3 tests: end of block Executed by:
| 96 |
36 | - | |
37 | bool isRunning() const { return executed 339 times by 3 tests: featuresEnabled != 0;return featuresEnabled != 0; Executed by:
executed 339 times by 3 tests: }return featuresEnabled != 0; Executed by:
| 339 |
38 | quint64 features() const { return never executed: featuresEnabled;return featuresEnabled; never executed: }return featuresEnabled; | 0 |
39 | - | |
40 | void synchronize(const QElapsedTimer &t) { referenceTimeKnown(t); } executed 120 times by 3 tests: end of block Executed by:
| 120 |
41 | - | |
42 | public : | - |
43 | void profilingEnabled(quint64 features); | - |
44 | void profilingEnabledWhileWaiting(quint64 features); | - |
45 | - | |
46 | void profilingDisabled(); | - |
47 | void profilingDisabledWhileWaiting(); | - |
48 | - | |
49 | void dataRequested(); | - |
50 | void referenceTimeKnown(const QElapsedTimer &timer); | - |
51 | - | |
52 | protected: | - |
53 | QQmlProfilerService *service; | - |
54 | - | |
55 | private: | - |
56 | bool waiting; | - |
57 | quint64 featuresEnabled; | - |
58 | }; | - |
59 | - | |
60 | class __attribute__((visibility("default"))) QQmlAbstractProfilerAdapterFactory : public QObject | - |
61 | { | - |
62 | public: | - |
63 | #pragma GCC diagnostic push | - |
64 | - | |
65 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
66 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
67 | #pragma GCC diagnostic ignored "-Wattributes" | - |
68 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
69 | #pragma GCC diagnostic pop | - |
70 | struct QPrivateSignal {}; | - |
71 | public: | - |
72 | virtual QQmlAbstractProfilerAdapter *create(const QString &key) = 0; | - |
73 | }; | - |
74 | - | |
75 | - | |
76 | - | |
77 | - | |
Switch to Source code | Preprocessed file |