From 4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2 Mon Sep 17 00:00:00 2001 From: bungoboingo Date: Tue, 20 Dec 2022 20:41:09 -0800 Subject: Restructured everything to make profiling a feature of iced_winit. --- wgpu/src/triangle.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'wgpu/src/triangle.rs') diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index b7c63167..efdd214b 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -8,8 +8,8 @@ use crate::Transformation; use iced_graphics::layer::mesh::{self, Mesh}; use iced_graphics::triangle::ColoredVertex2D; use iced_graphics::Size; -#[cfg(feature = "trace")] -use iced_profiling::info_span; +#[cfg(feature = "tracing")] +use tracing::info_span; #[derive(Debug)] pub struct Pipeline { @@ -55,7 +55,7 @@ impl Pipeline { scale_factor: f32, meshes: &[Mesh<'_>], ) { - #[cfg(feature = "trace")] + #[cfg(feature = "tracing")] let _ = info_span!("Wgpu::Triangle", "DRAW").entered(); // Count the total amount of vertices & indices we need to handle @@ -252,7 +252,7 @@ impl Pipeline { (target, None, wgpu::LoadOp::Load) }; - #[cfg(feature = "trace")] + #[cfg(feature = "tracing")] let _ = info_span!("Wgpu::Triangle", "BEGIN_RENDER_PASS").enter(); let mut render_pass = -- cgit