Fixed tracing span ordering issue

This commit is contained in:
Joshua Barretto 2023-10-17 20:39:42 +01:00
parent e344277b08
commit cb2de226a2

View File

@ -72,6 +72,7 @@ pub fn run(mut global_state: GlobalState, event_loop: EventLoop, server: Option<
match event {
winit::event::Event::NewEvents(_) => {
event_span.take();
prof_span!(span, "Process Events");
event_span = Some(span);
},