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 --branch stable crox
$ crox {crate name}-{pid}.mm_profdata
-
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
.