OpenCoverage

qqmlprofilereventtype.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qmldebug/qqmlprofilereventtype.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QDataStream &operator>>(QDataStream &stream, QQmlProfilerEventType &type)-
7{-
8 quint8 message;-
9 quint8 rangeType;-
10 stream >> type.m_displayName >> type.m_data >> type.m_location >> message >> rangeType-
11 >> type.m_detailType;-
12 type.m_message = static_cast<Message>(message);-
13 type.m_rangeType = static_cast<RangeType>(rangeType);-
14 return
never executed: return stream;
stream;
never executed: return stream;
0
15}-
16-
17QDataStream &operator<<(QDataStream &stream, const QQmlProfilerEventType &type)-
18{-
19 return
never executed: return stream << type.m_displayName << type.m_data << type.m_location << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType) << type.m_detailType;
stream << type.m_displayName << type.m_data << type.m_location
never executed: return stream << type.m_displayName << type.m_data << type.m_location << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType) << type.m_detailType;
0
20 << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType)
never executed: return stream << type.m_displayName << type.m_data << type.m_location << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType) << type.m_detailType;
0
21 << type.m_detailType;
never executed: return stream << type.m_displayName << type.m_data << type.m_location << static_cast<quint8>(type.m_message) << static_cast<quint8>(type.m_rangeType) << type.m_detailType;
0
22}-
23-
24ProfileFeature QQmlProfilerEventType::feature() const-
25{-
26 switch (m_message) {-
27 case
executed 103 times by 1 test: case Event:
Executed by:
  • tst_qqmlprofilerservice
Event:
executed 103 times by 1 test: case Event:
Executed by:
  • tst_qqmlprofilerservice
{
103
28 switch (m_detailType) {-
29 case
never executed: case Mouse:
Mouse:
never executed: case Mouse:
0
30 case
never executed: case Key:
Key:
never executed: case Key:
0
31 return
never executed: return ProfileInputEvents;
ProfileInputEvents;
never executed: return ProfileInputEvents;
0
32 case
executed 103 times by 1 test: case AnimationFrame:
Executed by:
  • tst_qqmlprofilerservice
AnimationFrame:
executed 103 times by 1 test: case AnimationFrame:
Executed by:
  • tst_qqmlprofilerservice
103
33 return
executed 103 times by 1 test: return ProfileAnimations;
Executed by:
  • tst_qqmlprofilerservice
ProfileAnimations;
executed 103 times by 1 test: return ProfileAnimations;
Executed by:
  • tst_qqmlprofilerservice
103
34 default
never executed: default:
:
never executed: default:
0
35 return
never executed: return MaximumProfileFeature;
MaximumProfileFeature;
never executed: return MaximumProfileFeature;
0
36 }-
37 }-
38 case
executed 8 times by 1 test: case PixmapCacheEvent:
Executed by:
  • tst_qqmlprofilerservice
PixmapCacheEvent:
executed 8 times by 1 test: case PixmapCacheEvent:
Executed by:
  • tst_qqmlprofilerservice
8
39 return
executed 8 times by 1 test: return ProfilePixmapCache;
Executed by:
  • tst_qqmlprofilerservice
ProfilePixmapCache;
executed 8 times by 1 test: return ProfilePixmapCache;
Executed by:
  • tst_qqmlprofilerservice
8
40 case
never executed: case SceneGraphFrame:
SceneGraphFrame:
never executed: case SceneGraphFrame:
0
41 return
never executed: return ProfileSceneGraph;
ProfileSceneGraph;
never executed: return ProfileSceneGraph;
0
42 case
executed 465 times by 1 test: case MemoryAllocation:
Executed by:
  • tst_qqmlprofilerservice
MemoryAllocation:
executed 465 times by 1 test: case MemoryAllocation:
Executed by:
  • tst_qqmlprofilerservice
465
43 return
executed 465 times by 1 test: return ProfileMemory;
Executed by:
  • tst_qqmlprofilerservice
ProfileMemory;
executed 465 times by 1 test: return ProfileMemory;
Executed by:
  • tst_qqmlprofilerservice
465
44 case
never executed: case DebugMessage:
DebugMessage:
never executed: case DebugMessage:
0
45 return
never executed: return ProfileDebugMessages;
ProfileDebugMessages;
never executed: return ProfileDebugMessages;
0
46 default
executed 742 times by 1 test: default:
Executed by:
  • tst_qqmlprofilerservice
:
executed 742 times by 1 test: default:
Executed by:
  • tst_qqmlprofilerservice
742
47 break;
executed 742 times by 1 test: break;
Executed by:
  • tst_qqmlprofilerservice
742
48 }-
49-
50 switch (m_rangeType) {-
51 case
never executed: case Painting:
Painting:
never executed: case Painting:
0
52 return
never executed: return ProfilePainting;
ProfilePainting;
never executed: return ProfilePainting;
0
53 case
executed 72 times by 1 test: case Compiling:
Executed by:
  • tst_qqmlprofilerservice
Compiling:
executed 72 times by 1 test: case Compiling:
Executed by:
  • tst_qqmlprofilerservice
72
54 return
executed 72 times by 1 test: return ProfileCompiling;
Executed by:
  • tst_qqmlprofilerservice
ProfileCompiling;
executed 72 times by 1 test: return ProfileCompiling;
Executed by:
  • tst_qqmlprofilerservice
72
55 case
executed 120 times by 1 test: case Creating:
Executed by:
  • tst_qqmlprofilerservice
Creating:
executed 120 times by 1 test: case Creating:
Executed by:
  • tst_qqmlprofilerservice
120
56 return
executed 120 times by 1 test: return ProfileCreating;
Executed by:
  • tst_qqmlprofilerservice
ProfileCreating;
executed 120 times by 1 test: return ProfileCreating;
Executed by:
  • tst_qqmlprofilerservice
120
57 case
executed 6 times by 1 test: case Binding:
Executed by:
  • tst_qqmlprofilerservice
Binding:
executed 6 times by 1 test: case Binding:
Executed by:
  • tst_qqmlprofilerservice
6
58 return
executed 6 times by 1 test: return ProfileBinding;
Executed by:
  • tst_qqmlprofilerservice
ProfileBinding;
executed 6 times by 1 test: return ProfileBinding;
Executed by:
  • tst_qqmlprofilerservice
6
59 case
executed 246 times by 1 test: case HandlingSignal:
Executed by:
  • tst_qqmlprofilerservice
HandlingSignal:
executed 246 times by 1 test: case HandlingSignal:
Executed by:
  • tst_qqmlprofilerservice
246
60 return
executed 246 times by 1 test: return ProfileHandlingSignal;
Executed by:
  • tst_qqmlprofilerservice
ProfileHandlingSignal;
executed 246 times by 1 test: return ProfileHandlingSignal;
Executed by:
  • tst_qqmlprofilerservice
246
61 case
executed 298 times by 1 test: case Javascript:
Executed by:
  • tst_qqmlprofilerservice
Javascript:
executed 298 times by 1 test: case Javascript:
Executed by:
  • tst_qqmlprofilerservice
298
62 return
executed 298 times by 1 test: return ProfileJavaScript;
Executed by:
  • tst_qqmlprofilerservice
ProfileJavaScript;
executed 298 times by 1 test: return ProfileJavaScript;
Executed by:
  • tst_qqmlprofilerservice
298
63 default
never executed: default:
:
never executed: default:
0
64 return
never executed: return MaximumProfileFeature;
MaximumProfileFeature;
never executed: return MaximumProfileFeature;
0
65 }-
66}-
67-
68-
69-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0