Starting with the Developer 2/07 release, the X Window System servers include a User-land Statically Defined Tracing (USDT) DTrace provider for instrumenting X11 client connections. The X Window System servers include the following:
Xorg
Xsun
Xprt
Xnest
Xvfb
For more information about available probes and their arguments, and sample dtrace scripts using them, see http://people.freedesktop.org/.