[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/