Commit Graph

3 Commits

Author SHA1 Message Date
Olivier De Cannière 886da9f1b1 aotstats: Fix coverity warnings
Coverity-Id: 469979
Coverity-Id: 469980
Change-Id: Ia26d66820b78a3ae9208c2a230bd2548fb9cbfc6
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2024-11-07 20:06:01 +01:00
Olivier De Cannière 318ac44065 aotstats: Support --only-bytecode and modules with no qml files
It is possible to pass --only-bytecode to qmlcachegen. As the name
implies, this only generates the bytecode for the qml files and does not
compile them. This case was not taken into account which could lead to
files commands depend upon not being generated.

Therefore, keep track of empty and only-bytecode modules in files
generated by cmake and pass them to qmlaotstats upon aggregation such
that it can include that information in the report.

Also, only pass the arguments specific to aotstats to qmlcachegen if
--only-bytecode is not set for that module.

Fixes: QTBUG-130084
Task-number: QTBUG-124667
Pick-to: 6.8
Change-Id: I44b4a80e8a6fd2f9bc16ae1bb2c8d540ff3b697b
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
2024-11-04 15:21:09 +01:00
Olivier De Cannière f2889262c8 Compiler: Aggregate and print aotstats
This patch enables the aggregation and printing of aotstats recorded by
qmlcachegen for compiled qml files. The aotstats files for individual
qml files are aggregated into module-level aotstats files and then into
one global aotstats file. This file is then presented into a more human
friendly format.

The all_aotstats target can be used to print the collected stats of all
the compiled files and modules.

Due to CMake configuration errors, the feature has temporarily been
disabled on Xcode. This should be fixed before soon.
Created QTBUG-125995.

Task-number: QTBUG-124667
Change-Id: I0c82142626743e9c1af98516c553f4dd7bc6da13
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2024-06-01 01:13:05 +02:00