Add a tracing API for the QML engine