To profile Qt applications, AQTime must get debug information for them in the stabs (symbol table) format. To compile your Qt application with debug information in this format, you may need to modify certain compiler settings. Below you can find instructions for the Microsoft Visual C++ and MinGW compilers that the Qt Creator IDE uses for building Qt applications. For detailed information on the settings, see the compiler documentation.
Microsoft Visual C++ Compiler
To generate debug information in the stabs format, add the
"CONFIG += debug" command-line argument to the
qmake utility (this utility generates a makefile used to compile your Qt application at the next build step). Below is a sample command line for Microsoft Visual C++ Compiler 12.0:
qmake.exe myAppProject.pro -r -spec win32-msvc2013 "CONFIG+=debug"
You can then pass the resulting makefile to the make utility that you use (like NMake or jom). After compilation, your application will contain debug information and will be ready for profiling with AQTime.
By default, MinGW generates debug information in the system’s native format. To change this:
Add the following lines to your Qt project file (.pro):
QMAKE_CXXFLAGS_DEBUG += "-gstabs+"
QMAKE_CFLAGS_DEBUG += "-gstabs+"
Add the the
"CONFIG += debug"command-line argument to the
qmakeutility that generates a makefile:
qmake.exe myAppProject.pro -r -spec win32-g++ "CONFIG+=debug"
You can then pass the resulting makefile to the make utility you use (like
mingw32-make) and build your Qt application.