Mail Archives: djgpp/2000/01/10/10:01:38
On Sun, 9 Jan 2000, David Cleaver wrote:
> C:\MyPrograms\CFiles>gprof -b prime
> Flat profile:
>
> Each sample counts as 0.055556 seconds.
> % cumulative self self total
> time seconds seconds calls Ts/call Ts/call name
> 100.00 0.06 0.06 __umoddi3
> 0.00 0.06 0.00 2 0.00 0.00 fxn1
> 0.00 0.06 0.00 1 0.00 0.00 isPrime
> 0.00 0.06 0.00 1 0.00 0.00 main
> 0.00 0.06 0.00 1 0.00 0.00 fxn4
This is a known bug in DJGPP v2.02 library (and the primary motivation
for v2.03 ;-). The solution is to upgrade to DJGPP v2.03, released
two days ago, and rebuild your program. Then run it again, invoke
gprof, and you should see a profile that makes sense.
- Raw text -