9QQmlProfiler::QQmlProfiler() : featuresEnabled(0)
11 static int metatype = qRegisterMetaType<QVector<QQmlProfilerData> >();
12 static int metatype2 = qRegisterMetaType<QQmlProfiler::LocationHash> ();
18void QQmlProfiler::startProfiling(quint64 features)
20 featuresEnabled = features;
23void QQmlProfiler::stopProfiling()
25 featuresEnabled =
false;
30void QQmlProfiler::reportData()
32 LocationHash resolved;
33 resolved.reserve(m_locations.size());
34 for (
auto it = m_locations.begin(), end = m_locations.end(); it != end; ++it) {
36 resolved.insert(it.key(), it.value());
41 QVector<QQmlProfilerData> data;
43 emit dataReady(data, resolved);
48#include "moc_qqmlprofiler_p.cpp"