We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba67e55 commit 0e21000Copy full SHA for 0e21000
src/dotty/tools/dotc/Run.scala
@@ -56,12 +56,13 @@ class Run(comp: Compiler)(implicit ctx: Context) {
56
ctx.usePhases(phases)
57
for (phase <- ctx.allPhases)
58
if (!ctx.reporter.hasErrors) {
59
- if (ctx.settings.verbose.value) ctx.println(s"[$phase]")
+ val start = System.currentTimeMillis
60
units = phase.runOn(units)
61
def foreachUnit(op: Context => Unit)(implicit ctx: Context): Unit =
62
for (unit <- units) op(ctx.fresh.setPhase(phase.next).setCompilationUnit(unit))
63
if (ctx.settings.Xprint.value.containsPhase(phase))
64
foreachUnit(printTree)
65
+ ctx.informTime(s"$phase ", start)
66
}
67
68
0 commit comments