Godot Engine – Multi-platform 2D and 3D game engine
Make the Perfetto HashSet thread_local to support sub threaded scripts
Kilian Diener00a39333fdc0
diff --git a/core/profiling/profiling.h b/core/profiling/profiling.hindex 0cc83c73126..098ecf45310 100644--- a/core/profiling/profiling.h+++ b/core/profiling/profiling.h@@ -132,7 +132,7 @@ struct PerfettoGroupedEventEnder {__godot_perfetto_zone_##m_group_name._end_now(); \TRACE_EVENT_BEGIN("godot", m_zone_name);-static HashSet<StringName> __tracing_system_call;+static thread_local HashSet<StringName> __tracing_system_call;/*** Script tracing may cross function boundaries (tracing started in the caller script), so the logic below only triggers