File tree 2 files changed +4
-12
lines changed
sbt-plugin/src/main/scala/org/scalajs/sbtplugin 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,6 @@ object ScalaJSPlugin extends AutoPlugin {
171
171
172
172
import autoImport ._
173
173
174
- /** Logs the current statistics about the global IR cache. */
175
- def logIRCacheStats (logger : Logger ): Unit = {
176
- import ScalaJSPluginInternal .globalIRCache
177
- logger.debug(" Global IR cache stats: " + globalIRCache.stats.logLine)
178
- }
179
-
180
174
override def globalSettings : Seq [Setting [_]] = {
181
175
Seq (
182
176
scalaJSStage := Stage .FastOpt ,
@@ -187,12 +181,15 @@ object ScalaJSPlugin extends AutoPlugin {
187
181
188
182
// Clear the IR cache stats every time a sequence of tasks ends
189
183
onComplete := {
184
+ import ScalaJSPluginInternal .globalIRCache
185
+
190
186
val prev = onComplete.value
191
187
192
188
{ () =>
193
189
prev()
194
190
ScalaJSPluginInternal .closeAllTestAdapters()
195
- ScalaJSPluginInternal .globalIRCache.clearStats()
191
+ sLog.value.debug(" Global IR cache stats: " + globalIRCache.stats.logLine)
192
+ globalIRCache.clearStats()
196
193
}
197
194
},
198
195
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ import sjsonnew.BasicJsonProtocol.seqFormat
48
48
private [sbtplugin] object ScalaJSPluginInternal {
49
49
50
50
import ScalaJSPlugin .autoImport .{ModuleKind => _ , _ }
51
- import ScalaJSPlugin .logIRCacheStats
52
51
53
52
/** The global Scala.js IR cache */
54
53
val globalIRCache : IRFileCache = StandardImpl .irFileCache()
@@ -216,8 +215,6 @@ private[sbtplugin] object ScalaJSPluginInternal {
216
215
throw new MessageOnlyException (e.getMessage)
217
216
}
218
217
219
- logIRCacheStats(log)
220
-
221
218
Set (output, sourceMapFile)
222
219
} (realFiles.toSet)
223
220
@@ -310,8 +307,6 @@ private[sbtplugin] object ScalaJSPluginInternal {
310
307
new IRTreePrinter (stdout).print(tree)
311
308
stdout.flush()
312
309
}
313
-
314
- logIRCacheStats(streams.value.log)
315
310
},
316
311
317
312
artifactPath in fastOptJS :=
You can’t perform that action at this time.
0 commit comments