Yeah this is an odd one Got asked
Is there a way to tell in code if the profiler is on?
Turns out you sort of can