This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Flush profile-generate data


Magnus Ekhall <magnus.ekhall@gmail.com> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]