Tool available to collate metrics/performance statistics of OpenGL code?

Is there a tool available for testing how efficient my OpenGL code is?

I thought of using a simple profiler like hprof but I’m unsure whether that will work because OpenGL’s graphics is pipelined so it might not give me accurate readings.

Something that measures the Frames Per Second might be useful…plus any other statistics.

Thank you for your help. I appreciate it. ;D

/Mark

the best tool for this is probably the gDEBugger

http://www.gremedy.com/

but it is commercial.