
Don't try to handle things by threads enabling/disabling the main trace context on-demand, just have a clear start/stop API. For the D-Bus API, it becomes more straight forward, and for the persistent variant too, as it avoids having to pass garbage input when it's known that arguments will be discarded. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2998>