10QQmlProfiler::QQmlProfiler() : featuresEnabled(0)
12 static int metatype = qRegisterMetaType<QList<QQmlProfilerData> >();
13 static int metatype2 = qRegisterMetaType<QQmlProfiler::LocationHash> ();
19void QQmlProfiler::startProfiling(quint64 features)
21 featuresEnabled = features;
24void QQmlProfiler::stopProfiling()
26 featuresEnabled =
false;
31void QQmlProfiler::reportData()
33 LocationHash resolved;
34 resolved.reserve(m_locations.size());
35 for (
auto it = m_locations.begin(), end = m_locations.end(); it != end; ++it) {
37 resolved.insert(it.key(), it.value());
42 QList<QQmlProfilerData> data;
44 emit dataReady(data, resolved);
49#include "moc_qqmlprofiler_p.cpp"
Combined button and popup list for selecting options.