Improved tracing support for gestures