Add compiler IRMeasurement to build reports

#KT-65091: Fixed
This commit is contained in:
Nataliya.Valtman
2024-02-14 14:22:00 +01:00
committed by Space Team
parent b4b1c7cd69
commit 090407b7e3
4 changed files with 44 additions and 13 deletions
@@ -81,6 +81,10 @@ enum class GradleBuildPerformanceMetric(
CODE_GENERATED_LINES_NUMBER(parent = COMPILE_ITERATION, "Number of lines for code generation", type = ValueType.NUMBER),
ANALYSIS_LPS(parent = COMPILE_ITERATION, "Analysis lines per second", type = ValueType.NUMBER),
CODE_GENERATION_LPS(parent = COMPILE_ITERATION, "Code generation lines per second", type = ValueType.NUMBER),
IR_TRANSLATION_LINES_NUMBER(COMPILE_ITERATION, "Compiler IR translation line number", ValueType.NUMBER),
IR_LOWERING_LINES_NUMBER(COMPILE_ITERATION, "Compiler IR lowering line number", ValueType.NUMBER),
IR_GENERATION_LINES_NUMBER(COMPILE_ITERATION, "Compiler IR generation line number", ValueType.NUMBER),
// Metrics for the `kotlin.incremental.useClasspathSnapshot` feature
CLASSPATH_ENTRY_SNAPSHOT_TRANSFORM_EXECUTION_COUNT(
@@ -162,7 +166,7 @@ enum class GradleBuildPerformanceMetric(
}
companion object {
const val serialVersionUID = 1L
const val serialVersionUID = 2L
val children by lazy {
entries.filter { it.parent != null }.groupBy { it.parent }
@@ -112,6 +112,9 @@ enum class GradleBuildTime(private val parent: GradleBuildTime? = null, private
COMPILER_INITIALIZATION(COMPILER_PERFORMANCE, "Compiler initialization time"),
CODE_ANALYSIS(COMPILER_PERFORMANCE, "Compiler code analysis"),
CODE_GENERATION(COMPILER_PERFORMANCE, "Compiler code generation"),
IR_TRANSLATION(COMPILER_PERFORMANCE, "Compiler IR translation"),
IR_LOWERING(COMPILER_PERFORMANCE, "Compiler IR lowering"),
IR_GENERATION(COMPILER_PERFORMANCE, "Compiler IR generation"),
IC_WRITE_HISTORY_FILE(INCREMENTAL_COMPILATION_DAEMON, "Write history file"),
SHRINK_AND_SAVE_CURRENT_CLASSPATH_SNAPSHOT_AFTER_COMPILATION(INCREMENTAL_COMPILATION_DAEMON, "Shrink and save current classpath snapshot after compilation"),
INCREMENTAL_SHRINK_CURRENT_CLASSPATH_SNAPSHOT(SHRINK_AND_SAVE_CURRENT_CLASSPATH_SNAPSHOT_AFTER_COMPILATION, "Shrink current classpath snapshot incrementally"),
@@ -145,7 +148,7 @@ enum class GradleBuildTime(private val parent: GradleBuildTime? = null, private
override fun getName(): String = this.name
companion object {
const val serialVersionUID = 1L
const val serialVersionUID = 2L
val children by lazy {
entries.filter { it.parent != null }.groupBy { it.parent }