47814fab71
Scoped traces are less error prone, and they can still be ended prematurely if needed (this commit makes that work). The only case this doesn't support is starting a trace inside a scope but ending outside, but this is pretty unusual, plus we have anchored traces for a limited variation of that. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3396>