KT-45777: Add debug log messages for classpath snapshot feature

Also clean up classpath snapshot shrinking a bit to make it clearer.

^KT-45777 In Progress
This commit is contained in:
Hung Nguyen
2022-03-22 23:05:16 +00:00
committed by teamcity
parent 1d1c6d5e0b
commit d70dbf3146
13 changed files with 236 additions and 125 deletions
@@ -5,7 +5,7 @@
package org.jetbrains.kotlin.incremental.classpathDiff
import org.jetbrains.kotlin.build.report.metrics.DoNothingBuildMetricsReporter
import org.jetbrains.kotlin.build.report.DoNothingBuildReporter
import org.jetbrains.kotlin.incremental.ChangesEither
import org.jetbrains.kotlin.incremental.LookupSymbol
import org.jetbrains.kotlin.incremental.classpathDiff.ClassSnapshotGranularity.CLASS_LEVEL
@@ -437,7 +437,7 @@ private fun computeClasspathChanges(
return ClasspathChangesComputer.computeChangedAndImpactedSet(
currentClasspathSnapshot.removeDuplicateAndInaccessibleClasses(),
previousClasspathSnapshot.removeDuplicateAndInaccessibleClasses(),
DoNothingBuildMetricsReporter
ClasspathSnapshotBuildReporter(DoNothingBuildReporter)
).normalize()
}