Package co.aikar.timings
Class TimingsManager
java.lang.Object
co.aikar.timings.TimingsManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final FullServerTickHandlerstatic final Timingstatic booleanstatic final co.aikar.timings.TimingHandlerstatic String
- 
Method SummaryModifier 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_TICKpublic static final co.aikar.timings.TimingHandler TIMINGS_TICK
- 
PLUGIN_GROUP_HANDLER
- 
url
- 
privacypublic 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 with
- command- Command to get timings for
- Returns:
- TimingHandler
 
- 
getPluginByClassloaderLooks 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
 
 
-