Files
Opis/mcp/mobius/opis/data/server/EntUpdateProfiler.java
T
ProfMobius d8dc1af510 CoordinatesChunk can now use some metadata for various purposes (right now, will be used for ChunkLoaded/Forced).
Finer profiling of the worldTick. Will be reworked later.
Packets with a size > 32000 are dropped before being sent and print an error to the server console.
2014-03-25 18:39:46 +01:00

25 lines
731 B
Java

package mcp.mobius.opis.data.server;
import mcp.mobius.mobiuscore.profiler.IProfilerEntUpdate;
import mcp.mobius.opis.data.holders.stats.StatsWorld;
import mcp.mobius.opis.data.managers.GlobalTimingManager;
public class EntUpdateProfiler extends AbstractProfiler implements IProfilerEntUpdate {
//private static EntUpdateProfiler _instance = new EntUpdateProfiler();
//public static EntUpdateProfiler instance() {return _instance;}
//public StatsBase stats = new StatsBase();
@Override
public void EntUpdateStart(int id) {
this.clock.start();
}
@Override
public void EntUpdateEnd(int id) {
this.clock.stop();
GlobalTimingManager.addStat(id, this.clock.timeDelta, GlobalTimingManager.entUpdateStats);
}
}