disable statistics for 181 as FUS is only available since 182
This commit is contained in:
+7
@@ -6,9 +6,16 @@
|
||||
package org.jetbrains.kotlin.statistics
|
||||
|
||||
import com.intellij.internal.statistic.service.fus.collectors.ApplicationUsageTriggerCollector
|
||||
import com.intellij.internal.statistic.service.fus.collectors.FUSApplicationUsageTrigger
|
||||
|
||||
open class KotlinStatisticsTrigger(private val groupIdSufix: String) : ApplicationUsageTriggerCollector() {
|
||||
override fun getGroupId() = "statistics.kotlin.$groupIdSufix"
|
||||
|
||||
companion object {
|
||||
public fun trigger(clazz: Class<out KotlinStatisticsTrigger>, event: String) {
|
||||
FUSApplicationUsageTrigger.getInstance().trigger(clazz, event)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open class KotlinIdeStatisticsTrigger(groupIdSufix: String) : KotlinStatisticsTrigger("ide.$groupIdSufix")
|
||||
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
|
||||
* that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.statistics
|
||||
|
||||
open class KotlinStatisticsTrigger(private val groupIdSufix: String) {
|
||||
companion object {
|
||||
public fun trigger(clazz: Class<out KotlinStatisticsTrigger>, event: String) {
|
||||
// FUS is not working for 181
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
open class KotlinIdeStatisticsTrigger(groupIdSufix: String) : KotlinStatisticsTrigger("ide.$groupIdSufix")
|
||||
|
||||
open class KotlinGradlePluginStatisticsTrigger(groupIdSufix: String) : KotlinStatisticsTrigger("gradle.$groupIdSufix")
|
||||
|
||||
class KotlinVersionTrigger : KotlinGradlePluginStatisticsTrigger("kotlin_version")
|
||||
|
||||
class KotlinTargetTrigger : KotlinGradlePluginStatisticsTrigger("target")
|
||||
|
||||
class KotlinProjectLibraryUsageTrigger : KotlinGradlePluginStatisticsTrigger("library")
|
||||
|
||||
open class KotlinIdeActionTrigger(groupIdSufix: String? = null) : KotlinIdeStatisticsTrigger("action" + (if (groupIdSufix != null) ".$groupIdSufix" else ""))
|
||||
|
||||
class KotlinIdeUndoTrigger : KotlinIdeActionTrigger("undo")
|
||||
|
||||
class KotlinIdeQuickfixTrigger : KotlinIdeActionTrigger("quickfix")
|
||||
|
||||
class KotlinIdeRefactoringTrigger : KotlinIdeActionTrigger("refactoring")
|
||||
|
||||
class KotlinIdeIntentionTrigger : KotlinIdeActionTrigger("intention")
|
||||
|
||||
class KotlinIdeInspectionTrigger : KotlinIdeActionTrigger("inspection")
|
||||
|
||||
class KotlinIdeExceptionTrigger : KotlinIdeStatisticsTrigger("exception")
|
||||
Reference in New Issue
Block a user