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
qqmljscompilerstatsreporter_p.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
// Qt-Security score:significant
4
5
#
ifndef
QQMLJSCOMPILERSTATSREPORTER_P_H
6
#
define
QQMLJSCOMPILERSTATSREPORTER_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
18
#
include
<
QTextStream
>
19
20
#
include
<
qtqmlcompilerexports
.
h
>
21
22
#
include
<
private
/
qqmljscompilerstats_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
namespace
QQmlJS
{
27
28
class
Q_QMLCOMPILER_EXPORT
AotStatsReporter
29
{
30
public
:
31
AotStatsReporter
(
const
QQmlJS
::
AotStats
&
stats
,
const
QStringList
&
emptyModules
,
32
const
QStringList
&
onlyBytecodeModules
);
33
34
QString
format
()
const
;
35
36
private
:
37
void
formatDetailedStats
(
QTextStream
&)
const
;
38
void
formatSummary
(
QTextStream
&)
const
;
39
QString
formatSuccessRate
(
int
codegens
,
int
successes
,
int
skips
)
const
;
40
41
const
AotStats
&
m_aotstats
;
42
const
QStringList
&
m_emptyModules
;
43
const
QStringList
&
m_onlyBytecodeModules
;
44
45
struct
Counters
46
{
47
int
successes
= 0;
48
int
skips
= 0;
49
int
codegens
= 0;
50
};
51
52
Counters
m_totalCounters
;
53
QHash
<
QString
,
Counters
>
m_moduleCounters
;
54
QHash
<
QString
,
QHash
<
QString
,
Counters
>>
m_fileCounters
;
55
QList
<
std
::
chrono
::
microseconds
>
m_successDurations
;
56
};
57
58
}
// namespace QQmlJS
59
60
QT_END_NAMESPACE
61
62
#
endif
// QQMLJSCOMPILERSTATSREPORTER_P_H
QQmlJS::AotStatsReporter
Definition
qqmljscompilerstatsreporter_p.h:29
QPlatformGraphicsBufferHelper
\inmodule QtGui
QQmlJS
Definition
qv4bytecodegenerator_p.h:26
qtdeclarative
src
qmlcompiler
qqmljscompilerstatsreporter_p.h
Generated on
for Qt by
1.14.0