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

Build time profiling using -Z timings #162

Open
termoshtt opened this issue Nov 22, 2021 · 1 comment
Open

Build time profiling using -Z timings #162

termoshtt opened this issue Nov 22, 2021 · 1 comment
Labels
better development Keep development happy

Comments

@termoshtt
Copy link
Contributor

cargo has -Z timings feature in nightly. It shows how long compile spent times like following:

   Completed espr v0.1.0 lib (test) in 6.1s
   Completed ruststep v0.1.0 lib (test) in 10.1s
   Completed ruststep v0.1.0 in 18.7s
   Completed espr-derive v0.1.0 lib (test) in 0.5s
   Completed ruststep-derive v0.1.0 test "try_build" (test) in 1.4s
   Completed ruststep-derive v0.1.0 lib (test) in 2.3s
   Completed ruststep v0.1.0 test "abc_dataset" (test) in 3.4s
   Completed ruststep v0.1.0 test "enum_deserialize" (test) in 3.5s
   Completed ruststep v0.1.0 test "simple" (test) in 3.5s
   Completed ruststep v0.1.0 test "list" (test) in 3.6s
   Completed ruststep v0.1.0 test "any_deserialize" (test) in 3.7s

https://doc.rust-lang.org/cargo/reference/unstable.html#timings

@termoshtt termoshtt added enhancement New feature or request better development Keep development happy and removed enhancement New feature or request labels Feb 14, 2022
@termoshtt
Copy link
Contributor Author

cargo build --timings

has been stabilized in 1.60.0
https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html#cargo---timings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better development Keep development happy
Projects
None yet
Development

No branches or pull requests

1 participant