Skip to content

Commit 257839b

Browse files
Delete query stats
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.
1 parent 88fb06a commit 257839b

File tree

5 files changed

+0
-122
lines changed

5 files changed

+0
-122
lines changed

compiler/rustc_interface/src/queries.rs

-4
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,6 @@ impl Compiler {
403403
gcx.enter(rustc_query_impl::alloc_self_profile_query_strings);
404404
}
405405

406-
if self.session().opts.debugging_opts.query_stats {
407-
gcx.enter(rustc_query_impl::print_stats);
408-
}
409-
410406
self.session()
411407
.time("serialize_dep_graph", || gcx.enter(rustc_incremental::save_dep_graph));
412408
}

compiler/rustc_interface/src/tests.rs

-1
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,6 @@ fn test_debugging_options_tracking_hash() {
684684
untracked!(print_type_sizes, true);
685685
untracked!(proc_macro_backtrace, true);
686686
untracked!(query_dep_graph, true);
687-
untracked!(query_stats, true);
688687
untracked!(save_analysis, true);
689688
untracked!(self_profile, SwitchWithOptPath::Enabled(None));
690689
untracked!(self_profile_events, Some(vec![String::new()]));

compiler/rustc_query_impl/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ mod plumbing;
2828
pub use plumbing::QueryCtxt;
2929
use rustc_query_system::query::*;
3030

31-
mod stats;
32-
pub use self::stats::print_stats;
33-
3431
mod keys;
3532
use keys::Key;
3633

compiler/rustc_query_impl/src/stats.rs

-112
This file was deleted.

compiler/rustc_session/src/options.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1367,8 +1367,6 @@ options! {
13671367
"use the given `.prof` file for sampled profile-guided optimization (also known as AutoFDO)"),
13681368
query_dep_graph: bool = (false, parse_bool, [UNTRACKED],
13691369
"enable queries of the dependency graph for regression testing (default: no)"),
1370-
query_stats: bool = (false, parse_bool, [UNTRACKED],
1371-
"print some statistics about the query system (default: no)"),
13721370
randomize_layout: bool = (false, parse_bool, [TRACKED],
13731371
"randomize the layout of types (default: no)"),
13741372
layout_seed: Option<u64> = (None, parse_opt_number, [TRACKED],

0 commit comments

Comments
 (0)