aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlaotstats/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* aotstats: Fix coverity warningsOlivier De Cannière2024-11-071-2/+2
| | | | | | | Coverity-Id: 469979 Coverity-Id: 469980 Change-Id: Ia26d66820b78a3ae9208c2a230bd2548fb9cbfc6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* aotstats: Support --only-bytecode and modules with no qml filesOlivier De Cannière2024-11-041-1/+16
| | | | | | | | | | | | | | | | | | | | 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>
* Compiler: Aggregate and print aotstatsOlivier De Cannière2024-06-011-0/+83
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>