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>.
Loading...
Searching...
No Matches
QQmlJS::AotStats Class Reference

#include <qqmljscompilerstats_p.h>

+ Collaboration diagram for QQmlJS::AotStats:

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< AotStatsparseAotstatsFile (const QString &aotstatsPath)
 
static std::optional< AotStatsaggregateAotstatsList (const QString &aotstatsListPath)
 
static AotStats fromJsonDocument (const QJsonDocument &)
 

Friends

class QQmlJSAotCompilerStats
 

Detailed Description

Definition at line 43 of file qqmljscompilerstats_p.h.

Member Function Documentation

◆ addEntry()

void QQmlJS::AotStats::addEntry ( const QString & moduleId,
const QString & filepath,
const AotStatsEntry & entry )

Definition at line 163 of file qqmljscompilerstats.cpp.

◆ aggregateAotstatsList()

std::optional< AotStats > QQmlJS::AotStats::aggregateAotstatsList ( const QString & aotstatsListPath)
static

Definition at line 63 of file qqmljscompilerstats.cpp.

References QQmlJS::extractAotstatsFilesList(), and parseAotstatsFile().

+ Here is the call graph for this function:

◆ entries()

const QHash< QString, QHash< QString, QList< AotStatsEntry > > > & QQmlJS::AotStats::entries ( ) const
inline

Definition at line 48 of file qqmljscompilerstats_p.h.

◆ fromJsonDocument()

AotStats QQmlJS::AotStats::fromJsonDocument ( const QJsonDocument & document)
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().

+ Here is the caller graph for this function:

◆ insert()

void QQmlJS::AotStats::insert ( const AotStats & other)

Definition at line 29 of file qqmljscompilerstats.cpp.

References other().

+ Here is the call graph for this function:

◆ parseAotstatsFile()

std::optional< AotStats > QQmlJS::AotStats::parseAotstatsFile ( const QString & aotstatsPath)
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ saveToDisk()

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.

+ Here is the call graph for this function:

◆ toJsonDocument()

QJsonDocument QQmlJS::AotStats::toJsonDocument ( ) const

Definition at line 123 of file qqmljscompilerstats.cpp.

References files, QJsonObject::insert(), and o.

Referenced by saveToDisk().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QQmlJSAotCompilerStats

friend class QQmlJSAotCompilerStats
friend

Definition at line 45 of file qqmljscompilerstats_p.h.


The documentation for this class was generated from the following files: