Your JVM already ships with a profiler that is safe for production. Since JDK 14, it can also talk to…