diff options
Diffstat (limited to 'platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt')
-rw-r--r-- | platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt | 52 |
1 files changed, 1 insertions, 51 deletions
diff --git a/platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt b/platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt index 495348b196db..f7fa953ce974 100644 --- a/platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt +++ b/platform/lang-impl/src/com/intellij/util/indexing/diagnostic/ProjectIndexingHistory.kt @@ -33,56 +33,6 @@ interface ProjectIndexingHistory { val visibleTimeToAllThreadsTimeRatio: Double } -/** - * isFull - if the whole project was rescanned (instead of a part of it) - */ -enum class ScanningType(val isFull: Boolean) { - /** - * Full project rescan forced by user via Repair IDE action - */ - FULL_FORCED(true), - - /** - * It's mandatory full project rescan on project open - */ - FULL_ON_PROJECT_OPEN(true), - - /** - * Full project rescan requested by some code - */ - FULL(true), - - - /** - * Partial rescan forced by user via Repair IDE action on a limited scope (not full project) - */ - PARTIAL_FORCED(false), - - /** - * Partial project rescan requested by some code - */ - PARTIAL(false), - - /** - * Some files were considered changed and therefore rescanned - */ - REFRESH(false); - - companion object { - fun merge(first: ScanningType, second: ScanningType): ScanningType = returnFirstFound(first, second, - FULL_FORCED, FULL_ON_PROJECT_OPEN, FULL, - PARTIAL_FORCED, PARTIAL, - REFRESH) - - private fun returnFirstFound(first: ScanningType, second: ScanningType, vararg types: ScanningType): ScanningType { - for (type in types) { - if (first == type || second == type) return type - } - throw IllegalStateException("Unexpected ScanningType $first $second") - } - } -} - interface StatsPerFileType { val totalNumberOfFiles: Int val totalBytes: BytesNumber @@ -108,7 +58,7 @@ interface StatsPerIndexer { interface IndexingTimes { val indexingReason: String? - val scanningType: ScanningType + val wasFullIndexing: Boolean val updatingStart: ZonedDateTime val totalUpdatingTime: TimeNano val updatingEnd: ZonedDateTime |