OpenCoverage

qqmlprofilereventtype_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmlprofilereventtype_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3class QQmlProfilerEventType {-
4public:-
5 QQmlProfilerEventType(Message message = MaximumMessage, RangeType rangeType = MaximumRangeType,-
6 int detailType = -1,-
7 const QQmlProfilerEventLocation &location = QQmlProfilerEventLocation(),-
8 const QString &data = QString(), const QString displayName = QString()) :-
9 m_displayName(displayName), m_data(data), m_location(location), m_message(message),-
10 m_rangeType(rangeType), m_detailType(detailType)-
11 {}
executed 1636 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
1636
12-
13 void setDisplayName(const QString &displayName) { m_displayName = displayName; }
never executed: end of block
0
14 void setData(const QString &data) { m_data = data; }
executed 64 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
64
15 void setLocation(const QQmlProfilerEventLocation &location) { m_location = location; }
executed 86 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
86
16-
17 ProfileFeature feature() const;-
18 QString displayName() const { return
never executed: return m_displayName;
m_displayName;
never executed: return m_displayName;
}
0
19 QString data() const { return
executed 68 times by 1 test: return m_data;
Executed by:
  • tst_qqmlprofilerservice
m_data;
executed 68 times by 1 test: return m_data;
Executed by:
  • tst_qqmlprofilerservice
}
68
20 QQmlProfilerEventLocation location() const { return
executed 1900 times by 1 test: return m_location;
Executed by:
  • tst_qqmlprofilerservice
m_location;
executed 1900 times by 1 test: return m_location;
Executed by:
  • tst_qqmlprofilerservice
}
1900
21 Message message() const { return
executed 7783 times by 1 test: return m_message;
Executed by:
  • tst_qqmlprofilerservice
m_message;
executed 7783 times by 1 test: return m_message;
Executed by:
  • tst_qqmlprofilerservice
}
7783
22 RangeType rangeType() const { return
executed 3750 times by 1 test: return m_rangeType;
Executed by:
  • tst_qqmlprofilerservice
m_rangeType;
executed 3750 times by 1 test: return m_rangeType;
Executed by:
  • tst_qqmlprofilerservice
}
3750
23 int detailType() const { return
executed 2770 times by 1 test: return m_detailType;
Executed by:
  • tst_qqmlprofilerservice
m_detailType;
executed 2770 times by 1 test: return m_detailType;
Executed by:
  • tst_qqmlprofilerservice
}
2770
24-
25private:-
26 friend QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventType &type);-
27 friend QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventType &type);-
28-
29 QString m_displayName;-
30 QString m_data;-
31 QQmlProfilerEventLocation m_location;-
32 Message m_message;-
33 RangeType m_rangeType;-
34 int m_detailType;-
35};-
36-
37QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventType &type);-
38QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventType &type);-
39-
40inline uint qHash(const QQmlProfilerEventType &type)-
41{-
42 return
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
Executed by:
  • tst_qqmlprofilerservice
qHash(type.location())
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
Executed by:
  • tst_qqmlprofilerservice
692
43 ^ (((type.message() << 12) & 0xf000)
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
Executed by:
  • tst_qqmlprofilerservice
692
44 | ((type.rangeType() << 24) & 0xf000000)
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
Executed by:
  • tst_qqmlprofilerservice
692
45 | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
executed 692 times by 1 test: return qHash(type.location()) ^ (((type.message() << 12) & 0xf000) | ((type.rangeType() << 24) & 0xf000000) | ((static_cast<uint>(type.detailType()) << 28) & 0xf0000000));
Executed by:
  • tst_qqmlprofilerservice
692
46}-
47-
48inline bool operator==(const QQmlProfilerEventType &type1, const QQmlProfilerEventType &type2)-
49{-
50 return
executed 462 times by 1 test: return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location();
Executed by:
  • tst_qqmlprofilerservice
type1.message() == type2.message() && type1.rangeType() == type2.rangeType()
executed 462 times by 1 test: return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location();
Executed by:
  • tst_qqmlprofilerservice
462
51 && type1.detailType() == type2.detailType() && type1.location() == type2.location();
executed 462 times by 1 test: return type1.message() == type2.message() && type1.rangeType() == type2.rangeType() && type1.detailType() == type2.detailType() && type1.location() == type2.location();
Executed by:
  • tst_qqmlprofilerservice
462
52}-
53-
54inline bool operator!=(const QQmlProfilerEventType &type1, const QQmlProfilerEventType &type2)-
55{-
56 return
never executed: return !(type1 == type2);
!(type1 == type2);
never executed: return !(type1 == type2);
0
57}-
58-
59template<> class QTypeInfo<QQmlProfilerEventType > { public: enum { isSpecialized = true, isComplex = (((Q_MOVABLE_TYPE) & Q_PRIMITIVE_TYPE) == 0), isStatic = (((Q_MOVABLE_TYPE) & (Q_MOVABLE_TYPE | Q_PRIMITIVE_TYPE)) == 0), isRelocatable = !isStatic || ((Q_MOVABLE_TYPE) & Q_RELOCATABLE_TYPE), isLarge = (sizeof(QQmlProfilerEventType)>sizeof(void*)), isPointer = false, isIntegral = std::is_integral< QQmlProfilerEventType >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QQmlProfilerEventType) }; static inline const char *name() { return "QQmlProfilerEventType"; } };-
60-
61-
62-
63 template <> struct QMetaTypeId< QQmlProfilerEventType > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlProfilerEventType >("QQmlProfilerEventType", reinterpret_cast< QQmlProfilerEventType *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0