mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
de677dbfc9
Tracing added support for "inline span entering", which cuts down on a lot of complexity: ```rust let span = info_span!("my_span").entered(); ``` This adapts our code to use this pattern where possible, and updates our docs to recommend it. This produces equivalent tracing behavior. Here is a side by side profile of "before" and "after" these changes. ![image](https://user-images.githubusercontent.com/2694663/158912137-b0aa6dc8-c603-425f-880f-6ccf5ad1b7ef.png) |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |