public class LinuxPerfNormProfiler extends Object implements ExternalProfiler
| Constructor and Description |
|---|
LinuxPerfNormProfiler(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.
|
long |
getDelay(BenchmarkResult br) |
String |
getDescription()
Human-readable one-line description of the profiler.
|
public LinuxPerfNormProfiler(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 Profilerpublic long getDelay(BenchmarkResult br)
Copyright © 2012-2015 Oracle. All Rights Reserved.