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

View File

@@ -18,7 +18,5 @@ public interface Profiler {
return new ProfileFrame(() -> pop(frame));
}
default void reset() {
// todo: impl
}
void reset();
}

View File

@@ -83,4 +83,9 @@ public class ProfilerImpl implements Profiler {
}));
return map;
}
@Override
public void reset() {
accessibleThreadMaps.forEach(Map::clear);
}
}