Open mox692 opened 5 months ago
Some related exploration about improving the timing HTML people might be interested in: https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/New.20visualizations.20for.20cargo-timing.2Ehtml. Feel free to experiment on modernizing the HTML/JS/CSS part of it.
Problem
Sometimes I use
cargo timings
in my projects, and find that the HTML generated by them often slows down the browser (chrome in my case). I have also measured thecargo timings
in the cargo project for reproduce, and it seems to be taking longer to work as well. (As shown in the attached image, it took about 5s to become operational.) I guess that the browser is slowing down because the JS that is drawing the canvas is occupying the CPU.There might be room for optimization of the generated JS.
cargo-timing.html.zip
Proposed Solution
No response
Notes
I didn't try this in Firefox because of https://github.com/rust-lang/cargo/issues/8850 .