mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-10 17:56:03 +00:00
implement Profiler#reset
This commit is contained in:
@@ -18,7 +18,5 @@ public interface Profiler {
|
||||
return new ProfileFrame(() -> pop(frame));
|
||||
}
|
||||
|
||||
default void reset() {
|
||||
// todo: impl
|
||||
}
|
||||
void reset();
|
||||
}
|
||||
|
||||
@@ -83,4 +83,9 @@ public class ProfilerImpl implements Profiler {
|
||||
}));
|
||||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void reset() {
|
||||
accessibleThreadMaps.forEach(Map::clear);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user