mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-26 06:53:01 +00:00
Reset will also affect nextgen profilers.
This commit is contained in:
1 parent
c0519000b2
commit
e50fcd7b85
3 files changed
+12
-2
No files matched your search
@@ -18,6 +18,7 @@ public class MetaManager {
|
||||
TickHandlerManager.endStats.clear();
|
||||
ProfilerRegistrar.turnOff();
|
||||
|
||||
ProfilerSection.resetAll();
|
||||
ProfilerSection.desactivateAll();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,13 +14,18 @@ public class ProfilerDimBlockTick implements IProfilerBase {
|
||||
public HashMap<Integer, DescriptiveStatistics> data = new HashMap<Integer, DescriptiveStatistics>();
|
||||
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
this.data.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(Object key) {
|
||||
Integer dim = (Integer)key;
|
||||
if (DimensionManager.getWorld(dim).isRemote) return;
|
||||
|
||||
if (!data.containsKey(dim))
|
||||
data.put(dim, new DescriptiveStatistics(20));
|
||||
data.put(dim, new DescriptiveStatistics());
|
||||
clock.start();
|
||||
}
|
||||
|
||||
@@ -44,5 +49,4 @@ public class ProfilerDimBlockTick implements IProfilerBase {
|
||||
public void start(Object key1, Object key2) {}
|
||||
@Override
|
||||
public void stop(Object key1, Object key2) {}
|
||||
|
||||
}
|
||||
@@ -12,6 +12,11 @@ public class ProfilerDimTick implements IProfilerBase {
|
||||
private Clock clock = new Clock();
|
||||
public HashMap<Integer, DescriptiveStatistics> data = new HashMap<Integer, DescriptiveStatistics>();
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
this.data.clear();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start(Object key) {
|
||||
World world = (World)key;
|
||||
|
||||
Reference in new issue
Block a user