GNOME Bugzilla – Bug 708178
GMainloop time budget
Last modified: 2013-09-16 18:08:47 UTC
I've been interested in looking at what blocks my mainloop, by basically saying, "This is how much time I have to run a GSource, if it goes above a given budget in milliseconds, just dump me a backtrace when the budget is elapsed.". Here is an implementation of that idea. I don't know if anyone is interested, but it's worth sharing. Obviously it's posix specific but the code is flagged appropriately.
Created attachment 255055 [details] [review] gmain: add a time budget warning mechanism
there's already a bug about this... it never really got anywhere. feel free to attach your patch there and try to prod people to do something with one of the patches... *** This bug has been marked as a duplicate of bug 588139 ***