Hi Nick, > > $ time ./a.out > > real 0m4.324s > > > $ gprof a.out > > Each sample counts as 0.01 seconds. > > % cumulative self self total > > time seconds seconds calls s/call s/call name > > 9.46 43.22 4.09 rand > > This looks like a gprof bug. Specifically I would guess that either the > sample period is incorrect or else the clock frequency calculated by the > gprof/hertz.c:hertz() function is wrong.
Thank you. If this is a gprof bug and fixed in a future release of binutils, it will be helpful. SUSUKITA,Ryutaro _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils