Add crate information to debug view

This commit is contained in:
Héctor Ramón Jiménez 2019-11-03 04:49:57 +01:00
parent 24e53d92c5
commit 1a2e512686

View file

@ -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()));