Class DTraceAsmProfiler

java.lang.Object
org.openjdk.jmh.profile.AbstractPerfAsmProfiler
org.openjdk.jmh.profile.DTraceAsmProfiler
All Implemented Interfaces:
ExternalProfiler, Profiler

public class DTraceAsmProfiler extends AbstractPerfAsmProfiler
Mac OS X perfasm profiler based on DTrace "profile-n" provider which samples program counter by timer interrupt. Due to DTrace limitations on Mac OS X target JVM cannot be run directly under DTrace control, so DTrace is run separately, all processes are sampled and irrelevant samples are filtered out in readEvents(double, double) stage. Super user privileges are required in order to run DTrace.

If you see a lot of "[unknown]" regions in profile then you are probably hitting kernel code, kernel sampling is not yet supported.

Since:
18/10/2017