File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,9 @@ class Run(comp: Compiler)(implicit ctx: Context) {
82
82
ctx.informTime(s " $phase " , start)
83
83
}
84
84
if (! ctx.reporter.hasErrors) Rewrites .writeBack()
85
+ for (unit <- units)
86
+ Stats .record(" retained typed trees at end" , unit.tpdTree.treeSize)
87
+ Stats .record(" total trees at end" , ast.Trees .ntrees)
85
88
}
86
89
87
90
private sealed trait PrintedTree
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ class FrontEnd extends Phase {
49
49
val unit = ctx.compilationUnit
50
50
unit.tpdTree = ctx.typer.typedExpr(unit.untpdTree)
51
51
typr.println(" typed: " + unit.source)
52
- record(" retainedUntypedTrees " , unit.untpdTree.treeSize)
53
- record(" retainedTypedTrees " , unit.tpdTree.treeSize)
52
+ record(" retained untyped trees " , unit.untpdTree.treeSize)
53
+ record(" retained typed trees after typer " , unit.tpdTree.treeSize)
54
54
}
55
55
56
56
private def firstTopLevelDef (trees : List [tpd.Tree ])(implicit ctx : Context ): Symbol = trees match {
@@ -72,7 +72,7 @@ class FrontEnd extends Phase {
72
72
record(" parsedTrees" , ast.Trees .ntrees)
73
73
unitContexts foreach (enterSyms(_))
74
74
unitContexts foreach (typeCheck(_))
75
- record(" totalTrees " , ast.Trees .ntrees)
75
+ record(" total trees after typer " , ast.Trees .ntrees)
76
76
unitContexts.map(_.compilationUnit).filterNot(discardAfterTyper)
77
77
}
78
78
You can’t perform that action at this time.
0 commit comments