[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
|
||||
}
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
performanceManager?.notifyIRTranslationStarted()
|
||||
|
||||
val fir2IrExtensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
||||
@@ -166,6 +165,7 @@ object FirKotlinToJvmBytecodeCompiler {
|
||||
|
||||
performanceManager?.notifyIRTranslationFinished()
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
val generationState = runBackend(
|
||||
fir2IrExtensions,
|
||||
fir2IrAndIrActualizerResult,
|
||||
|
||||
@@ -138,7 +138,6 @@ fun compileModulesUsingFrontendIrAndLightTree(
|
||||
return false
|
||||
}
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
performanceManager?.notifyIRTranslationStarted()
|
||||
|
||||
val compilerEnvironment = ModuleCompilerEnvironment(projectEnvironment, diagnosticsReporter)
|
||||
@@ -146,6 +145,7 @@ fun compileModulesUsingFrontendIrAndLightTree(
|
||||
|
||||
performanceManager?.notifyIRTranslationFinished()
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
val codegenOutput = generateCodeFromIr(irInput, compilerEnvironment, performanceManager)
|
||||
|
||||
diagnosticsReporter.reportToMessageCollector(
|
||||
|
||||
+1
-1
@@ -267,7 +267,6 @@ open class IncrementalFirJvmCompilerRunner(
|
||||
|
||||
val cycleResult = firIncrementalCycle() ?: return ExitCode.COMPILATION_ERROR to allCompiledSources
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
performanceManager?.notifyIRTranslationStarted()
|
||||
|
||||
val extensions = JvmFir2IrExtensions(configuration, JvmIrDeserializerImpl(), JvmIrMangler)
|
||||
@@ -278,6 +277,7 @@ open class IncrementalFirJvmCompilerRunner(
|
||||
|
||||
performanceManager?.notifyIRTranslationFinished()
|
||||
|
||||
performanceManager?.notifyGenerationStarted()
|
||||
val irInput = ModuleCompilerIrBackendInput(
|
||||
targetId,
|
||||
configuration,
|
||||
|
||||
Reference in New Issue
Block a user