xlibtrace displays the interaction between X11client programs and the X11 client shared library(libX11.so) by showing the Xlib calls that aremade. Output is shown in a style similar tostrace(1). It works by using the $LD_PRELOADdynamic linker option to insert itself between thetarget X11 client program and libX11.so. Thisallows it to "intercept" all calls to X functions,whereupon it has the opportunity to print the nameof the function being called, along with anyarguments and return value. This can beparticularly useful when analyzing the behavior ofclosed-source X11 programs.
More...