-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Cargo --timings
option has been stabilized. Update profiling.md.
#4850
Conversation
docs/profiling.md
Outdated
@@ -52,6 +52,6 @@ After closing your app, an interactive `svg` file will be produced: | |||
|
|||
## Project Compile Times | |||
|
|||
This requires nightly rust (`rustup default nightly`). Append ```-Ztimings``` to your app's cargo command (ex: `cargo build -Ztimings`). If you want a "full" profile, make sure you run `cargo clean` first. Open the produced `cargo-timing.html` file in your browser of choice. This will show how much time each crate in your app's dependency tree took to build. | |||
Append ```--timings``` to your app's cargo command (ex: `cargo build --timings`). If you want a "full" profile, make sure you run `cargo clean` first. Open the produced `cargo-timing.html` file in your browser of choice. This will show how much time each crate in your app's dependency tree took to build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the stabilized --timings
option cargo doesn't save a cargo-timing.html
in the currect directory anymore, but instead writes it to the target directory and logs its location:
Timing report saved to /home/user/.cache/rust/cargo-timings/cargo-timing-20220526T190433Z.html
We should tweak the text to make that more clear.
Once the comment above is addressed I'm happy to merge this. |
bors r+ |
…4850) As of rust-lang/cargo#10245 `--timings` has been stabilized. Update profiling.md to reflect this. Co-authored-by: devil-ira <[email protected]>
Build failed (retrying...): |
…4850) As of rust-lang/cargo#10245 `--timings` has been stabilized. Update profiling.md to reflect this. Co-authored-by: devil-ira <[email protected]>
Build failed: |
Co-authored-by: Alice Cecile <[email protected]>
bors r+ |
…4850) As of rust-lang/cargo#10245 `--timings` has been stabilized. Update profiling.md to reflect this. Co-authored-by: devil-ira <[email protected]>
--timings
option has been stabilized. Update profiling.md.--timings
option has been stabilized. Update profiling.md.
…evyengine#4850) As of rust-lang/cargo#10245 `--timings` has been stabilized. Update profiling.md to reflect this. Co-authored-by: devil-ira <[email protected]>
…evyengine#4850) As of rust-lang/cargo#10245 `--timings` has been stabilized. Update profiling.md to reflect this. Co-authored-by: devil-ira <[email protected]>
As of rust-lang/cargo#10245
--timings
has been stabilized.Update profiling.md to reflect this.