Package co.aikar.timings
Class TimingsManager
java.lang.Object
co.aikar.timings.TimingsManager
Deprecated, for removal: This API element is subject to removal in a future version.
Timings will likely be replaced with Spark in the future
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FullServerTickHandler
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.static final Timing
Deprecated, for removal: This API element is subject to removal in a future version.static boolean
Deprecated, for removal: This API element is subject to removal in a future version.static final co.aikar.timings.TimingHandler
Deprecated, for removal: This API element is subject to removal in a future version.static String
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptiongetCommandTiming
(@Nullable String pluginName, @NotNull Command command) Deprecated, for removal: This API element is subject to removal in a future version.Due to access restrictions, we need a helper method to get a Command TimingHandler with String groupgetPluginByClassloader
(@Nullable Class<?> clazz) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version. -
TIMINGS_TICK
public static final co.aikar.timings.TimingHandler TIMINGS_TICKDeprecated, for removal: This API element is subject to removal in a future version. -
PLUGIN_GROUP_HANDLER
Deprecated, for removal: This API element is subject to removal in a future version. -
url
Deprecated, for removal: This API element is subject to removal in a future version. -
privacy
public static boolean privacyDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getCommandTiming
@NotNull public static @NotNull Timing getCommandTiming(@Nullable @Nullable String pluginName, @NotNull @NotNull Command command) Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-