Skip to content

Commit

Permalink
cargo timings has been stabilized (#1319)
Browse files Browse the repository at this point in the history
Co-authored-by: pierwill <19642016+pierwill@users.noreply.github.com>
  • Loading branch information
ehuss and pierwill committed Feb 28, 2022
1 parent 24e474c commit 7d8eb87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/profiling.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Depending on what you're trying to measure, there are several different approach
full-featured graphical interface.

- If you want a nice visual representation of the compile times of your crate graph,
you can use [cargo's `-Z timings` flag](https://doc.rust-lang.org/cargo/reference/unstable.html#timings),
eg. `cargo -Z timings build`.
You can use this flag on the compiler itself with `CARGOFLAGS="-Z timings" ./x.py build`
you can use [cargo's `--timings` flag](https://doc.rust-lang.org/nightly/cargo/reference/timings.html),
e.g. `cargo build --timings`.
You can use this flag on the compiler itself with `CARGOFLAGS="--timings" ./x.py build`

- If you want to profile memory usage, you can use various tools depending on what operating system
you are using.
Expand Down

0 comments on commit 7d8eb87

Please sign in to comment.