mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 15:14:50 +00:00
Adds profiler_start/stop to parallel_executor (#474)
This commit is contained in:
parent
4ef18e2608
commit
3b3b0195bc
1 changed files with 4 additions and 0 deletions
|
@ -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 a new issue