I've been spending a lot of time profiling DRI drivers for Gallium 3D.
I've tried gprof, valgrind, and finally oprofile. Oprofile seems the
best in my opinion for this purpose. (I haven't tried Sysprof yet
though). I wrote about it in http://dri.freedesktop.org/wiki/Profiling
.

I also wrote a script to generate a time-colored call graph from
oprofile output, using graphviz. The script available from
http://code.google.com/p/jrfonseca/wiki/Gprof2Dot . See an output
example of profiling glxgears on Gallium 3D on
http://people.freedesktop.org/~jrfonseca/profiling/oprofile-gallium.png
. The hotter the colour of a function is, more time is spent on that
function and its children.

José Fonseca

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to