public class LinuxPerfProfiler extends Object implements ExternalProfiler
| Constructor and Description |
|---|
LinuxPerfProfiler(String initLine) |
| 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.
|
String |
getDescription()
Human-readable one-line description of the profiler.
|
public LinuxPerfProfiler(String initLine) throws ProfilerException
ProfilerExceptionpublic Collection<String> addJVMInvokeOptions(BenchmarkParams params)
ExternalProfileraddJVMInvokeOptions in interface ExternalProfilerparams - benchmark parameters used for current launchpublic Collection<String> addJVMOptions(BenchmarkParams params)
ExternalProfileraddJVMOptions in interface ExternalProfilerparams - benchmark parameters used for current launchpublic void beforeTrial(BenchmarkParams params)
ExternalProfilerbeforeTrial in interface ExternalProfilerparams - benchmark parameters used for current launchpublic Collection<? extends Result> afterTrial(BenchmarkResult br, long pid, File stdOut, File stdErr)
ExternalProfilerafterTrial in interface ExternalProfilerbr - 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()
ExternalProfilerallowPrintOut in interface ExternalProfilerpublic boolean allowPrintErr()
ExternalProfilerallowPrintErr in interface ExternalProfilerpublic String getDescription()
ProfilergetDescription in interface ProfilerCopyright © 2012-2015 Oracle. All Rights Reserved.