public class LinuxPerfAsmProfiler extends AbstractPerfAsmProfiler
AbstractPerfAsmProfiler.ASMLine, AbstractPerfAsmProfiler.Assembly, AbstractPerfAsmProfiler.GeneratedRegion, AbstractPerfAsmProfiler.MethodDesc, AbstractPerfAsmProfiler.NativeRegion, AbstractPerfAsmProfiler.PerfEvents, AbstractPerfAsmProfiler.PerfResult, AbstractPerfAsmProfiler.PerfResultAggregator, AbstractPerfAsmProfiler.Region, AbstractPerfAsmProfiler.UnknownRegion
Modifier and Type | Field and Description |
---|---|
private joptsimple.OptionSpec<java.lang.Long> |
optFrequency |
private long |
sampleFrequency |
events, hsLog, perfBinData, perfParsedData, set
Constructor and Description |
---|
LinuxPerfAsmProfiler(java.lang.String initLine) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
addJVMInvokeOptions(BenchmarkParams params)
Prepend JVM invocation with these commands.
|
protected void |
addMyOptions(joptsimple.OptionParser parser) |
java.lang.String |
getDescription()
Human-readable one-line description of the profiler.
|
protected void |
parseEvents()
Parse profiler events from binary to text form.
|
protected java.lang.String |
perfBinaryExtension()
Get perf binary data extension (optional).
|
protected AbstractPerfAsmProfiler.PerfEvents |
readEvents(double skipSec)
Read parsed events.
|
addJVMOptions, afterTrial, allowPrintErr, allowPrintOut, beforeTrial, makeRegions, printDottedLine, printDottedLine, readAssembly, splitAssembly
private final long sampleFrequency
private joptsimple.OptionSpec<java.lang.Long> optFrequency
public LinuxPerfAsmProfiler(java.lang.String initLine) throws ProfilerException
ProfilerException
protected void addMyOptions(joptsimple.OptionParser parser)
addMyOptions
in class AbstractPerfAsmProfiler
public java.util.Collection<java.lang.String> addJVMInvokeOptions(BenchmarkParams params)
ExternalProfiler
params
- benchmark parameters used for current launchpublic java.lang.String getDescription()
Profiler
protected void parseEvents()
AbstractPerfAsmProfiler
parseEvents
in class AbstractPerfAsmProfiler
protected AbstractPerfAsmProfiler.PerfEvents readEvents(double skipSec)
AbstractPerfAsmProfiler
readEvents
in class AbstractPerfAsmProfiler
skipSec
- Seconds to skip.protected java.lang.String perfBinaryExtension()
AbstractPerfAsmProfiler
perfBinaryExtension
in class AbstractPerfAsmProfiler