High CPU usage
-
@Ketan__Patel__0011
You are mixing compilation times and execution times. Where is your problem? When compiling or when running? And wich is the problem? High CPU usage? When comiling as more CPU used less time to compile and when running it will depend on what is your application doing.
About faulty applications... If it faults it has a bug so you have to find it and remove it. -
@ollarch
I believe @Ketan__Patel__0011 has consistently only reported compilation/link timings, I don't see where you see he might be reporting runtime execution time?If he says that outside of Qt Creator it compiles with 20% CPU while inside it is 90% that does sound a touch strange.... It looks like it is the Microsoft Compiler Driver which is taking the time....
-
@JonB
Maybe QtCreator is uning multiprocessor compiling while Visual Studio is not. The Intel i3-3220 has 4 core threads, so 20~25 CPU usage during compilation sounds like only one core is used.
On Visual Studio check the "C/C++" options , section "All options" parameter "Additional options", and set "/MP4" to it. It will use 4 cores on compilation. -
Thanks for your reply and your suggestion
i will try your idea But I am not developing Software in visual studio.
i am developing software in QT, currently am working on this problem.
doesn't matter why Microsoft visual studio 2015 not use more than 20-25% of CPUMy higher priority is to solve this problem in QT
or If you get any other idea or any other solution for it than please drop your answer or suggestion here
Again Thanks You So Much -
@Ketan__Patel__0011
For MSVC builds, Qt uses jom instead of nmake, to build in parallel, use more CPU and speed up the building.
You can refer to:
https://wiki.qt.io/Jom
https://www.qt.io/blog/2009/03/27/speeding-up-visual-c-qt-builds -
(Side discussion forked to https://forum.qt.io/topic/119207/relationships-between-qmake-make-nmake-jom-and-the-compiler )