From 770fed768790db6c901766424f6717bb5c5e6dc5 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Wed, 12 Apr 2023 12:49:53 +0100 Subject: [PATCH 1/2] Re-add the "frame" span for tracy comparisons --- crates/bevy_app/src/app.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index ae1efa7694334..fe04a1fa3d316 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -238,9 +238,11 @@ impl App { /// /// The active schedule of the app must be set before this method is called. pub fn update(&mut self) { + #[cfg(feature = "trace")] + let _bevy_frame_update_span = info_span!("frame").entered(); { #[cfg(feature = "trace")] - let _bevy_frame_update_span = info_span!("main app").entered(); + let _bevy_main_update_span = info_span!("main app").entered(); self.world.run_schedule_ref(&*self.main_schedule_label); } for (_label, sub_app) in self.sub_apps.iter_mut() { From 6af9a3acbd009e8226e1b8a5c569fdba57d59294 Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 18 Apr 2023 09:45:49 +0100 Subject: [PATCH 2/2] Change span name to "update" --- crates/bevy_app/src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index fe04a1fa3d316..b476ba5bd0af1 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -239,7 +239,7 @@ impl App { /// The active schedule of the app must be set before this method is called. pub fn update(&mut self) { #[cfg(feature = "trace")] - let _bevy_frame_update_span = info_span!("frame").entered(); + let _bevy_update_span = info_span!("update").entered(); { #[cfg(feature = "trace")] let _bevy_main_update_span = info_span!("main app").entered();