Re: Results on Claasen's -nocairo patches



On 7/13/06, Federico Mena Quintero <federico ximian com> wrote:
On Thu, 2006-07-13 at 09:01 -0500, Matt Hoosier wrote:

> I've done a little bit of benchmarking using the attached program (be

This program makes the same mistake as gtk-perf: it sends the drawing
requests, but doesn't wait for the X server to actually perform them.
So you are essentially profiling Cairo and Xlib.  You aren't seeing
things like "the X server takes 50% of the CPU time while the benchmark
is running".

If you download the gtk+ sources, check out
gtk+/perf/gtkwidgetprofiler.h.  It has the machinery needed to wait for
the server to actually process your requests.

Any chance that this stuff could optionally be installed systemwide as
a library produced during the build? Hacking one's sources into the
gtk/perf directory makes this a little inaccessible right now, and it
looks to me like gtkwidgetprofiler.o isn't buildable outside of the
official source tree (dependency on config.h).


Manu Cornet (on the CC line) is my student for the Summer of Code, and
he's writing a torture test for theme engines that uses
GtkWidgetProfiler appropriately.  This can be used both as a benchmark,
and also a way to ensure the robustness of theme engines.

  Federico





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]