Adds profiler_start/stop to parallel_executor (#474)

This commit is contained in:
Jonas Matser 2020-09-11 21:14:36 +02:00 committed by GitHub
parent 4ef18e2608
commit 3b3b0195bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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