Sprinkle instrumentation in common crate,in particular in the ecs systems

This commit is contained in:
Imbris
2020-08-26 04:11:31 -04:00
parent 50ceb1c93e
commit e37a01be9d
12 changed files with 35 additions and 4 deletions

View File

@ -4,6 +4,7 @@ use crate::{
CharacterState, ControlEvent, Controller, InventoryManip,
},
event::{EventBus, LocalEvent, ServerEvent},
span,
state::DeltaTime,
sync::{Uid, UidAllocator},
};
@ -43,6 +44,7 @@ impl<'a> System<'a> for Sys {
uids,
): Self::SystemData,
) {
span!(_guard, "controller::Sys::run");
let mut server_emitter = server_bus.emitter();
for (entity, _uid, controller, character_state) in