OpenGL profiling question

Hi,

I want to profile my OpenGL code using glFinish(). I want to perform benchmarking for download and net compute time. I understand glFinish() is the command that performs synchronization between the client and the server. I am a little bit confused as where should I place my profiler to obtain benchmark results.

In order to benchmark for download (CPU->GPU), I believe that I should wrap my profiler around glTexImage2D() calls. This will give me the net download speed.

And in order to benchmark for compute on GPU, I believe that I should wrap my profiler around glBegin()…glEnd() commands as these commands perform the net rendering.

I would really appreciate if someone could correct me in case I am wrong and elaborate a litte bit on the issue.

Thanks.