Crox (chromium oxide) is a tool to turn trace files from measureme
into files that can be visualized by the Chromium performance tools.
- Obtain a sample recorded using
measureme
. For example, using the self-profiler inrustc
:
$ cargo rustc -- -Z self-profile
- Run
crox
on the output file:
$ # Install crox if you haven't done so yet.
$ cargo install --git https://github.com/rust-lang/measureme crox
$ crox {crate name}-{pid}
-
Open Chrome
-
Open the Dev Tools console
-
Click the Performance tab
-
Click the Load Profile button
-
Navigate to your working directory and pick
chrome_profiler.json
.