-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #13532 - epage:t, r=weihanglo
fix(cli): Trace core cargo operations ### What does this PR try to resolve? This is preparation for #13339 and covers hot spots I found as well as areas currently covered by `profile::start(...)`. This is split out to avoid conflicts while working through the remaining issues for #13339. Maybe it will also serve to help debugging... ### How should we test and review this PR? ### Additional information ```console $ rg profile::start src/ src/cargo/ops/cargo_compile/mod.rs: let _p = profile::start("compiling"); src/cargo/ops/resolve.rs: let _p = profile::start("resolving with overrides..."); src/cargo/util/rustc.rs: let _p = profile::start("Rustc::new"); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start("cleaning global cache files"); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start("global cache db sync"); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start(format!( src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start(format!("update db for removed {table_name}")); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start(format!( src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start("populate untracked crate"); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start(format!("populate untracked {table_name}")); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start(format!("update NULL sizes {table_name}")); src/cargo/core/global_cache_tracker.rs: let _p = crate::util::profile::start("saving last-use data"); src/cargo/core/resolver/features.rs: let _p = profile::start("resolve features"); src/cargo/core/resolver/mod.rs: let _p = profile::start("resolving"); src/cargo/core/compiler/fingerprint/mod.rs: let _p = profile::start(format!( src/cargo/core/compiler/mod.rs: let p = profile::start(format!("preparing: {}/{}", unit.pkg, unit.target.name())); src/cargo/core/compiler/build_runner/mod.rs: let _p = profile::start("preparing layout"); src/cargo/core/compiler/custom_build.rs: let _p = profile::start(format!( src/cargo/core/compiler/job_queue/mod.rs: let _p = profile::start("executing the job graph"); ```
- Loading branch information
Showing
19 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters