Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11640

Clang code model hogs CPU and memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.4.0-rc1
    • Qt Creator 3.0.1, Qt Creator 4.4.0-rc1
    • C/C++/Obj-C++ Support
    • None
    • QtCreator 3.1.0 beta, Kubuntu 13.10 x86-64

    Description

      I have a moderately large C++ project based on CMake. When opened in QtCreator with Clang code model enabled, it consumes around 590 MiB of RAM (after the initial parsing completes). However, as I start typing the code, CPU gets constantly loaded (I suppose, 1 or 2 threads) and memory consumption quickly raises to ~1.5 GiB. I didn't spend too much time editing the code, so this may not be the end.

      I think 590 MiB is acceptable, but 1.5 GiB is too much. Using the builtin QtCreator code model, opening the project consumes around 306 MiB, and further on it usually doesn't grow beyond ~700 MiB after several hours of coding.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-11640
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              lastique Andrey Semashev
              Votes:
              11 Vote for this issue
              Watchers:
              25 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes