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

clangbackend eats huge amount of memory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.5.0, Qt Creator 4.5.1
    • C/C++/Obj-C++ Support
    • None
    • Arch Linux

    Description

      The project that I work for is Chromium.

      Its codebase is really huge. (~30 000 000 lines of C++ code)

      Until qtcreator 4.3.x or 4.4.x (I'm not sure) everything was Ok.

      Starting from 4.5.0 clangbackend consumes a lot of memory.

      (The more files I open, the more memory it consumes)

      When there are only 20 typical c++ files openned the memory consumption of a clangbackend process grows up to 3-4.5 Gb of RAM.

      So I ran clangbackend using valgrind tool named "massif".

      Plz take a look into its output in the attach (usage: ms_print massif-file).

      I can see allocations of various clang/llvm objects.

      I'm not experienced in llvm but have a good knowledge of C++.

      If you need more information please feel free to ask me. I'll help.

       

       

      Attachments

        1. massif.out.17608
          4.00 MB
          Michael Kolomeytsev

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              michael_kolomeytsev Michael Kolomeytsev
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes