public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc profile questions
@ 2019-02-19 16:19 Qing Zhao
  2019-02-19 17:07 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Qing Zhao @ 2019-02-19 16:19 UTC (permalink / raw)
  To: gcc

Hi,

Suppose we have a program called foo which is built with gcc -fprofile-generate,  Now when foo is executed a bunch of .gcda files are created.  

What happens when foo is executed more than once.  Are the .gcda files updated with each execution?  Or are the .gcda files overwritten with new .gcda files (and thus contain profile info only for the last execution)?

Thanks for the info.

Qing

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

* Re: Gcc profile questions
  2019-02-19 16:19 Gcc profile questions Qing Zhao
@ 2019-02-19 17:07 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2019-02-19 17:07 UTC (permalink / raw)
  To: gcc, Qing Zhao

On February 19, 2019 5:19:11 PM GMT+01:00, Qing Zhao <qing.zhao@oracle.com> wrote:
>Hi,
>
>Suppose we have a program called foo which is built with gcc
>-fprofile-generate,  Now when foo is executed a bunch of .gcda files
>are created.  
>
>What happens when foo is executed more than once.  Are the .gcda files
>updated with each execution? 

Yes. 

Or are the .gcda files overwritten with
>new .gcda files (and thus contain profile info only for the last
>execution)?
>
>Thanks for the info.
>
>Qing

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

end of thread, other threads:[~2019-02-19 17:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19 16:19 Gcc profile questions Qing Zhao
2019-02-19 17:07 ` Richard Biener

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).