From 7392ba33f16dc53c6f0bd2fb6856c46315472560 Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 26 Feb 2022 15:15:58 -0800 Subject: [PATCH 1/2] cargo timings has been stabilized --- src/profiling.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profiling.md b/src/profiling.md index 0d333f7be..8712bb70f 100644 --- a/src/profiling.md +++ b/src/profiling.md @@ -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), + eg. `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. From e389a5aba70d08ba462018761e31b139d7bd3600 Mon Sep 17 00:00:00 2001 From: pierwill <19642016+pierwill@users.noreply.github.com> Date: Sun, 27 Feb 2022 22:25:16 -0600 Subject: [PATCH 2/2] Update src/profiling.md --- src/profiling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profiling.md b/src/profiling.md index 8712bb70f..711248f19 100644 --- a/src/profiling.md +++ b/src/profiling.md @@ -18,7 +18,7 @@ Depending on what you're trying to measure, there are several different approach - If you want a nice visual representation of the compile times of your crate graph, you can use [cargo's `--timings` flag](https://doc.rust-lang.org/nightly/cargo/reference/timings.html), - eg. `cargo build --timings`. + 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