Ross suggested adding a feature to show when your main loop has been blocked. I borrowed some code from libsocialweb to do this. The orange blocks are periods of time when the main loop was delayed for more than 10 milliseconds. Probably useful for people trying to have high frame-rate/smooth animations.


Comments (4)
Also useful for people writing single-threaded DBus services, where you don’t want to end up blocking in a handler.
Nice! Does this work for more than one mainloop in the application (secondary mainloop for background worker thread seperated from the GUI thread)?
Perfkit is is starting to look like a really useful tool! Keep up the progress
@lariq
Not at the moment as it injects itself via GTK_MODULES environment variable into the default GMainContext.