This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Inserting profiling function calls
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: GERIN Patrice <patrice dot gerin at imag dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 8 Feb 2007 23:12:42 +0100
- Subject: Re: Inserting profiling function calls
- References: <45CB98B5.406@imag.fr>
> Dear All,
>
> In order to implement a specific basic block profiling, i have to
> insert function calls at the end of each basic blocks or/and at the end
> of each functions.
> To do this I'd like to add a profiling pass similar to the arc profiling.
> I'm a beginner in the GCC internal implementation and i hope this
> subject will be interesting enough for you to give me attention.
> I begin to localize were to insert/add this functionality but more
> detailed on "a magic how to" insert function calls in the generated code
> would be very helpful for me.
> Is there somewhere a guide line to add profiling pass ?
There is no such guide, but adding a profiling pass is not that
different from adding any toher pass. Would you for a start please
explain what do you need to do that can't be done using existing arc and
value profiling?
Honza
>
> Thank you for your help,
> Patrice
>
>
>
>
>
>
> ___________________________________________________________________________
> Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
> interface révolutionnaire.
> http://fr.mail.yahoo.com