diff options
author | 2022-12-20 20:41:09 -0800 | |
---|---|---|
committer | 2023-01-09 18:52:38 +0100 | |
commit | 4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2 (patch) | |
tree | 1208a2c5b16a5e67093677df3a2d6bf159bff0f9 /examples | |
parent | c5cd236b7380c3689792934aeaecd2942713fa67 (diff) | |
download | iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.tar.gz iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.tar.bz2 iced-4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2.zip |
Restructured everything to make profiling a feature of iced_winit.
Diffstat (limited to '')
-rw-r--r-- | examples/integration_wgpu/Cargo.toml | 1 | ||||
-rw-r--r-- | examples/integration_wgpu/src/main.rs | 7 |
2 files changed, 0 insertions, 8 deletions
diff --git a/examples/integration_wgpu/Cargo.toml b/examples/integration_wgpu/Cargo.toml index 9380f659..eaa1df7e 100644 --- a/examples/integration_wgpu/Cargo.toml +++ b/examples/integration_wgpu/Cargo.toml @@ -8,7 +8,6 @@ publish = false [dependencies] iced_winit = { path = "../../winit" } iced_wgpu = { path = "../../wgpu", features = ["webgl"] } -iced_profiling = { path = "../../profiling", features = ["tracing-chrome"]} env_logger = "0.8" [target.'cfg(target_arch = "wasm32")'.dependencies] diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index e3dfb6fc..70f9a48b 100644 --- a/examples/integration_wgpu/src/main.rs +++ b/examples/integration_wgpu/src/main.rs @@ -16,8 +16,6 @@ use winit::{ event_loop::{ControlFlow, EventLoop}, }; -use iced_profiling::info_span; - #[cfg(target_arch = "wasm32")] use wasm_bindgen::JsCast; #[cfg(target_arch = "wasm32")] @@ -41,9 +39,6 @@ pub fn main() { #[cfg(not(target_arch = "wasm32"))] env_logger::init(); - // Initialize tracing - let _guard = iced_profiling::init(); - // Initialize winit let event_loop = EventLoop::new(); @@ -203,8 +198,6 @@ pub fn main() { } } Event::RedrawRequested(_) => { - let _ = info_span!("Integration_WGPU", "DRAW").entered(); - if resized { let size = window.inner_size(); |