Hi Mity
When built with -fprofile-generate, and the resulted binary is executed multiple times, are the .gcda files (re)written from scratch every time, or are they updated so they contain a combined profile data from multiple runs?
The files are updated, so it is permitted to run the program mutiple times.
Any other gotchas this approach might bring?
No, it shouldn't ... Best regards, Andi