Skip to content

Commit a8a0f10

Browse files
ivandev0Space Team
authored and
Space Team
committed
[CLI] Create a separate class for JS IR perf manager
This way, it is easier to understand that such a manager exists for JS IR #KT-67473
1 parent 32f48ce commit a8a0f10

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JsIrCompiler.kt

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.*
3030
import org.jetbrains.kotlin.cli.common.messages.MessageCollector
3131
import org.jetbrains.kotlin.cli.common.messages.MessageUtil
3232
import org.jetbrains.kotlin.cli.js.klib.*
33+
import org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.K2JVMCompilerPerformanceManager
3334
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
3435
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
3536
import org.jetbrains.kotlin.cli.jvm.plugins.PluginCliParser
@@ -96,9 +97,9 @@ private class DisposableZipFileSystemAccessor private constructor(
9697
}
9798

9899
class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
100+
class K2JsIrCompilerPerformanceManager : CommonCompilerPerformanceManager("Kotlin to JS (IR) Compiler")
99101

100-
override val defaultPerformanceManager: CommonCompilerPerformanceManager =
101-
object : CommonCompilerPerformanceManager("Kotlin to JS (IR) Compiler") {}
102+
override val defaultPerformanceManager: CommonCompilerPerformanceManager = K2JsIrCompilerPerformanceManager()
102103

103104
override fun createArguments(): K2JSCompilerArguments {
104105
return K2JSCompilerArguments()

0 commit comments

Comments
 (0)