diff options
author | Martin Odersky <odersky@gmail.com> | 2013-10-01 14:21:27 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-10-01 14:21:27 +0200 |
commit | f039fa7fa2544998426764bd05ea8f18179eb0bd (patch) | |
tree | 6f5431d1824702284d16e581eb620a849a1c2f91 /src/dotty/tools/dotc/Run.scala | |
parent | b733e929b60fd1b5a3fc961fd23e720679ce09d3 (diff) | |
download | dotty-f039fa7fa2544998426764bd05ea8f18179eb0bd.tar.gz dotty-f039fa7fa2544998426764bd05ea8f18179eb0bd.tar.bz2 dotty-f039fa7fa2544998426764bd05ea8f18179eb0bd.zip |
Added option -Yheartbeat
… which shows snapshot of the callstack of tracked operations at fixed intervals.
Diffstat (limited to 'src/dotty/tools/dotc/Run.scala')
-rw-r--r-- | src/dotty/tools/dotc/Run.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/Run.scala b/src/dotty/tools/dotc/Run.scala index 962221994..a00fda36b 100644 --- a/src/dotty/tools/dotc/Run.scala +++ b/src/dotty/tools/dotc/Run.scala @@ -4,7 +4,7 @@ package dotc import core._ import Contexts._, Periods._, Symbols._ import io.PlainFile -import util.{SourceFile, NoSource} +import util.{SourceFile, NoSource, Stats} class Run(comp: Compiler)(implicit ctx: Context) { @@ -19,7 +19,7 @@ class Run(comp: Compiler)(implicit ctx: Context) { } } - def compile(fileNames: List[String]): Unit = { + def compile(fileNames: List[String]): Unit = Stats.monitorHeartBeat { val sources = fileNames map getSource if (sources forall (_.exists)) { units = sources map (new CompilationUnit(_)) |