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
24QT_BEGIN_NAMESPACE
25
26namespace QQmlJS {
27
28class Q_QMLCOMPILER_EXPORT AotStatsReporter
29{
30public:
33
34 QString format() const;
35
36private:
37 void formatDetailedStats(QTextStream &) const;
38 void formatSummary(QTextStream &) const;
40
41 const AotStats &m_aotstats;
44
45 struct Counters
46 {
47 int successes = 0;
48 int skips = 0;
49 int codegens = 0;
50 };
51
56};
57
58} // namespace QQmlJS
59
60QT_END_NAMESPACE
61
62#endif // QQMLJSCOMPILERSTATSREPORTER_P_H