From eea096cf54f501b98c5ed19ac09639bb88e3fb44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20K=C3=A5re=20Alsaker?= Date: Fri, 3 Nov 2023 16:08:15 +0100 Subject: [PATCH] Tweak inspector stats labels --- src/inspector.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/inspector.rs b/src/inspector.rs index 58dd8a83..d0155af6 100644 --- a/src/inspector.rs +++ b/src/inspector.rs @@ -300,18 +300,18 @@ fn stats(capture: &Capture) -> impl View { let layout_time = capture.post_layout.saturating_duration_since(capture.start); let paint_time = capture.end.saturating_duration_since(capture.post_layout); let layout_time = info( - "Layout time", + "Layout Time", format!("{:.4} ms", layout_time.as_secs_f64() * 1000.0), ); let taffy_time = info( - "Taffy time", + "Taffy Time", format!("{:.4} ms", capture.taffy_duration.as_secs_f64() * 1000.0), ); - let taffy_node_count = info("Taffy node count", capture.taffy_node_count.to_string()); - let taffy_depth = info("Taffy depth", capture.taffy_depth.to_string()); + let taffy_node_count = info("Taffy Node Count", capture.taffy_node_count.to_string()); + let taffy_depth = info("Taffy Depth", capture.taffy_depth.to_string()); let paint_time = info( - "Paint time", - format!("Paint time: {:.4} ms", paint_time.as_secs_f64() * 1000.0), + "Paint Time", + format!("{:.4} ms", paint_time.as_secs_f64() * 1000.0), ); let w = info("Window Width", format!("{}", capture.window_size.width)); let h = info("Window Height", format!("{}", capture.window_size.height));