Update kotlin report properties

-add kotlin.build.report.output to add file/http/build_scan reports
-all reports verbose by default
-verbose reports includes compiler metrics
-fix "custom value exceed length limit"
This commit is contained in:
nataliya.valtman
2022-01-15 17:11:32 +03:00
committed by Space
parent 72656b49f4
commit 791762d7ea
20 changed files with 224 additions and 112 deletions
@@ -14,6 +14,8 @@ enum class BuildPerformanceMetric(val parent: BuildPerformanceMetric? = null, va
LOOKUP_SIZE(CACHE_DIRECTORY_SIZE, "Lookups size"),
SNAPSHOT_SIZE(CACHE_DIRECTORY_SIZE, "ABI snapshot size"),
COMPILE_ITERATION(parent = null, "Total compiler iteration"),
// Metrics for the `kotlin.incremental.useClasspathSnapshot` feature
ORIGINAL_CLASSPATH_SNAPSHOT_SIZE(parent = null, "Size of the original classpath snapshot (before shrinking)"),
SHRUNK_CLASSPATH_SNAPSHOT_SIZE(parent = null, "Size of the shrunk classpath snapshot"),
@@ -21,7 +21,7 @@ class BuildPerformanceMetrics : Serializable {
}
}
fun add(metric: BuildPerformanceMetric, value: Long) {
fun add(metric: BuildPerformanceMetric, value: Long = 1) {
myBuildMetrics[metric] = myBuildMetrics.getOrDefault(metric, 0) + value
}