[K2] Move Analysis perf calculation inside corresponding fronted runner
This way it is easier to understand where `notifyAnalysis*` methods were called. Also, in K1, we are not including `checkKotlinPackageUsageFor*` in the analysis time.
This commit is contained in:
-4
@@ -213,8 +213,6 @@ open class IncrementalFirJvmCompilerRunner(
|
||||
configuration
|
||||
)
|
||||
|
||||
performanceManager?.notifyAnalysisStarted()
|
||||
|
||||
val analysisResults =
|
||||
compileModuleToAnalyzedFir(
|
||||
compilerInput,
|
||||
@@ -225,8 +223,6 @@ open class IncrementalFirJvmCompilerRunner(
|
||||
performanceManager
|
||||
)
|
||||
|
||||
performanceManager?.notifyAnalysisFinished()
|
||||
|
||||
// TODO: consider what to do if many compilations find a main class
|
||||
if (mainClassFqName == null && configuration.get(JVMConfigurationKeys.OUTPUT_JAR) != null) {
|
||||
mainClassFqName = findMainClass(analysisResults.outputs.last().fir)
|
||||
|
||||
Reference in New Issue
Block a user