diff options
author | 2022-12-20 20:41:09 -0800 | |
---|---|---|
committer | 2023-01-09 18:52:38 +0100 | |
commit | 4b6d3797d43acb1d78a292a7ec712a0be7c8f6a2 (patch) | |
tree | 1208a2c5b16a5e67093677df3a2d6bf159bff0f9 /winit/src/application.rs | |
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 'winit/src/application.rs')
-rw-r--r-- | winit/src/application.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winit/src/application.rs b/winit/src/application.rs index fc73db89..74c73815 100644 --- a/winit/src/application.rs +++ b/winit/src/application.rs @@ -1,4 +1,6 @@ //! Create interactive, native cross-platform applications. +#[cfg(feature = "trace")] +mod profiler; mod state; pub use state::State; @@ -25,7 +27,9 @@ pub use iced_native::application::{Appearance, StyleSheet}; use std::mem::ManuallyDrop; #[cfg(feature = "trace")] -use iced_profiling::{info_span, instrument::Instrument}; +pub use profiler::Profiler; +#[cfg(feature = "trace")] +use tracing::{info_span, instrument::Instrument}; /// An interactive, native cross-platform application. /// @@ -115,7 +119,7 @@ where use winit::event_loop::EventLoopBuilder; #[cfg(feature = "trace")] - let _guard = iced_profiling::init(); + let _guard = Profiler::init(); let mut debug = Debug::new(); debug.startup_started(); |