5#ifndef QQMLPROFILERQTDWRITER_P_H
6#define QQMLPROFILERQTDWRITER_P_H
19#include <private/qqmlprofilerclientdefinitions_p.h>
20#include <private/qqmlprofilereventlocation_p.h>
21#include <private/qqmlprofilereventreceiver_p.h>
27class QQmlProfilerQtdWriterPrivate;
37 void addEventType(
const QQmlProfilerEventType &type)
final;
38 void addEvent(
const QQmlProfilerEvent &event)
final;
39 bool save(
const QString &filename)
final;
43 void startTrace(qint64 time,
const QList<
int> &engineIds)
final;
44 void endTrace(qint64 time,
const QList<
int> &engineIds)
final;
45 void complete(qint64 maximumTime)
final;
QVector< QQmlProfilerEvent > events
void setState(State state)
QVector< QQmlProfilerEventType > eventTypes
void addEvent(const QQmlProfilerEvent &event) final
void complete(qint64 maximumTime) final
void endTrace(qint64 time, const QList< int > &engineIds) final
bool save(const QString &filename) final
void addEventType(const QQmlProfilerEventType &type) final
bool isEmpty() const final
int numLoadedEventTypes() const final
void startTrace(qint64 time, const QList< int > &engineIds) final
static const char * MESSAGE_STRINGS[]
static const char * RANGE_TYPE_STRINGS[]
static QString qmlRangeTypeAsString(RangeType type)
bool compareStartTimes(const QQmlProfilerEvent &t1, const QQmlProfilerEvent &t2)
const char PROFILER_FILE_VERSION[]
static QString qmlMessageAsString(Message type)
Q_STATIC_ASSERT(sizeof(SharedImageHeader) % 4==0)
DataIterator(const QQmlProfilerQtdWriterPrivate *d, qxp::function_ref< void(const QQmlProfilerEvent &, qint64)> &&sendEvent)
void writeStartElement(const char *name)
StreamWriter(const QString &filename)
void writeAttribute(const char *name, Number number)
void writeAttribute(const char *name, const char *value)
void writeTextElement(const char *name, Number number)
void writeTextElement(const char *name, const char *value)
void writeAttribute(const char *name, const QQmlProfilerEvent &event, int i, bool printZero=true)
void writeTextElement(const char *name, const QString &value)