diff options
| author | bors <bors@rust-lang.org> | 2022-02-09 15:53:10 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-09 15:53:10 +0000 |
| commit | 9747ee4755e6e3c4b4b4c7a0587df29123835cda (patch) | |
| tree | f7c413469aa224f1759c9cd14774c8ec4bee0c5c /compiler/rustc_interface | |
| parent | b7cd0f786492aacf7426008cff48a25bc54b5f85 (diff) | |
| parent | 257839bd88a42f9f4b117289f37cf2bc3c535cb8 (diff) | |
| download | rust-9747ee4755e6e3c4b4b4c7a0587df29123835cda.tar.gz rust-9747ee4755e6e3c4b4b4c7a0587df29123835cda.zip | |
Auto merge of #93724 - Mark-Simulacrum:drop-query-stats, r=michaelwoerister
Delete -Zquery-stats infrastructure These statistics are computable from the self-profile data and/or ad-hoc collectable as needed, and in the meantime contribute to rustc bootstrap times -- locally, this PR shaves ~2.5% from rustc_query_impl builds in instruction counts. If this does lose some functionality we want to keep, I think we should migrate it to self-profile (or a similar interface) rather than this ad-hoc reporting.
Diffstat (limited to 'compiler/rustc_interface')
| -rw-r--r-- | compiler/rustc_interface/src/queries.rs | 4 | ||||
| -rw-r--r-- | compiler/rustc_interface/src/tests.rs | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_interface/src/queries.rs b/compiler/rustc_interface/src/queries.rs index 2640a9575a3..89390ee1d6c 100644 --- a/compiler/rustc_interface/src/queries.rs +++ b/compiler/rustc_interface/src/queries.rs @@ -400,10 +400,6 @@ impl Compiler { gcx.enter(rustc_query_impl::alloc_self_profile_query_strings); } - if self.session().opts.debugging_opts.query_stats { - gcx.enter(rustc_query_impl::print_stats); - } - self.session() .time("serialize_dep_graph", || gcx.enter(rustc_incremental::save_dep_graph)); } diff --git a/compiler/rustc_interface/src/tests.rs b/compiler/rustc_interface/src/tests.rs index e5e46703082..9ab138c1b12 100644 --- a/compiler/rustc_interface/src/tests.rs +++ b/compiler/rustc_interface/src/tests.rs @@ -684,7 +684,6 @@ fn test_debugging_options_tracking_hash() { untracked!(print_type_sizes, true); untracked!(proc_macro_backtrace, true); untracked!(query_dep_graph, true); - untracked!(query_stats, true); untracked!(save_analysis, true); untracked!(self_profile, SwitchWithOptPath::Enabled(None)); untracked!(self_profile_events, Some(vec![String::new()])); |
