gprof on arm-linux "no accumulated time problem"
Hi,
Recently I am trying to use gprof to profile my application on the board, but encounter some problem with grof, currently I can get gmon.out file, but I use 'gprof a.out gmon.out > log', I find out that gprof only show how many times each function has been called, but missing most important factor, each function always occupy 0 cpu time, this is so strange. My arm linux cross-compiler info: gcc-4.1.2 libc-2.5 binutils 2.18 So what's the problem with gprof, anybody can help me, thanks! Code:
#include <stdio.h> Code:
Flat profile: |
Insert one more 0 in the loop and check. For me the code works fine, maybe the resolution is too low for your machine?
|
I have tried, nothing happens, thanks!
Quote:
|
All times are GMT -5. The time now is 01:22 AM. |