File tree 1 file changed +7
-0
lines changed
compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
143
143
paths : KotlinPaths ?
144
144
): ExitCode {
145
145
val messageCollector = configuration.getNotNull(CLIConfigurationKeys .MESSAGE_COLLECTOR_KEY )
146
+ val performanceManager = configuration[CLIConfigurationKeys .PERF_MANAGER ]
146
147
147
148
val pluginLoadResult = loadPlugins(paths, arguments, configuration)
148
149
if (pluginLoadResult != OK ) return pluginLoadResult
@@ -248,6 +249,12 @@ class K2JsIrCompiler : CLICompiler<K2JSCompilerArguments>() {
248
249
return COMPILATION_ERROR
249
250
}
250
251
252
+ performanceManager?.notifyCompilerInitialized(
253
+ sourcesFiles.size,
254
+ environmentForJS.countLinesOfCode(sourcesFiles),
255
+ " $moduleName -${configurationJs[JSConfigurationKeys .MODULE_KIND ]} "
256
+ )
257
+
251
258
// TODO: Handle non-empty main call arguments
252
259
val mainCallArguments = if (K2JsArgumentConstants .NO_CALL == arguments.main) null else emptyList<String >()
253
260
You can’t perform that action at this time.
0 commit comments