profiling woes (help!)

hi – i’ve been trying to profile my opengl code under gcc/cygwin. i’ve been trying to use gprof, but there’s a problem. none of my OpenGL calls (most importantly glFinish) are showing up in the profile.

is there a trick? do i need to get a special library from cygwin, one that has been profiled-enabled or whatever? do the OpenGL have some sort of threading issue that would be preventing gprof from doing what i want?

i don’t want to profile OpenGL… i just want to know how much time is being spent in the library relative to the rest of my code.

the libraries i’m linking into my program are:
LINK = -lm -L$(HOME)/lib -lkernel32 -lgdi32 -luser32 -lopengl32 -lglut32 -lversion -lglew32 -lglu32 -lcg -lcgGL