I spent 10 years on commercial profiles of Java professionals, for use in both development and production.
The short answer is yes, you are right. You cannot pull it out. And even if you could, put anything other than trivial tools in a method that is often called:
- Change the way JIT is handled in such a way
distorts your performance indicators in hard to predict (but usually not useful in terms of performance tuning).
( , , , JIT , , CPU , L1 .. ..)
(, , " " ?). , , API JDBC, .
Java ( Java, , , ,...), . , , , 7 - .
"" - . JVMTI , , . , (, , , , -- ) - - .