Skip to content

Commit d71e8ef

Browse files
committed
-Ydetailed-stats: clear stats after printing them
Otherwise they will keep accumulating across multiple compiler instances since Stats is global.
1 parent 38b983c commit d71e8ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/src/dotty/tools/dotc/util/Stats.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import collection.mutable
6262
aggregate()
6363
println()
6464
println(hits.toList.sortBy(_._2).map{ case (x, y) => s"$x -> $y" } mkString "\n")
65+
hits.clear()
6566
}
6667
}
6768
else op

0 commit comments

Comments
 (0)