public final class JavaFlightRecorderProfiler extends Object implements ExternalProfiler, InternalProfiler
| Modifier and Type | Class and Description |
|---|---|
static interface |
JavaFlightRecorderProfiler.PostProcessor |
| Constructor and Description |
|---|
JavaFlightRecorderProfiler(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> |
afterIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams,
IterationResult iterationResult)
Run this code after a benchmark iteration finished
|
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 |
beforeIteration(BenchmarkParams benchmarkParams,
IterationParams iterationParams)
Run this code before starting the next benchmark iteration.
|
void |
beforeTrial(BenchmarkParams benchmarkParams)
Run this code before starting the trial.
|
String |
getDescription()
Human-readable one-line description of the profiler.
|
public JavaFlightRecorderProfiler(String initLine) throws ProfilerException
ProfilerExceptionpublic void beforeIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams)
InternalProfilerbeforeIteration in interface InternalProfilerbenchmarkParams - benchmark parameters used for current launchiterationParams - iteration parameters used for current launchpublic Collection<? extends Result> afterIteration(BenchmarkParams benchmarkParams, IterationParams iterationParams, IterationResult iterationResult)
InternalProfilerafterIteration in interface InternalProfilerbenchmarkParams - benchmark parameters used for current launchiterationParams - iteration parameters used for current launchiterationResult - iteration resultpublic 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 benchmarkParams)
ExternalProfilerbeforeTrial in interface ExternalProfilerbenchmarkParams - 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 trialpid - pid that the forked JVM hadstdOut - 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 © 2025. All rights reserved.