[K2] Don't include IRTranslation time as total Generation time
Such behavior is more on par with K1. #KT-65094 Fixed
This commit is contained in:
+1
-1
@@ -157,7 +157,6 @@ object FirKotlinToJvmBytecodeCompiler {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
performanceManager?.notifyGenerationStarted()
|
|
||||||
performanceManager?.notifyIRTranslationStarted()
|
performanceManager?.notifyIRTranslationStarted()
|
||||||
|
|
||||||
val fir2IrExtensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
val fir2IrExtensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
||||||
@@ -166,6 +165,7 @@ object FirKotlinToJvmBytecodeCompiler {
|
|||||||
|
|
||||||
performanceManager?.notifyIRTranslationFinished()
|
performanceManager?.notifyIRTranslationFinished()
|
||||||
|
|
||||||
|
performanceManager?.notifyGenerationStarted()
|
||||||
val generationState = runBackend(
|
val generationState = runBackend(
|
||||||
fir2IrExtensions,
|
fir2IrExtensions,
|
||||||
fir2IrAndIrActualizerResult,
|
fir2IrAndIrActualizerResult,
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ fun compileModulesUsingFrontendIrAndLightTree(
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
performanceManager?.notifyGenerationStarted()
|
|
||||||
performanceManager?.notifyIRTranslationStarted()
|
performanceManager?.notifyIRTranslationStarted()
|
||||||
|
|
||||||
val compilerEnvironment = ModuleCompilerEnvironment(projectEnvironment, diagnosticsReporter)
|
val compilerEnvironment = ModuleCompilerEnvironment(projectEnvironment, diagnosticsReporter)
|
||||||
@@ -146,6 +145,7 @@ fun compileModulesUsingFrontendIrAndLightTree(
|
|||||||
|
|
||||||
performanceManager?.notifyIRTranslationFinished()
|
performanceManager?.notifyIRTranslationFinished()
|
||||||
|
|
||||||
|
performanceManager?.notifyGenerationStarted()
|
||||||
val codegenOutput = generateCodeFromIr(irInput, compilerEnvironment, performanceManager)
|
val codegenOutput = generateCodeFromIr(irInput, compilerEnvironment, performanceManager)
|
||||||
|
|
||||||
diagnosticsReporter.reportToMessageCollector(
|
diagnosticsReporter.reportToMessageCollector(
|
||||||
|
|||||||
+1
-1
@@ -267,7 +267,6 @@ open class IncrementalFirJvmCompilerRunner(
|
|||||||
|
|
||||||
val cycleResult = firIncrementalCycle() ?: return ExitCode.COMPILATION_ERROR to allCompiledSources
|
val cycleResult = firIncrementalCycle() ?: return ExitCode.COMPILATION_ERROR to allCompiledSources
|
||||||
|
|
||||||
performanceManager?.notifyGenerationStarted()
|
|
||||||
performanceManager?.notifyIRTranslationStarted()
|
performanceManager?.notifyIRTranslationStarted()
|
||||||
|
|
||||||
val extensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
val extensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
||||||
@@ -278,6 +277,7 @@ open class IncrementalFirJvmCompilerRunner(
|
|||||||
|
|
||||||
performanceManager?.notifyIRTranslationFinished()
|
performanceManager?.notifyIRTranslationFinished()
|
||||||
|
|
||||||
|
performanceManager?.notifyGenerationStarted()
|
||||||
val irInput = ModuleCompilerIrBackendInput(
|
val irInput = ModuleCompilerIrBackendInput(
|
||||||
targetId,
|
targetId,
|
||||||
configuration,
|
configuration,
|
||||||
|
|||||||
Reference in New Issue
Block a user