Opprotunistically prune run condition spans #7729
Labels
A-Diagnostics
Logging, crash handling, error reporting and performance analysis
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
What problem does this solve or what need does it fill?
A span for profiling has non-insignificant overhead (#4892) and a good chunk of run conditions don't take very long to run. The construction of these spans is a few orders of magnitude greater than the time it takes to run the condition itself. This is skewing profiling measurements of the executor when there are a lot of these conditions.
What solution would you like?
Opportunistically avoid making these spans when we know that the time spent in the condition is low.
What alternative(s) have you considered?
The text was updated successfully, but these errors were encountered: