mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 22:40:23 +00:00
synchronize profiler queries
This commit is contained in:
1 parent
570a3bccc5
commit
fc50f53944
1 file changed
+2
@@ -106,6 +106,7 @@ public class ProfilerImpl implements Profiler {
|
||||
@Override
|
||||
public Map<String, Timings> getTimings() {
|
||||
Map<String, Timings> map = new HashMap<>();
|
||||
synchronized(accessibleThreadMaps) {
|
||||
accessibleThreadMaps.forEach(smap -> smap.forEach((key, list) -> {
|
||||
String[] keys = key.split("\\.");
|
||||
Timings timings = map.computeIfAbsent(keys[0], id -> new Timings());
|
||||
@@ -114,6 +115,7 @@ public class ProfilerImpl implements Profiler {
|
||||
}
|
||||
list.forEach(timings::addTime);
|
||||
}));
|
||||
}
|
||||
return map;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user