diff --git a/common/src/main/java/com/dfsek/terra/profiler/Profiler.java b/common/src/main/java/com/dfsek/terra/profiler/Profiler.java index 226b8860e..090839d28 100644 --- a/common/src/main/java/com/dfsek/terra/profiler/Profiler.java +++ b/common/src/main/java/com/dfsek/terra/profiler/Profiler.java @@ -18,7 +18,5 @@ public interface Profiler { return new ProfileFrame(() -> pop(frame)); } - default void reset() { - // todo: impl - } + void reset(); } diff --git a/common/src/main/java/com/dfsek/terra/profiler/ProfilerImpl.java b/common/src/main/java/com/dfsek/terra/profiler/ProfilerImpl.java index 0ffd824e1..f91deecd1 100644 --- a/common/src/main/java/com/dfsek/terra/profiler/ProfilerImpl.java +++ b/common/src/main/java/com/dfsek/terra/profiler/ProfilerImpl.java @@ -83,4 +83,9 @@ public class ProfilerImpl implements Profiler { })); return map; } + + @Override + public void reset() { + accessibleThreadMaps.forEach(Map::clear); + } }