OpenCoverage

qqmlabstractprofileradapter_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmlabstractprofileradapter_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4static_assert(bool(1 == 1), "Required feature " "qml_debug" " for file " __FILE__ " not available.");-
5-
6class QQmlProfilerService;-
7class __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-
18public:-
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:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
120
23 ~QQmlAbstractProfilerAdapter() override {}-
24 void setService(QQmlProfilerService *new_service) { service = new_service; }
executed 120 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
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:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
96
35 void startWaiting() { waiting = true; }
executed 96 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
96
36-
37 bool isRunning() const { return
executed 339 times by 3 tests: return featuresEnabled != 0;
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
featuresEnabled != 0;
executed 339 times by 3 tests: return featuresEnabled != 0;
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
}
339
38 quint64 features() const { return
never executed: return featuresEnabled;
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:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
120
41-
42public :-
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-
52protected:-
53 QQmlProfilerService *service;-
54-
55private:-
56 bool waiting;-
57 quint64 featuresEnabled;-
58};-
59-
60class __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 {};-
71public:-
72 virtual QQmlAbstractProfilerAdapter *create(const QString &key) = 0;-
73};-
74-
75-
76-
77-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0