public class DTraceAsmProfiler extends AbstractPerfAsmProfiler
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.
AbstractPerfAsmProfiler.PerfEventsevents, hsLog, perfBinData, perfParsedData, set| Constructor and Description |
|---|
DTraceAsmProfiler(String initLine) |
| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
addJVMInvokeOptions(BenchmarkParams params)
Prepend JVM invocation with these commands.
|
protected void |
addMyOptions(joptsimple.OptionParser parser) |
Collection<? extends Result> |
afterTrial(BenchmarkResult br,
long pid,
File stdOut,
File stdErr)
Run this code after the trial is done.
|
void |
beforeTrial(BenchmarkParams params)
Run this code before starting the trial.
|
String |
getDescription()
Human-readable one-line description of the profiler.
|
protected void |
parseEvents()
Parse profiler events from binary to text form.
|
protected String |
perfBinaryExtension()
Get perf binary data extension (optional).
|
protected AbstractPerfAsmProfiler.PerfEvents |
readEvents(double skipMs,
double lenMs)
Read parsed events.
|
addJVMOptions, allowPrintErr, allowPrintOutpublic DTraceAsmProfiler(String initLine) throws ProfilerException
ProfilerExceptionpublic void beforeTrial(BenchmarkParams params)
ExternalProfilerbeforeTrial in interface ExternalProfilerbeforeTrial in class AbstractPerfAsmProfilerparams - benchmark parameters used for current launchpublic Collection<? extends Result> afterTrial(BenchmarkResult br, long pid, File stdOut, File stdErr)
ExternalProfilerafterTrial in interface ExternalProfilerafterTrial in class AbstractPerfAsmProfilerbr - benchmark result that was the result of the trialstdOut - file containing the standard output from the benchmark JVMstdErr - file containing the standard error from the benchmark JVMpublic Collection<String> addJVMInvokeOptions(BenchmarkParams params)
ExternalProfilerparams - benchmark parameters used for current launchpublic String getDescription()
Profilerprotected void addMyOptions(joptsimple.OptionParser parser)
addMyOptions in class AbstractPerfAsmProfilerprotected void parseEvents()
AbstractPerfAsmProfilerparseEvents in class AbstractPerfAsmProfilerprotected AbstractPerfAsmProfiler.PerfEvents readEvents(double skipMs, double lenMs)
AbstractPerfAsmProfilerreadEvents in class AbstractPerfAsmProfilerskipMs - Milliseconds to skip.lenMs - Milliseconds to capture after skipprotected String perfBinaryExtension()
AbstractPerfAsmProfilerperfBinaryExtension in class AbstractPerfAsmProfilerCopyright © 2012–2018 Oracle. All rights reserved.