Skip to content

Commit

Permalink
Tweak inspector stats labels (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc authored Nov 3, 2023
1 parent ff0b075 commit 614370a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 614370a

Please sign in to comment.