public class ProfilerFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,java.lang.Class<? extends Profiler>> |
BUILT_IN |
Constructor and Description |
---|
ProfilerFactory() |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<java.lang.Class<? extends Profiler>> |
getDiscoveredProfilers() |
private static Profiler |
getProfiler(ProfilerConfig cfg) |
static Profiler |
getProfilerOrException(ProfilerConfig cfg) |
private static Profiler |
getProfilerOrNull(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 Profiler |
instantiate(ProfilerConfig cfg,
java.lang.Class<? extends Profiler> p) |
static void |
listProfilers(java.io.PrintStream out) |
private static final java.util.Map<java.lang.String,java.lang.Class<? extends Profiler>> BUILT_IN
public static Profiler getProfilerOrException(ProfilerConfig cfg) throws ProfilerException
ProfilerException
private static Profiler getProfilerOrNull(ProfilerConfig cfg)
private static Profiler getProfiler(ProfilerConfig cfg) throws java.lang.Exception
java.lang.Exception
private static Profiler instantiate(ProfilerConfig cfg, java.lang.Class<? extends Profiler> p) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static java.util.List<ExternalProfiler> getSupportedExternal(java.util.Collection<ProfilerConfig> cfg)
public static java.util.List<InternalProfiler> getSupportedInternal(java.util.Collection<ProfilerConfig> cfg)
public static void listProfilers(java.io.PrintStream out)
private static java.util.List<java.lang.Class<? extends Profiler>> getDiscoveredProfilers()