I have a C code in a file test.c
.I have to profile it using grof.I have used the following commands to do so.
gcc -p -o result test.c
./result
gprof result
A section of the output looks as follows:
`Flat profile: Each sample counts as 0.01 seconds. no time accumulated
% cumulative self self total
time seconds seconds calls Ts/call Ts/call name`
The problem is no matter what complex or easy program I use each sample count doesn't change from 0.01 seconds.Why is that and no time is being accumulated and displayed under the various coloumns.