Profiling DRI drivers
José Fonseca
jrfonseca at tungstengraphics.com
Tue Nov 20 07:50:27 PST 2007
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
More information about the xorg
mailing list