Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/debugger/qqmlprofiler.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||
---|---|---|---|---|---|---|---|---|
1 | - | |||||||
2 | - | |||||||
3 | - | |||||||
4 | QQmlProfiler::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:
| 64 | ||||||
12 | - | |||||||
13 | void QQmlProfiler::startProfiling(quint64 features) | - | ||||||
14 | { | - | ||||||
15 | featuresEnabled = features; | - | ||||||
16 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||
17 | - | |||||||
18 | void QQmlProfiler::stopProfiling() | - | ||||||
19 | { | - | ||||||
20 | featuresEnabled = false; | - | ||||||
21 | reportData(); | - | ||||||
22 | m_locations.clear(); | - | ||||||
23 | } executed 12 times by 1 test: end of block Executed by:
| 12 | ||||||
24 | - | |||||||
25 | void 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
| 12-22 | ||||||
30 | if (!it->sent
| 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:
| 22 | ||||||
34 | } executed 22 times by 1 test: end of block Executed by:
| 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:
| 12 | ||||||
40 | - | |||||||
41 | - | |||||||
42 | - | |||||||
Switch to Source code | Preprocessed file |