implement Profiler#reset

This commit is contained in:
dfsek
2021-04-26 19:01:53 -07:00
parent 8737b0d984
commit 632f898dc8
2 changed files with 6 additions and 3 deletions
@@ -18,7 +18,5 @@ public interface Profiler {
return new ProfileFrame(() -> pop(frame)); return new ProfileFrame(() -> pop(frame));
} }
default void reset() { void reset();
// todo: impl
}
} }
@@ -83,4 +83,9 @@ public class ProfilerImpl implements Profiler {
})); }));
return map; return map;
} }
@Override
public void reset() {
accessibleThreadMaps.forEach(Map::clear);
}
} }