FIR: report lowering time in FullPipelineModularizedTest
This commit is contained in:
+6
-2
@@ -30,11 +30,12 @@ class FullPipelineModularizedTest : AbstractModularizedTest() {
|
|||||||
val gcInfo: Map<String, GCInfo>,
|
val gcInfo: Map<String, GCInfo>,
|
||||||
val analysis: Long,
|
val analysis: Long,
|
||||||
val translation: Long,
|
val translation: Long,
|
||||||
|
val lowering: Long,
|
||||||
val generation: Long,
|
val generation: Long,
|
||||||
val files: Int,
|
val files: Int,
|
||||||
val lines: Int
|
val lines: Int
|
||||||
) {
|
) {
|
||||||
constructor() : this(emptyMap(), 0, 0, 0, 0, 0)
|
constructor() : this(emptyMap(), 0, 0, 0, 0, 0, 0)
|
||||||
|
|
||||||
operator fun plus(other: CumulativeTime): CumulativeTime {
|
operator fun plus(other: CumulativeTime): CumulativeTime {
|
||||||
return CumulativeTime(
|
return CumulativeTime(
|
||||||
@@ -43,13 +44,14 @@ class FullPipelineModularizedTest : AbstractModularizedTest() {
|
|||||||
},
|
},
|
||||||
analysis + other.analysis,
|
analysis + other.analysis,
|
||||||
translation + other.translation,
|
translation + other.translation,
|
||||||
|
lowering + other.lowering,
|
||||||
generation + other.generation,
|
generation + other.generation,
|
||||||
files + other.files,
|
files + other.files,
|
||||||
lines + other.lines
|
lines + other.lines
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun totalTime() = analysis + translation + generation
|
fun totalTime() = analysis + translation + lowering + generation
|
||||||
}
|
}
|
||||||
|
|
||||||
private lateinit var totalPassResult: CumulativeTime
|
private lateinit var totalPassResult: CumulativeTime
|
||||||
@@ -126,6 +128,7 @@ class FullPipelineModularizedTest : AbstractModularizedTest() {
|
|||||||
}
|
}
|
||||||
phase("Analysis", total.analysis, total.files, total.lines)
|
phase("Analysis", total.analysis, total.files, total.lines)
|
||||||
phase("Translation", total.translation, total.files, total.lines)
|
phase("Translation", total.translation, total.files, total.lines)
|
||||||
|
phase("Lowering", total.lowering, total.files, total.lines)
|
||||||
phase("Generation", total.generation, total.files, total.lines)
|
phase("Generation", total.generation, total.files, total.lines)
|
||||||
|
|
||||||
separator()
|
separator()
|
||||||
@@ -264,6 +267,7 @@ class FullPipelineModularizedTest : AbstractModularizedTest() {
|
|||||||
gcInfo,
|
gcInfo,
|
||||||
analysisMeasurement?.milliseconds ?: 0,
|
analysisMeasurement?.milliseconds ?: 0,
|
||||||
irMeasurements.firstOrNull { it.kind == IRMeasurement.Kind.TRANSLATION }?.milliseconds ?: 0,
|
irMeasurements.firstOrNull { it.kind == IRMeasurement.Kind.TRANSLATION }?.milliseconds ?: 0,
|
||||||
|
irMeasurements.firstOrNull { it.kind == IRMeasurement.Kind.LOWERING }?.milliseconds ?: 0,
|
||||||
irMeasurements.firstOrNull { it.kind == IRMeasurement.Kind.GENERATION }?.milliseconds ?: 0,
|
irMeasurements.firstOrNull { it.kind == IRMeasurement.Kind.GENERATION }?.milliseconds ?: 0,
|
||||||
files ?: 0,
|
files ?: 0,
|
||||||
lines ?: 0
|
lines ?: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user