Adds profiler_start/stop to parallel_executor (#474)
This commit is contained in:
parent
4ef18e2608
commit
3b3b0195bc
@ -377,7 +377,11 @@ impl ExecutorStage {
|
||||
{
|
||||
let mut system = system.lock();
|
||||
log::trace!("run {}", system.name());
|
||||
#[cfg(feature = "profiler")]
|
||||
crate::profiler_start(resources, system.name().clone());
|
||||
system.run(world_ref, resources_ref);
|
||||
#[cfg(feature = "profiler")]
|
||||
crate::profiler_stop(resources, system.name().clone());
|
||||
}
|
||||
|
||||
// Notify dependents that this task is done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user