add a span for frames (#2053)

add a span for frames
This commit is contained in:
François 2021-04-30 02:08:49 +00:00
parent dbf519c1d7
commit 07e772814f

View file

@ -55,6 +55,10 @@ impl App {
}
pub fn update(&mut self) {
#[cfg(feature = "trace")]
let bevy_frame_update_span = info_span!("frame");
#[cfg(feature = "trace")]
let _bevy_frame_update_guard = bevy_frame_update_span.enter();
self.schedule.run(&mut self.world);
}