diff --git a/crates/bevy_render/Cargo.toml b/crates/bevy_render/Cargo.toml index 9d0f6e11973a3..a1643eafd5895 100644 --- a/crates/bevy_render/Cargo.toml +++ b/crates/bevy_render/Cargo.toml @@ -20,7 +20,7 @@ dds = ["ddsfile"] zlib = ["flate2"] zstd = ["ruzstd"] -trace = [] +trace = ["profiling"] tracing-tracy = [] wgpu_trace = ["wgpu/trace"] ci_limits = [] @@ -71,3 +71,5 @@ ruzstd = { version = "0.2.4", optional = true } # For transcoding of UASTC/ETC1S universal formats, and for .basis file support basis-universal = { version = "0.2.0", optional = true } encase = { version = "0.3", features = ["glam"] } +# For wgpu profiling using tracing. Use `RUST_LOG=info` to also capture the wgpu spans. +profiling = { version = "1", features = ["profile-with-tracing"], optional = true }