Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmlprofilerqtdwriter.cpp File Reference

(05f1bad85561dc77d7e08599b8119920ad62d6a1)

#include "qqmlprofilerqtdwriter_p.h"
#include <private/qobject_p.h>
#include <QtCore/qfile.h>
#include <QtCore/qqueue.h>
#include <QtCore/qregularexpression.h>
#include <QtCore/qurl.h>
#include <QtCore/qxmlstream.h>
#include <QtCore/qxpfunctional.h>
#include <limits>
#include "moc_qqmlprofilerqtdwriter_p.cpp"
Include dependency graph for qqmlprofilerqtdwriter.cpp:

Go to the source code of this file.

Classes

class  QQmlProfilerQtdWriterPrivate
struct  StreamWriter
struct  DataIterator

Functions

 Q_STATIC_ASSERT (sizeof(RANGE_TYPE_STRINGS)==MaximumRangeType *sizeof(const char *))
 Q_STATIC_ASSERT (sizeof(MESSAGE_STRINGS)==MaximumMessage *sizeof(const char *))
static QString qmlRangeTypeAsString (RangeType type)
static QString qmlMessageAsString (Message type)
bool compareStartTimes (const QQmlProfilerEvent &t1, const QQmlProfilerEvent &t2)

Variables

const char PROFILER_FILE_VERSION [] = "1.02"
static const char * RANGE_TYPE_STRINGS []
static const char * MESSAGE_STRINGS []

Function Documentation

◆ compareStartTimes()

bool compareStartTimes ( const QQmlProfilerEvent & t1,
const QQmlProfilerEvent & t2 )

Definition at line 255 of file qqmlprofilerqtdwriter.cpp.

◆ Q_STATIC_ASSERT() [1/2]

Q_STATIC_ASSERT ( sizeof(MESSAGE_STRINGS) = =MaximumMessage *sizeof(const char *))

◆ Q_STATIC_ASSERT() [2/2]

Q_STATIC_ASSERT ( sizeof(RANGE_TYPE_STRINGS) = =MaximumRangeType *sizeof(const char *))

◆ qmlMessageAsString()

QString qmlMessageAsString ( Message type)
static

Definition at line 128 of file qqmlprofilerqtdwriter.cpp.

References MESSAGE_STRINGS.

◆ qmlRangeTypeAsString()

QString qmlRangeTypeAsString ( RangeType type)
static

Definition at line 120 of file qqmlprofilerqtdwriter.cpp.

References RANGE_TYPE_STRINGS.

Variable Documentation

◆ MESSAGE_STRINGS

const char * MESSAGE_STRINGS
static
Initial value:
= {
"Event",
"RangeStart",
"RangeData",
"RangeLocation",
"RangeEnd",
"Complete",
"PixmapCache",
"SceneGraph",
"MemoryAllocation",
"DebugMessage"
}

Definition at line 35 of file qqmlprofilerqtdwriter.cpp.

Referenced by qmlMessageAsString().

◆ PROFILER_FILE_VERSION

const char PROFILER_FILE_VERSION = "1.02"

Definition at line 22 of file qqmlprofilerqtdwriter.cpp.

Referenced by QQmlProfilerQtdWriter::save().

◆ RANGE_TYPE_STRINGS

const char * RANGE_TYPE_STRINGS
static
Initial value:
= {
"Painting",
"Compiling",
"Creating",
"Binding",
"HandlingSignal",
"Javascript"
}

Definition at line 24 of file qqmlprofilerqtdwriter.cpp.

Referenced by qmlRangeTypeAsString().