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:
@@ -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"),
|
||||
|
||||
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user