David Bruant wrote: > I have had an idea which would be to force the end of the algorithm > thanks to a variable which would end it after 2 hours (for example). > This way, -fprofile-arcs would have a wide enough sample to improve with > -fbranch-probabilities, but the "you must use the same source code" > frightens me because if I add a variable to measure time, it's obviously > not the same source code. You could simply install a signal handler that responds to SIGUSR1 or something and terminates gracefully. Then you can terminate or leave running indefinitely your application at will without any source level changes. Brian