Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1277

Slow reparsing of qtcreator.qbs when changing cpp.minimumMacosVersion in QtcProduct.qbs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.10.0
    • Fix Version/s: 1.11.0
    • Component/s: Qt Creator Integration
    • Labels:
      None
    • Environment:
      macOS 10.12
      XCode 8.2.1
      Creator 4.6-ish
      qbs v1.10.0
    • Commits:
      6655d563c3cac6dbfd61bfb3dd15ae5b9467d5ae

      Description

      Reparsing the Qt Creator project takes about 50 seconds.
      After exporting QTC_QBS_PROFILING=1, running creator, changing value of minimumMacosVersion, and reparsing the project, this is the log in the general messages after a few reparses:

      Starting activity 'Change tracking'.
      Starting activity 'Resolving project for configuration qtc_Creator_Qt_5_9_3_temporary_Debug'.
      Starting activity 'ModuleLoader'.
      	Project file loading and parsing took 141ms.
      	Running Probes took 35s, 237ms.
      Activity 'ModuleLoader' took 44s, 54ms.
      Starting activity 'ProjectResolver'.
      	All property evaluation took 1s, 789ms.
      	Module property evaluation took 2s, 53ms.
      	Resolving groups (without module property evaluation) took 215ms.
      Activity 'ProjectResolver' took 3s, 834ms.
      Activity 'Resolving project for configuration qtc_Creator_Qt_5_9_3_temporary_Debug' took 47s, 888ms.
      Activity 'Change tracking' took 49s, 876ms.
      	Wildcard expansion took 32ms.
      	Comparing property values took 0ms.
      Starting activity 'Storing build graph'.
      Activity 'Storing build graph' took 373ms.
      Setting up imports took 43ms.
      operation updateProjectNodes took 263ms
      operation updateDocuments took 0ms
      operation updateBuildTargetData took 598ms
      operation updateCppCodeModel took 96ms
      operation updateQmlJsCodeModel took 19ms
      operation updateAfterParse took 979ms
      Starting activity 'Change tracking'.
      Starting activity 'Resolving project for configuration qtc_Creator_Qt_5_9_3_temporary_Debug'.
      Starting activity 'ModuleLoader'.
      	Project file loading and parsing took 176ms.
      	Running Probes took 38s, 219ms.
      Activity 'ModuleLoader' took 47s, 135ms.
      Starting activity 'ProjectResolver'.
      	All property evaluation took 2s, 259ms.
      	Module property evaluation took 2s, 265ms.
      	Resolving groups (without module property evaluation) took 209ms.
      Activity 'ProjectResolver' took 4s, 99ms.
      Activity 'Resolving project for configuration qtc_Creator_Qt_5_9_3_temporary_Debug' took 51s, 235ms.
      Activity 'Change tracking' took 53s, 240ms.
      	Wildcard expansion took 32ms.
      	Comparing property values took 0ms.
      Starting activity 'Storing build graph'.
      Activity 'Storing build graph' took 384ms.
      Setting up imports took 46ms.
      operation updateProjectNodes took 266ms
      operation updateDocuments took 0ms
      operation updateBuildTargetData took 619ms
      operation updateCppCodeModel took 99ms
      operation updateQmlJsCodeModel took 22ms
      operation updateAfterParse took 1010ms
      

      Apparently running probes takes a long time, and grepping the output of 'ps aux' for clang, shows that clang compiler is called multiple times.

        Attachments

        For Gerrit Dashboard: QBS-1277
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            alexandru.croitor Alexandru Croitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes