Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to make profile-guided optimizations in Qtcreator ?



  • Hi,

    how I can use profile-guided optimizations in Qtcreator ? what is the proper xxx.pro flags?

    This is general usage :

    g++ -O3 -fprofile-generate [more params here, like -march=native ...] -o executable_name
    // run my program's benchmarks, or something to stress its most common path
    g++ -O3 -fprofile-use [more params here, like -march=native...] -o executable_name
    

    first its producing profile-generate . thand second compile using it


Log in to reply