Package org.openjdk.jmh.profile
Class LinuxPerfAsmProfiler
java.lang.Object
org.openjdk.jmh.profile.AbstractPerfAsmProfiler
org.openjdk.jmh.profile.LinuxPerfAsmProfiler
- All Implemented Interfaces:
ExternalProfiler,Profiler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openjdk.jmh.profile.AbstractPerfAsmProfiler
AbstractPerfAsmProfiler.PerfEvents -
Field Summary
Fields inherited from class org.openjdk.jmh.profile.AbstractPerfAsmProfiler
hsLog, perfBinData, perfParsedData, requestedEventNames, set -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddJVMInvokeOptions(BenchmarkParams params) Prepend JVM invocation with these commands.protected voidaddMyOptions(joptsimple.OptionParser parser) Human-readable one-line description of the profiler.protected voidParse profiler events from binary to text form.protected StringGet perf binary data extension (optional).protected AbstractPerfAsmProfiler.PerfEventsreadEvents(double skipMs, double lenMs) Read parsed events.stripEventNames(List<String> events) Some profilers strip modifiers from event names.Methods inherited from class org.openjdk.jmh.profile.AbstractPerfAsmProfiler
addJVMOptions, afterTrial, allowPrintErr, allowPrintOut, beforeTrial
-
Constructor Details
-
LinuxPerfAsmProfiler
- Throws:
ProfilerException
-
-
Method Details
-
addMyOptions
protected void addMyOptions(joptsimple.OptionParser parser) - Specified by:
addMyOptionsin classAbstractPerfAsmProfiler
-
addJVMInvokeOptions
Description copied from interface:ExternalProfilerPrepend JVM invocation with these commands.- Parameters:
params- benchmark parameters used for current launch- Returns:
- commands to prepend for JVM launch
-
getDescription
Description copied from interface:ProfilerHuman-readable one-line description of the profiler.- Returns:
- description
-
parseEvents
protected void parseEvents()Description copied from class:AbstractPerfAsmProfilerParse profiler events from binary to text form.- Specified by:
parseEventsin classAbstractPerfAsmProfiler
-
readEvents
Description copied from class:AbstractPerfAsmProfilerRead parsed events.- Specified by:
readEventsin classAbstractPerfAsmProfiler- Parameters:
skipMs- Milliseconds to skip.lenMs- Milliseconds to capture after skip- Returns:
- Events.
-
perfBinaryExtension
Description copied from class:AbstractPerfAsmProfilerGet perf binary data extension (optional).- Specified by:
perfBinaryExtensionin classAbstractPerfAsmProfiler- Returns:
- Extension.
-
stripEventNames
Description copied from class:AbstractPerfAsmProfilerSome profilers strip modifiers from event names. To properly match the events in shared code, we need to know what those events were stripped to.- Overrides:
stripEventNamesin classAbstractPerfAsmProfiler- Returns:
- stripped events
-