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

@ -1,5 +1,6 @@
use crate::{
astar::{Astar, PathResult},
span,
terrain::Block,
vol::{BaseVol, ReadVol},
};
@ -327,6 +328,7 @@ impl Chaser {
where
V: BaseVol<Vox = Block> + ReadVol,
{
span!(_guard, "Chaser::chase");
let pos_to_tgt = pos.distance(tgt);
// If we're already close to the target then there's nothing to do