Is there an existing way to detect from code whether the profiler is attached? Or maybe to respond to it attaching/removing itself?
We have code that generates error messages specific to our stuff to help designers debug issues, but it ends up being a little bit of a perf sink most of the time, since only sometimes and only by sound designers is the profiler ever connected. But it doesn't seem like we can tell whether it's connected, so we have to either constantly make error messages just in case, or create a flag to the game for audio designers to pass to enable helpful output, the latter of which has many obvious problems.
We'd like a way to determine whether the profiler is attached, or even just respond to it attaching/removing itself so we can track that ourselves.