mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-18 16:45:12 +01:00
c87f981d6a
This commit is a squash of 8 optimization commits to TPSCounter. 1. Extracted duplicate code in TPSCounters to ServerSensors. - TPSCounter tasks now live inside common module - ServerTPSCounter and ProxyTPSCounter - Gathering methods are implemented with ServerSensor interface: Player count, TPS, Entity count, Chunk count - ServerProperties#getOnlinePlayers was replaced with ServerSensor - Fixed sonar smells: "Hiding field" in TPSStoreTransaction & NavLink 2. Optimizations down to 0.15ms / run - Optimized entity+chunk count (same for loop) - Added warm-up for system resource methods - Removed Stream API usages - Removed List copy operation - Entities & chunks only count once per minute - CPU & RAM averages now produced with Average class - Maximum player count per minute now produced with Maximum class Affects issues: - Fixed #1289 |
||
---|---|---|
.. | ||
src | ||
build.gradle |