Package co.aikar.timings
Class TimingsManager
java.lang.Object
co.aikar.timings.TimingsManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FullServerTickHandler
static final Timing
static boolean
static final co.aikar.timings.TimingHandler
static String
-
Method Summary
Modifier and TypeMethodDescriptiongetCommandTiming
(@Nullable String pluginName, @NotNull Command command) Due to access restrictions, we need a helper method to get a Command TimingHandler with String groupgetPluginByClassloader
(@Nullable Class<?> clazz) Looks up the class loader for the specified class, and if it is a PluginClassLoader, return the Plugin that created this class.
-
Field Details
-
FULL_SERVER_TICK
-
TIMINGS_TICK
public static final co.aikar.timings.TimingHandler TIMINGS_TICK -
PLUGIN_GROUP_HANDLER
-
url
-
privacy
public static boolean privacy
-
-
Method Details
-
getCommandTiming
@NotNull public static @NotNull Timing getCommandTiming(@Nullable @Nullable String pluginName, @NotNull @NotNull Command command) Due to access restrictions, we need a helper method to get a Command TimingHandler with String group
Plugins should never call this- Parameters:
pluginName
- Plugin this command is associated withcommand
- Command to get timings for- Returns:
- TimingHandler
-
getPluginByClassloader
Looks up the class loader for the specified class, and if it is a PluginClassLoader, return the Plugin that created this class.- Parameters:
clazz
- Class to check- Returns:
- Plugin if created by a plugin
-