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