From 9bada400b36834e92484e416a5b9b41b10cbd5a5 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Fri, 18 Nov 2016 17:19:59 +0100 Subject: More extensive stats about generated trees --- src/dotty/tools/dotc/Run.scala | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dotty/tools/dotc/Run.scala') diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala index f5ba56a7e..0f652ff0b 100644 --- a/src/dotty/tools/dotc/Run.scala +++ b/src/dotty/tools/dotc/Run.scala @@ -82,6 +82,9 @@ class Run(comp: Compiler)(implicit ctx: Context) { ctx.informTime(s"$phase ", start) } if (!ctx.reporter.hasErrors) Rewrites.writeBack() + for (unit <- units) + Stats.record("retained typed trees at end", unit.tpdTree.treeSize) + Stats.record("total trees at end", ast.Trees.ntrees) } private sealed trait PrintedTree -- cgit v1.2.3