[K2] Move Generation perf calculation inside generateCodeFromIr

1. We don't need to include `GenerationState` initialization time
2. We don't need to include diagnostic reporting time
This commit is contained in:
Ivan Kylchik
2024-03-05 15:38:20 +01:00
committed by Space Team
parent fd961452b3
commit 1eabff337d
3 changed files with 4 additions and 11 deletions
@@ -269,7 +269,6 @@ open class IncrementalFirJvmCompilerRunner(
extensions, configuration, compilerEnvironment.diagnosticsReporter, irGenerationExtensions,
)
performanceManager?.notifyGenerationStarted()
val irInput = ModuleCompilerIrBackendInput(
targetId,
configuration,
@@ -282,9 +281,6 @@ open class IncrementalFirJvmCompilerRunner(
val codegenOutput = generateCodeFromIr(irInput, compilerEnvironment, performanceManager)
performanceManager?.notifyIRGenerationFinished()
performanceManager?.notifyGenerationFinished()
diagnosticsReporter.reportToMessageCollector(messageCollector, renderDiagnosticName)
writeOutputsIfNeeded(