Add compiler performance metrics

WIP
This commit is contained in:
Stanislav Erokhin
2021-07-02 19:35:34 +03:00
committed by nataliya.valtman
parent 64da19cb2d
commit 9becb2c468
13 changed files with 63 additions and 17 deletions
@@ -326,7 +326,12 @@ abstract class CompileServiceImplBase(
}
CompilerMode.NON_INCREMENTAL_COMPILER -> {
doCompile(sessionId, daemonReporter, tracer = null) { _, _ ->
compiler.exec(messageCollector, Services.EMPTY, k2PlatformArgs)
val exitCode = compiler.exec(messageCollector, Services.EMPTY, k2PlatformArgs)
val perfString = compiler.defaultPerformanceManager.renderCompilerPerformance()
(compilationResults as CompilationResults).add(CompilationResultCategory.BUILD_REPORT_LINES.code, arrayListOf(perfString))
exitCode
}
}
CompilerMode.INCREMENTAL_COMPILER -> {