[LIP] Profiling a C program

"Logu" <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <003901c8846f$0348d440$140110ac@LOGUCO>
I am trying to profile a simple C program, but I am not getting correct 
values under the  "cumulative seconds"  and "self seconds" column for the 
functions. I always get them as 0.00.

I compiled and linked the program with -pg option. But when I run the gprof 
I only get this output

  %   cumulative   self         self     total
 time   seconds   seconds    calls   Ts/call  Ts/call  name
  0.00      0.00     0.00        5        0.00     0.00    pmesg

Could someone point me what I am missing here. I need to find the time spent 
on each function calls.

Thanks
-logu 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.