4#ifndef QQMLABSTRACTPROFILERADAPTER_P_H
5#define QQMLABSTRACTPROFILERADAPTER_P_H
7#include <private/qtqmlglobal_p.h>
8#include <private/qqmlprofilerdefinitions_p.h>
10#include <QtCore/QObject>
11#include <QtCore/QElapsedTimer>
33 static const int s_numMessagesPerBatch = 1000;
36 QObject(parent), service(
nullptr), waiting(true), featuresEnabled(0) {}
42 void startProfiling(
quint64 features);
51 bool isRunning()
const {
return featuresEnabled != 0; }
81#define QQmlAbstractProfilerAdapterFactory_iid "org.qt-project.Qt.QQmlAbstractProfilerAdapterFactory"
virtual QQmlAbstractProfilerAdapter * create(const QString &key)=0
void setService(QQmlProfilerService *new_service)
void profilingEnabled(quint64 features)
QQmlAbstractProfilerAdapter(QObject *parent=nullptr)
~QQmlAbstractProfilerAdapter() override
void profilingEnabledWhileWaiting(quint64 features)
virtual qint64 sendMessages(qint64 until, QList< QByteArray > &messages)=0
void referenceTimeKnown(const QElapsedTimer &timer)
QQmlProfilerService * service
void profilingDisabledWhileWaiting()
void synchronize(const QElapsedTimer &t)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define QT_REQUIRE_CONFIG(feature)
unsigned long long quint64