I know that I "shouldn't do this", but I fiddle with the ClassLoaders a bit and JProfiler doesn't like that and it hasn't to do anything with what I want to profile, so just stick to the question, please :).
How do I detect from my application that it was started with JProfiler? Or maybe just that JProfiler is currently connected?