public class LinuxPerfNormProfiler extends java.lang.Object implements ExternalProfiler
Modifier and Type | Class and Description |
---|---|
(package private) static class |
LinuxPerfNormProfiler.PerfResult |
(package private) static class |
LinuxPerfNormProfiler.PerfResultAggregator |
Modifier and Type | Field and Description |
---|---|
private int |
delayMs |
private long |
highPassFilter |
private int |
incrementInterval |
private static java.lang.String[] |
interestingEvents
This is a non-exhaustive list of events we care about.
|
private boolean |
isIncrementable |
private java.util.Collection<java.lang.String> |
supportedEvents |
private boolean |
useDefaultStats |
Constructor and Description |
---|
LinuxPerfNormProfiler(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.
|
java.util.Collection<java.lang.String> |
addJVMOptions(BenchmarkParams params)
Add JVM these options to the run.
|
java.util.Collection<? extends Result> |
afterTrial(BenchmarkResult br,
long pid,
java.io.File stdOut,
java.io.File stdErr)
Run this code after the trial is done.
|
boolean |
allowPrintErr()
If target VM communicates with profiler with standard error, this method
can be used to shun the output to console.
|
boolean |
allowPrintOut()
If target VM communicates with profiler with standard output, this method
can be used to shun the output to console.
|
void |
beforeTrial(BenchmarkParams params)
Run this code before starting the trial.
|
long |
getDelay(BenchmarkResult br) |
java.lang.String |
getDescription()
Human-readable one-line description of the profiler.
|
private java.util.Collection<? extends Result> |
process(BenchmarkResult br,
java.io.File stdOut,
java.io.File stdErr) |
private static final java.lang.String[] interestingEvents
private final int delayMs
private final boolean useDefaultStats
private final long highPassFilter
private final int incrementInterval
private final boolean isIncrementable
private final java.util.Collection<java.lang.String> supportedEvents
public LinuxPerfNormProfiler(java.lang.String initLine) throws ProfilerException
ProfilerException
public java.util.Collection<java.lang.String> addJVMInvokeOptions(BenchmarkParams params)
ExternalProfiler
addJVMInvokeOptions
in interface ExternalProfiler
params
- benchmark parameters used for current launchpublic java.util.Collection<java.lang.String> addJVMOptions(BenchmarkParams params)
ExternalProfiler
addJVMOptions
in interface ExternalProfiler
params
- benchmark parameters used for current launchpublic void beforeTrial(BenchmarkParams params)
ExternalProfiler
beforeTrial
in interface ExternalProfiler
params
- benchmark parameters used for current launchpublic java.util.Collection<? extends Result> afterTrial(BenchmarkResult br, long pid, java.io.File stdOut, java.io.File stdErr)
ExternalProfiler
afterTrial
in interface ExternalProfiler
br
- 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 boolean allowPrintOut()
ExternalProfiler
allowPrintOut
in interface ExternalProfiler
public boolean allowPrintErr()
ExternalProfiler
allowPrintErr
in interface ExternalProfiler
public java.lang.String getDescription()
Profiler
getDescription
in interface Profiler
public long getDelay(BenchmarkResult br)
private java.util.Collection<? extends Result> process(BenchmarkResult br, java.io.File stdOut, java.io.File stdErr)