We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3233ecc commit 8c4f207Copy full SHA for 8c4f207
crates/bevy_ecs/src/schedule/stage.rs
@@ -802,6 +802,12 @@ impl Stage for SystemStage {
802
for index in 0..self.run_criteria.len() {
803
let (run_criteria, tail) = self.run_criteria.split_at_mut(index);
804
let mut criteria = &mut tail[0];
805
+
806
+ #[cfg(feature = "trace")]
807
+ let _span =
808
+ bevy_utils::tracing::info_span!("run criteria", name = &*criteria.name())
809
+ .entered();
810
811
match &mut criteria.inner {
812
RunCriteriaInner::Single(system) => criteria.should_run = system.run((), world),
813
RunCriteriaInner::Piped {
0 commit comments