File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
ide-common/src/main/kotlin/org/digma/intellij/plugin/analytics Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import com.intellij.openapi.components.Service
44import com.intellij.openapi.project.Project
55import org.digma.intellij.plugin.common.FrequencyDetector
66import org.digma.intellij.plugin.posthog.ActivityMonitor
7+ import java.util.concurrent.ConcurrentHashMap
78import kotlin.math.max
89import kotlin.time.Duration.Companion.minutes
910import kotlin.time.toJavaDuration
@@ -14,7 +15,7 @@ class ApiPerformanceMonitor(private val project:Project) {
1415
1516 private val frequencyDetector = FrequencyDetector (10 .minutes.toJavaDuration())
1617
17- private val durations = mutableMapOf<String ,Long >()
18+ private val durations = ConcurrentHashMap ( mutableMapOf<String ,Long >() )
1819
1920 fun addPerformance (apiName : String , duration : Long ) {
2021 if (duration < 2000 ) {
You can’t perform that action at this time.
0 commit comments