Profiling support

Torsten Bonde Christiansen torsten at bondechristiansen.dk
Fri Jan 11 12:42:10 CET 2008


Hi,

I tried to compile gmp-4.2.2 with profiling support, but for some reason 
the gmp functions does not show up in the output.

I've compiled the library both using:
./configure --enable-profiling=gprof
./configure --enable-profiling=prof
CFLAGS="-pg -g3 -O0" ./configure
(including several other variants).

and when compiling my own program using:
gcc -pg -O0 -g3 -o my_prog my_prog.c -lgmp

When executed the program generates the required gmon.out file, but no 
where in the output (using gprof my_prog > my_prog.out) is any of the 
gmp functions displayed.

I thought this could be down to the fact that they use so little time 
executing, that they are discarded by the profiler, but that should not 
be the case since i'm doing some rather nasty modulo operations on 
intergers > 4 machine words.

Anyone who has an idea to what I could be doing wrong?

Kind regards,
Torsten Bonde Christiansen.


More information about the gmp-bugs mailing list