From 8992e2c8da04cd205b01b27f508869c68c85b7b0 Mon Sep 17 00:00:00 2001 From: Maksim Zuev Date: Wed, 25 Oct 2023 10:18:05 +0200 Subject: [PATCH] [debugger] Fix breakpoints statistics: set the full list of jvm-related breakpoint types GitOrigin-RevId: 28981b6c85597fa488d35c7e90d737af3ef13d0f --- .../intellij/debugger/statistics/DebuggerStatistics.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/java/debugger/impl/src/com/intellij/debugger/statistics/DebuggerStatistics.kt b/java/debugger/impl/src/com/intellij/debugger/statistics/DebuggerStatistics.kt index 37cfceee1202..9095ee06caa4 100644 --- a/java/debugger/impl/src/com/intellij/debugger/statistics/DebuggerStatistics.kt +++ b/java/debugger/impl/src/com/intellij/debugger/statistics/DebuggerStatistics.kt @@ -10,11 +10,17 @@ import kotlin.math.roundToLong object DebuggerStatistics : CounterUsagesCollector() { override fun getGroup(): EventLogGroup = GROUP - private val GROUP = EventLogGroup("java.debugger", 3) + private val GROUP = EventLogGroup("java.debugger", 4) // fields + + /** + * These are XBreakpointType IDs related to JVM languages. + * + * Use [XBreakpointType.EXTENSION_POINT_NAME.extensions.map { it.id }] to get the full list. + */ private val breakpointTypeField = EventFields.String("type", listOf( - "java-exception", "java-collection", + "java-exception", "java-collection", "java-wildcard-method", "java-line", "java-field", "java-method", "kotlin-line", "kotlin-field", "kotlin-function", ))