mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
implement Profiler#reset
This commit is contained in:
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user