Package org.openjdk.jmh.profile
Class ProfilerFactory
- java.lang.Object
-
- org.openjdk.jmh.profile.ProfilerFactory
-
public class ProfilerFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProfilerFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.util.List<java.lang.Class<? extends Profiler>>getDiscoveredProfilers()private static ProfilergetProfiler(ProfilerConfig cfg)static ProfilergetProfilerOrException(ProfilerConfig cfg)private static ProfilergetProfilerOrNull(ProfilerConfig cfg)static java.util.List<ExternalProfiler>getSupportedExternal(java.util.Collection<ProfilerConfig> cfg)static java.util.List<InternalProfiler>getSupportedInternal(java.util.Collection<ProfilerConfig> cfg)private static Profilerinstantiate(ProfilerConfig cfg, java.lang.Class<? extends Profiler> p)static voidlistProfilers(java.io.PrintStream out)
-
-
-
Field Detail
-
BUILT_IN
private static final java.util.Map<java.lang.String,java.lang.Class<? extends Profiler>> BUILT_IN
-
-
Method Detail
-
getProfilerOrException
public static Profiler getProfilerOrException(ProfilerConfig cfg) throws ProfilerException
- Throws:
ProfilerException
-
getProfilerOrNull
private static Profiler getProfilerOrNull(ProfilerConfig cfg)
-
getProfiler
private static Profiler getProfiler(ProfilerConfig cfg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
instantiate
private static Profiler instantiate(ProfilerConfig cfg, java.lang.Class<? extends Profiler> p) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException
-
getSupportedExternal
public static java.util.List<ExternalProfiler> getSupportedExternal(java.util.Collection<ProfilerConfig> cfg)
-
getSupportedInternal
public static java.util.List<InternalProfiler> getSupportedInternal(java.util.Collection<ProfilerConfig> cfg)
-
listProfilers
public static void listProfilers(java.io.PrintStream out)
-
getDiscoveredProfilers
private static java.util.List<java.lang.Class<? extends Profiler>> getDiscoveredProfilers()
-
-