The easiest way to see what all is needed is to use the Tools->C++ Tools->Inspect C++ Model.

That will show you just how many other files are included in your source file to make it compile. Sometimes this is enlightening.

Sometimes the ClangBackend just goes off the deep end and consumes a bunch of memory.

--
Mike Jackson  [[email protected]]


Jason H wrote:
There is a library outside of Qt, but it is in the LIBS line of the .pro - no 
source from that is used aside from it's INCLUDEPATH and #include headers, all 
the headers of that library are 28k lines. They aren't explicitly included in 
my .pro


Sent: Friday, June 17, 2016 at 1:28 PM
From: "Mike Jackson"<[email protected]>
To: qt-creator<[email protected]>
Subject: Re: [Qt-creator] 12GB for Creator? (OSX)

Your code might be 6.5K lines, but how many other 3rd party libraries
were included?
--
Mike Jackson  [[email protected]]


Jason H wrote:
I only had about 20 documents open, and nothing huge. 6.5k total lines.

Sent: Thursday, June 16, 2016 at 3:27 AM
From: "Eike Ziller"<[email protected]>
To: "Jason H"<[email protected]>
Cc: qt-creator<[email protected]>
Subject: Re: [Qt-creator] 12GB for Creator? (OSX)


On Jun 15, 2016, at 6:44 PM, Jason H<[email protected]>   wrote:

Creator was running fine, but none of my OS was. I launched Activity monitor, 
and it was taking up 12GB. I can type fast, but I don't type that much in a 
week, so I don't think it's undo history.
I restarted Creator and it takes 94MB.
Loaded the same project as under 12GB, 154 MB.

Creator 3.6.0, Based on Qt 5.6.

Is this fixed or am I doing something wrong?
If you are using the Clang code model, the memory was probably taken by that.
Possibly reason: Many open documents.
Dor Qt Creator 4.1 we added automatic releasing of resources of “old” documents 
(in general for the “text” editors, not just the code model), so this should 
not happen to that extend any more.

Br, Eike

--
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
[email protected]
+123 45 6789012
http://qt.io
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B




_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qt-creator

Reply via email to