OpenCoverage

qqmlprofiler.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmlprofiler.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4QQmlProfiler::QQmlProfiler() : featuresEnabled(0)-
5{-
6 static int metatype = qRegisterMetaType<QVector<QQmlProfilerData> >();-
7 static int metatype2 = qRegisterMetaType<QQmlProfiler::LocationHash> ();-
8 (void)metatype;;-
9 (void)metatype2;;-
10 m_timer.start();-
11}
executed 64 times by 3 tests: end of block
Executed by:
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmlprofilerservice
64
12-
13void QQmlProfiler::startProfiling(quint64 features)-
14{-
15 featuresEnabled = features;-
16}
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
12
17-
18void QQmlProfiler::stopProfiling()-
19{-
20 featuresEnabled = false;-
21 reportData();-
22 m_locations.clear();-
23}
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
12
24-
25void QQmlProfiler::reportData()-
26{-
27 LocationHash resolved;-
28 resolved.reserve(m_locations.size());-
29 for (auto it = m_locations.begin(), end = m_locations.end(); it != end
it != endDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
FALSEevaluated 12 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
; ++it) {
12-22
30 if (!it->sent
!it->sentDescription
TRUEevaluated 22 times by 1 test
Evaluated by:
  • tst_qqmlprofilerservice
FALSEnever evaluated
) {
0-22
31 resolved.insert(it.key(), it.value());-
32 it->sent = true;-
33 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
22
34 }
executed 22 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
22
35-
36 QVector<QQmlProfilerData> data;-
37 data.swap(m_data);-
38 dataReady(data, resolved);-
39}
executed 12 times by 1 test: end of block
Executed by:
  • tst_qqmlprofilerservice
12
40-
41-
42-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0