public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Profiling
@ 2000-12-01 12:30 Davy Durham
  0 siblings, 0 replies; 14+ messages in thread
From: Davy Durham @ 2000-12-01 12:30 UTC (permalink / raw)
  To: gcc

Uh... I'm not sure if this is the correct mailing list to ask this
question but:

    I'm trying to profile an application "-p" flag...    I'd really like
to be able to call a function in the code that would say, start or stop
the profiling..

   See, the processing in my app is broken into several phases, and one
of the phases is taking a bit too long and I want to try to optimize
it.... Hence, I don't want the other phases' information to be included
in gprof's output...

    Perhaps this is a gprof issue?


Thanks,
    Davy

^ permalink raw reply	[flat|nested] 14+ messages in thread
* profiling
@ 2002-06-14  2:59 Zdenka Safarzik
  2002-06-14  6:42 ` profiling Will Cohen
  0 siblings, 1 reply; 14+ messages in thread
From: Zdenka Safarzik @ 2002-06-14  2:59 UTC (permalink / raw)
  To: gcc

Hello,

I want to made hardware profiling. For that purposes I need to have
instrumented source code that has to be profiled. At every beginning and end

of function and program loops writing to one register must be inserted. Each

faction write different value in that register. My hardware detects access
to that register, which function had access and time when that access was
happen.

For source code instrumentation I want to use gcc. As gcc is very complex
software, I hope that you can help me.

I read gecko documentation, and it seems to me that -pg or -test-coverage
options can be used for this purpose. Can you please tell me what exactly
these options do? Do they insert some code before compiling or before
linking? Where is it in gcc source code? Can I easy change that code with
writing to some register?  Is it possible to set profiling hierarchy level
(for example: to add extra code only on "main" function instead of whole
source)?

Thank you for your time

Regards
Zdenka Safarzik

^ permalink raw reply	[flat|nested] 14+ messages in thread
* profiling
@ 2004-07-09  7:30 kavii ita
  2004-07-12 20:00 ` profiling Jim Wilson
  0 siblings, 1 reply; 14+ messages in thread
From: kavii ita @ 2004-07-09  7:30 UTC (permalink / raw)
  To: gcc

Hello,

I am trying to explore the gcc 's profiling support.It
is has great support for instrumenting application
with profiling code.

It is quiet useful for me. but it uses profil()/
settimer functionality to generate the time signal in
native gcc.

I am afraid profil() or settimer functional support is
not there for the targets without any OS sitting on
it.
How does the profiling works on other embedded targets
in gcc world?

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. Can I implement flat
profile/call graph profile using this approach ?

Can I make a use of this to replace profil() 
functionality ? I want to  replace native calls mcount
and monstartup with my code which will be using
hardware timer. 

Once i can get a data run time on target. i can xfer
to host.

Any pointers regarding this would be useful.

Regards
ita


________________________________________________________________________
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* profiling
@ 2004-07-09  7:38 kavii ita
  2004-07-09  7:58 ` profiling Zack Weinberg
  2004-07-09 10:20 ` profiling Alexander Stante
  0 siblings, 2 replies; 14+ messages in thread
From: kavii ita @ 2004-07-09  7:38 UTC (permalink / raw)
  To: gcc

Hello,

I am trying to explore the gcc 's profiling support.It
is has great support for instrumenting application
with profiling code.

It is quiet useful for me.  but it uses profil()/
settimer functionality to generate the time signal in
native gcc.

I am afraid profil() or settimer functional support is
not there for the targets without any OS sitting on
it.
How does the profiling works on other embedded targets
in gcc world?

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.

Can I make a use of this to replace profil()
functionality ? I want to  replace native calls mcount
and monstartup 
with my code which will using hardware timer. Can I
get implement flat profile/call graph profile 

Any pointers regarding this would be useful.

-regards,
ita



________________________________________________________________________
Yahoo! India Careers: Over 50,000 jobs online
Go to: http://yahoo.naukri.com/

^ permalink raw reply	[flat|nested] 14+ messages in thread
* Profiling
@ 2004-08-15 19:54 Rajkishore Barik
  2004-08-16 19:50 ` Profiling James E Wilson
  0 siblings, 1 reply; 14+ messages in thread
From: Rajkishore Barik @ 2004-08-15 19:54 UTC (permalink / raw)
  To: gcc

Hi,
I had been adding a new value profile transformation onto the existing vpt 
framework.,
I wrote a new __gcov_merge_range function in "libgcov.c" file. 
However, every execution of the executable file produces "Overflow 
merging" error. 
Can someone help?
regards,
Raj

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

end of thread, other threads:[~2004-08-17 10:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-01 12:30 Profiling Davy Durham
2002-06-14  2:59 profiling Zdenka Safarzik
2002-06-14  6:42 ` profiling Will Cohen
2004-07-09  7:30 profiling kavii ita
2004-07-12 20:00 ` profiling Jim Wilson
2004-07-09  7:38 profiling kavii ita
2004-07-09  7:58 ` profiling Zack Weinberg
2004-07-12  4:12   ` profiling Ben Elliston
2004-07-12 10:23   ` profiling kavii ita
2004-07-09 10:20 ` profiling Alexander Stante
2004-07-12  9:45   ` profiling kavii ita
2004-08-15 19:54 Profiling Rajkishore Barik
2004-08-16 19:50 ` Profiling James E Wilson
2004-08-17 10:49   ` Profiling Rajkishore Barik

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