public interface Profiler
Profiler classes are expected to provide either a non-arg constructor,
or a constructor accepting single String argument, as the option line.
The treatment of option line is unspecified, and can be handled in
profiler-specific way. Profiler constructors can throw
ProfilerException
if profiler cannot
operate, either because of misconfiguration, or help message requested.
The message in ProfilerException
should
clearly articulate the reason.
JMH will try to discover profiler implementations using the SPI mechanism. Note: discoverable implementations must provide a no-arg constructor for initial discovery; the instance created during discovery will be rejected. If implementation would have a constructor accepting the String option line, it would be preferred for subsequent instantiation over the no-arg constructor.
Profilers normally implement one of the subinterfaces.
ExternalProfiler
,
InternalProfiler
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Human-readable one-line description of the profiler.
|
String getDescription()
Copyright © 2012–2021 Oracle. All rights reserved.