perfetto: do nothing if tracing is not active
this avoids spawning the perfetto thread if perfetto isn't actually being used (but is enabled at build time)
there are some strange interactions with perfetto where it can unexpectedly deadlock a process (e.g., Xwayland) in certain scenarios, and since those scenarios aren't typically ones where perfetto is active anyway, this sidesteps the issue