QQmlAbstractProfilerAdapter Class

Header: #include <QQmlAbstractProfilerAdapter>
Inherits: QObject and QQmlProfilerDefinitions

Public Functions

void startProfiling(quint64 features)
void stopProfiling()

Detailed Description

\internal \inmodule QtQml Abstract base class for all adapters between profilers and the QQmlProfilerService. Adapters have to retrieve profiler-specific data and convert it to the format sent over the wire. Adapters must live in the QDebugServer thread but the actual profilers can live in different threads. The recommended way to deal with this is passing the profiling data through a signal/slot connection.

Member Function Documentation

void QQmlAbstractProfilerAdapter::startProfiling(quint64 features)

\internalEmits either profilingEnabled(quint64) or profilingEnabledWhileWaiting(quint64), depending on waiting. If the profiler's thread is waiting for an initial start signal, we can emit the signal over a Qt::DirectConnection to avoid the delay of the event loop. The features are passed on to the signal.

void QQmlAbstractProfilerAdapter::stopProfiling()

\internalEmits either profilingDisabled() or profilingDisabledWhileWaiting(), depending on waiting. If the profiler's thread is waiting for an initial start signal, we can emit the signal over a Qt::DirectConnection to avoid the delay of the event loop. This should trigger the profiler to report its collected data and subsequently delete it.