Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130087

QML Compiler statistics doesn't shows all modules

    XMLWordPrintable

Details

    • 09f51978f (dev), 45c9d773e (6.8)

    Description

      If your CMake projects uses nested projects (e.g. to be able to build all parts individually but also have a way to build them all combined), the QML Compiler statistics doesn't show all QML modules.

      In the attached example a toplevel project adds two sub-projects, each subproject contains a QML module.
      The QML module uses qmlsc to compile it to C++ code as you can see by running `ninja -v`

      Running the `all_aostats" target only shows one of the modules:

      [2/3] Generating .rcc/qmlcache/all_aotstats.aotstats, .rcc/qmlcache/all_aotstats.txt
      Formatted AOT stats saved to "...build_multiple_projects/ui/.rcc/qmlcache/all_aotstats.txt"
      [3/3] cd .../build_multiple_projects/ui && /usr/bin/cmake -E cat .../build_multiple_projects/ui/.rcc/qmlcache/all_aotstats.txt
      ############ AOT COMPILATION STATS ############
      Module ui(appui):
      --File /home/gagi/work/customers/vorwerk/build_multiple_projects/ui/Main.qml
        7 of 7 (100%) bindings or functions compiled to Cpp successfully
          dynamicHeight: [Main.qml:14:37]
            result: Success
            duration: 360us
          width: [Main.qml:20:20]
            result: Success
            duration: 231us
          height: [Main.qml:21:21]
            result: Success
            duration: 439us
          width: [Main.qml:26:20]
            result: Success
            duration: 279us
          height: [Main.qml:27:21]
            result: Success
            duration: 436us
          onDynamicWidthChanged: [Main.qml:30:32]
            result: Success
            duration: 398us
          onDynamicHeightChanged: [Main.qml:31:33]
            result: Success
            duration: 503us
      
      ############ AOT COMPILATION STATS SUMMARY ############
      Module ui(appui): 7 of 7 (100%) bindings or functions compiled to Cpp successfully
      Total results: 7 of 7 (100%) bindings or functions compiled to Cpp successfully
      Successful codegens took an average of 378us
      

      Attachments

        For Gerrit Dashboard: QTBUG-130087
        # Subject Branch Project Status CR V

        Activity

          People

            olivier.decanniere Olivier De Cannière
            gagi Dominik Holland
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes