[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:
-4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user