Debugging main loop wakeups
- Date: Fri, 24 Nov 2017 13:28:28 +1100
- From: Michael Gratton <mike@xxxxxxx>
- Subject: Debugging main loop wakeups
Hi all,What's an effective way to debug GLib main loop event sources? A person using Geary has reported that they are getting ~60 wakeups per second, and from strace this looks like it's the main loop's calls to poll() returning that are causing this. I'd like to work out what sources are causing the wakeups so I can work out how to solve the issue, but am having trouble working out how to do that.
I've tried setting a break on poll() in gdb, but it seems none of the fd's ever show any revents. I've tried using sysprof, but that just tells me g_main_context_prepare() and g_source_iter_next() is the cause of most of Geary's CPU utilisation when it's otherwise idle. I've also tried to use Dunfell, but it fails with some obscure system tap error.
Any suggestions? Cheers! //Mike  - <https://bugzilla.gnome.org/show_bug.cgi?id=783025#c6> -- ⊨ Michael Gratton, Percept Wrangler. ⚙ <http://mjog.vee.net/> _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx https://mail.gnome.org/mailman/listinfo/gtk-list