GNOME Bugzilla – Bug 710741
some mainloop instrumentation
Last modified: 2013-11-23 05:23:05 UTC
Created attachment 257942 [details] [review] patch Here is a patch that adds dtrace/systemtap markers around the dispatching of sources in gmain.c. Together with a script like the attached one, it produces output like this: Source Total (us) Count Avg (us) unnamed 2972 58 51 GDK X11 Event source (:0) 84 1 84 which gets updated once every second. Adding names to more sources will make this much more useful.
Created attachment 257943 [details] stap script
Created attachment 258009 [details] [review] tracking source addition/removal
Review of attachment 258009 [details] [review]: Makes sense to me!