summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-03 04:49:57 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-03 04:49:57 +0100
commit1a2e512686caa5b644644155185cc5efe2087bee (patch)
tree76a1d060165b262b306e8e21a59f71010437cb24 /winit
parent24e53d92c5808bb47b316de632f51db69173d1c5 (diff)
downloadiced-1a2e512686caa5b644644155185cc5efe2087bee.tar.gz
iced-1a2e512686caa5b644644155185cc5efe2087bee.tar.bz2
iced-1a2e512686caa5b644644155185cc5efe2087bee.zip
Add crate information to debug view
Diffstat (limited to 'winit')
-rw-r--r--winit/src/debug/basic.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/winit/src/debug/basic.rs b/winit/src/debug/basic.rs
index 09bb5ae1..67c6d8a2 100644
--- a/winit/src/debug/basic.rs
+++ b/winit/src/debug/basic.rs
@@ -149,6 +149,12 @@ impl Debug {
format!("{: <30} {:?}", key, value)
}
+ lines.push(format!(
+ "{} {} - {}",
+ env!("CARGO_PKG_NAME"),
+ env!("CARGO_PKG_VERSION"),
+ env!("CARGO_PKG_REPOSITORY"),
+ ));
lines.push(key_value("Startup:", self.startup_duration));
lines.push(key_value("Update:", self.update_durations.average()));
lines.push(key_value("View:", self.view_durations.average()));