This should make tracking down the root cause of the event loop pauses on X11 easier. And the infrastructure should come in handy in the future as well.