public abstract class AbstractPerfAsmProfiler extends Object implements ExternalProfiler
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractPerfAsmProfiler.PerfEvents |
| Modifier and Type | Field and Description |
|---|---|
protected String |
hsLog |
protected String |
perfBinData |
protected String |
perfParsedData |
protected String[] |
tracedEvents |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPerfAsmProfiler(String[] events) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abstract boolean |
checkSupport(List<String> msgs)
Check the support for a given profiler.
|
protected abstract void |
parseEvents()
Parse profiler events from binary to text form.
|
protected abstract String |
perfBinaryExtension()
Get perf binary data extension (optional).
|
protected abstract AbstractPerfAsmProfiler.PerfEvents |
readEvents(double skipSec)
Read parsed events.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddJVMInvokeOptionsgetDescription, labelprotected final String[] tracedEvents
protected String hsLog
protected String perfBinData
protected String perfParsedData
protected AbstractPerfAsmProfiler(String[] events) throws IOException
IOExceptionpublic abstract boolean checkSupport(List<String> msgs)
ProfilercheckSupport in interface Profilermsgs - where to put the diagnostic messagespublic 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 ExternalProfilerprotected abstract void parseEvents()
protected abstract AbstractPerfAsmProfiler.PerfEvents readEvents(double skipSec)
skipSec - Seconds to skip.protected abstract String perfBinaryExtension()
Copyright © 2012-2015 Oracle. All Rights Reserved.