public class LinuxPerfProfilerextends Objectimplements ExternalProfiler
Constructor and Description |
---|
LinuxPerfProfiler() |
Modifier and Type | Method and Description |
---|---|
Collection<String> | addJVMInvokeOptions(BenchmarkParams params) Prepend JVM invocation with these commands. |
Collection<String> | addJVMOptions(BenchmarkParams params) Add JVM these options to the run. |
Collection<? extends Result> | afterTrial(BenchmarkResult br, long pid, File stdOut, 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. |
boolean | checkSupport(List<String> msgs) Check the support for a given profiler. |
String | getDescription() Human-readable one-line description of the profiler. |
String | label() Unique label for the profiler. |
public Collection<String> addJVMInvokeOptions(BenchmarkParams params)
ExternalProfiler
addJVMInvokeOptions
in interface ExternalProfiler
params
- benchmark parameters used for current launchpublic Collection<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 Collection<? extends Result> afterTrial(BenchmarkResult br, long pid, File stdOut, 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 boolean checkSupport(List<String> msgs)
Profiler
checkSupport
in interface Profiler
msgs
- where to put the diagnostic messagespublic String getDescription()
Profiler
getDescription
in interface Profiler
Copyright © 2012-2015 Oracle. All Rights Reserved.