![]() |
Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qqmljscompilerstats_p.h>
Public Member Functions | |
const QHash< QString, QHash< QString, QList< AotStatsEntry > > > & | entries () const |
void | addEntry (const QString &moduleId, const QString &filepath, const AotStatsEntry &entry) |
void | insert (const AotStats &other) |
bool | saveToDisk (const QString &filepath) const |
QJsonDocument | toJsonDocument () const |
Static Public Member Functions | |
static std::optional< AotStats > | parseAotstatsFile (const QString &aotstatsPath) |
static std::optional< AotStats > | aggregateAotstatsList (const QString &aotstatsListPath) |
static AotStats | fromJsonDocument (const QJsonDocument &) |
Friends | |
class | QQmlJSAotCompilerStats |
Definition at line 43 of file qqmljscompilerstats_p.h.
void QQmlJS::AotStats::addEntry | ( | const QString & | moduleId, |
const QString & | filepath, | ||
const AotStatsEntry & | entry ) |
Definition at line 163 of file qqmljscompilerstats.cpp.
|
static |
Definition at line 63 of file qqmljscompilerstats.cpp.
References QQmlJS::extractAotstatsFilesList(), and parseAotstatsFile().
|
inline |
Definition at line 48 of file qqmljscompilerstats_p.h.
|
static |
Definition at line 83 of file qqmljscompilerstats.cpp.
References QQmlJS::AotStatsEntry::codegenDuration, QQmlJS::AotStatsEntry::codegenSuccessful, QQmlJS::AotStatsEntry::column, QQmlJS::AotStatsEntry::errorMessage, files, QQmlJS::AotStatsEntry::functionName, and QQmlJS::AotStatsEntry::line.
Referenced by parseAotstatsFile().
Definition at line 29 of file qqmljscompilerstats.cpp.
References other().
|
static |
Definition at line 52 of file qqmljscompilerstats.cpp.
References file, QJsonDocument::fromJson(), fromJsonDocument(), QFile::open(), qDebug, QIODevice::readAll(), QIODeviceBase::ReadOnly, and QIODeviceBase::Text.
Referenced by aggregateAotstatsList().
bool QQmlJS::AotStats::saveToDisk | ( | const QString & | filepath | ) | const |
Definition at line 169 of file qqmljscompilerstats.cpp.
References file, QJsonDocument::Indented, QFile::open(), qDebug, QIODeviceBase::Text, toJsonDocument(), QIODeviceBase::Truncate, QIODevice::write(), and QIODeviceBase::WriteOnly.
QJsonDocument QQmlJS::AotStats::toJsonDocument | ( | ) | const |
Definition at line 123 of file qqmljscompilerstats.cpp.
References files, QJsonObject::insert(), and o.
Referenced by saveToDisk().
|
friend |
Definition at line 45 of file qqmljscompilerstats_p.h.