https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82229
--- Comment #23 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to krzysio.kurek from comment #22) > I'm sorry but profiling doesn't seem to be well documented, what tools > should I use to generate a profiling log? $ gcc -fprofile-generate x.c $ ./a.out # or make check, which will train the compiler $ gcc -fprofile-use x.c The profile will be then automatically loaded and used.