Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo timings has been stabilized #1319

Merged
merged 2 commits into from
Feb 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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),
eg. `cargo build --timings`.
pierwill marked this conversation as resolved.
Show resolved Hide resolved
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