We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a954a7a commit f66394eCopy full SHA for f66394e
ide-common/src/main/kotlin/org/digma/intellij/plugin/analytics/ApiPerformanceMonitor.kt
@@ -21,7 +21,7 @@ class ApiPerformanceMonitor(private val project:Project) {
21
return
22
}
23
24
- durations[apiName] = max(duration, durations[apiName] ?: 0)
+ durations[apiName] = max(duration, durations[apiName] ?: 0L)
25
26
durations[apiName]?.let {
27
report(apiName, it)
@@ -33,6 +33,9 @@ class ApiPerformanceMonitor(private val project:Project) {
33
34
35
36
+ //reset the max duration before reporting, new one will be collected
37
+ durations[apiName] = 0L
38
+
39
val details = mutableMapOf<String,Any>(
40
"api name" to apiName,
41
"duration" to duration
0 commit comments