public interface ExternalProfiler extends Profiler
External profilers usually call external tools to get the performance data. It is futile to query any internal JVM facilities in external profiler Java code, because it may not be executed in the benchmarked VM at all.
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 benchmarkParams)
Run this code before starting the trial.
|
getDescription
Collection<String> addJVMInvokeOptions(BenchmarkParams params)
params
- benchmark parameters used for current launchCollection<String> addJVMOptions(BenchmarkParams params)
params
- benchmark parameters used for current launchvoid beforeTrial(BenchmarkParams benchmarkParams)
benchmarkParams
- benchmark parameters used for current launchCollection<? extends Result> afterTrial(BenchmarkResult br, long pid, File stdOut, File stdErr)
br
- benchmark result that was the result of the trialpid
- pid that the forked JVM hadstdOut
- file containing the standard output from the benchmark JVMstdErr
- file containing the standard error from the benchmark JVMboolean allowPrintOut()
boolean allowPrintErr()
Copyright © 2012–2020 Oracle. All rights reserved.