gui: Add tracing support