From c5cd236b7380c3689792934aeaecd2942713fa67 Mon Sep 17 00:00:00 2001 From: Bingus Date: Tue, 29 Nov 2022 19:50:58 -0800 Subject: Initial profiling support for Iced. --- winit/Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index ebbadb12..22b40f70 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -11,6 +11,7 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [features] +trace = ["iced_profiling"] debug = ["iced_native/debug"] system = ["sysinfo"] application = [] @@ -37,6 +38,11 @@ path = "../graphics" version = "0.5" path = "../futures" +[dependencies.iced_profiling] +version = "0.1.0" +path = "../profiling" +optional = true + [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.6" -- cgit 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. --- winit/Cargo.toml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'winit/Cargo.toml') diff --git a/winit/Cargo.toml b/winit/Cargo.toml index 22b40f70..94aaa2ca 100644 --- a/winit/Cargo.toml +++ b/winit/Cargo.toml @@ -11,7 +11,8 @@ keywords = ["gui", "ui", "graphics", "interface", "widgets"] categories = ["gui"] [features] -trace = ["iced_profiling"] +trace = ["tracing", "tracing-core", "tracing-subscriber"] +chrome-trace = ["trace", "tracing-chrome"] debug = ["iced_native/debug"] system = ["sysinfo"] application = [] @@ -38,9 +39,22 @@ path = "../graphics" version = "0.5" path = "../futures" -[dependencies.iced_profiling] -version = "0.1.0" -path = "../profiling" +[dependencies.tracing] +version = "0.1.37" +optional = true +features = ["std"] + +[dependencies.tracing-core] +version = "0.1.30" +optional = true + +[dependencies.tracing-subscriber] +version = "0.3.16" +optional = true +features = ["registry"] + +[dependencies.tracing-chrome] +version = "0.7.0" optional = true [target.'cfg(target_os = "windows")'.dependencies.winapi] -- cgit