Conversation
Previously these were in SQLDB.java, which was also ignored, no longer is.
- Support raw net.minecraft.server package in reflection - The field contains nanos instead of millis, format accordingly.
Collaborator
Author
|
How fun googling how to fix things and finding your own post as the answer https://www.spigotmc.org/threads/1-17-nms-how-to-get-instance-of-minecraftserver.514024/ 😆 |
|
Hello,
|
Collaborator
Author
|
This task is run once per second and takes 8 milliseconds due to reflective access to mspt array in MinecraftServer as there isn't a method to access it in Spigot Please open a ticket since PR comments can't be tracked as something to fix |
VRXDev2
pushed a commit
to VRXDev2/Plan
that referenced
this pull request
Jan 5, 2026
* Spigot MSPT method * Implement MSPT for Paper, Sponge & Fabric * Add average mspt and 95th percentile mspt to TPS object * Add average and 95th percentile MSPT to database * Update checkstyle to ignore ClassFanOutComplexity for Patches.java Previously these were in SQLDB.java, which was also ignored, no longer is. * Improve gathering accuracy by using direct data rather than aggregating averages * Fix TPSQueries typo * Add language for MSPT and a couple of small fixes * Correct mspt access - Support raw net.minecraft.server package in reflection - The field contains nanos instead of millis, format accordingly. * Add mspt to server graphs * Add MSPT to performance as numbers, insights and network performance * Increase all performance graph mspt softmax to 50 * Fix label * Add mspt 95th percentile to Network performance * Add functions to update themes with missing use cases and mspt colors to themes * Remove outdated comment * Map nanos to millis earlier so that overflows are avoided * Add MSPT specific performance graph permission * Fix sponge and fabric MSPT gathering * Fix spigot MSPT field access Affects issues: - Close plan-player-analytics#2279
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
This PR adds MSPT statistics to Performance tabs
TODO
java.lang.ClassCastException: class net.minecraft.class_3176 cannot be cast to class net.playeranalytics.plan.gathering.mixin.TickTimesAccess (net.minecraft.class_3176 and net.playeranalytics.plan.gathering.mixin.TickTimesAccess are in unnamed module of loader 'knot' @cb644e)Affects issues: