Re: Question about -fbranch-probabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux