public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Flush profile-generate data
@ 2011-05-31 13:47 Magnus Ekhall
  2011-05-31 14:04 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Ekhall @ 2011-05-31 13:47 UTC (permalink / raw)
  To: gcc-help

Hello,

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?

Regards,
Magnus E

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Flush profile-generate data
  2011-05-31 13:47 Flush profile-generate data Magnus Ekhall
@ 2011-05-31 14:04 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2011-05-31 14:04 UTC (permalink / raw)
  To: Magnus Ekhall; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-31 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 13:47 Flush profile-generate data Magnus Ekhall
2011-05-31 14:04 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).