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

Clang code model hogs CPU and memory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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

      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.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes