Re: Flush profile-generate data

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

 



Magnus Ekhall <magnus.ekhall@xxxxxxxxx> writes:

> I'm trying to generate data for profile based optimization by using
> -fprofile-generate.
>
> The problem is that on the system I'm running the software never
> exits. Therefore no .gcda-files get written.
>
> Is there a way to force a flush of the current gcda-data? Or some way
> to work around the issue?

Call the function __gcov_flush().  That will write out the current set
of profile information and reset the counts to zero for future calls.

Ian


[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