This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: profiling
- From: kavii ita <systemonchip2000 at yahoo dot co dot in>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 12 Jul 2004 10:18:58 +0100 (BST)
- Subject: Re: profiling
--- Alexander Stante <mrpac@gmx.de> wrote: > Hello,
>
> kavii ita wrote:
> > I have global counter unit on the hardware. If i
> use
> > this in prologue and epilogue of function . I can
> get
> > the time spend in the function.
> I use -finstrument-functions with the
> __cyg_profile_func_enter and
> __cyg_profile_func_exit function to profile my code.
> With the attribute
> "no_instrument_function" you can exclude certain
> function like irq
> handlers from beiing instrumented. Maybe that helps.
Thanks for the pointer. gcc seems to support the
profiling meachanism through the *PROFILE* macros.
Can I get a same amount of profiling data by
instrumenting code at function levels.
please comment.
ita
> Bye
> Alex
________________________________________________________________________
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/