Skip to content

Commit

Permalink
never write stats to disk but ask for the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Dec 13, 2023
1 parent da34935 commit dfaca28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions compiler/rustc_passes/src/hir_stats.rs
Expand Up @@ -78,7 +78,9 @@ pub fn hir_stats(tcx: TyCtxt<'_>, write_to_stderr: bool) {
tcx.hir().walk_toplevel_module(&mut collector);
tcx.hir().walk_attributes(&mut collector);

if let Some(path) = metrics_path() {
if let Some(path) = metrics_path()
&& false
{
collector.store(path, "hir-stats");
}
if write_to_stderr {
Expand All @@ -92,8 +94,8 @@ pub fn ast_stats(krate: &ast::Crate, title: &str, prefix: &str, write_to_stderr:
let mut collector =
StatCollector { krate: None, nodes: FxHashMap::default(), seen: FxHashSet::default() };
collector.visit_crate(krate);
if false
&& let Some(path) = metrics_path()
if let Some(path) = metrics_path()
&& false
{
collector.store(path, prefix);
}
Expand Down

0 comments on commit dfaca28

Please sign in to comment.