fix stack size assumption at profiler start

This commit is contained in:
dfsek committed 2021-04-25 17:11:50 -07:00
1 parent 5d3a2b6e84
commit 8823d6d65e
2 files changed
+20 -5

No files matched your search

@@ -7,7 +7,7 @@ public class ProfilerTest {
private static final Profiler PROFILER = new ProfilerImpl();
//@Test
public static void main(String... a) throws InterruptedException {
PROFILER.start();
//PROFILER.start();
for(int i = 0; i < 1000; i++) {
doThing();
}
@@ -20,6 +20,14 @@ public class ProfilerTest {
doOtherThing();
}
PROFILER.stop();
PROFILER.push("thing");
PROFILER.push("thing2");
PROFILER.start();
PROFILER.pop("thing2");
PROFILER.pop("thing");
PROFILER.push("thing4");
PROFILER.pop("thing4");
PROFILER.getTimings().forEach((id, timings) -> {
System.out.println(id + ": " + timings.toString());
});