# Required outputs. Any combinations are allowed
kotlin.build.report.output=file,http,build_scan
# Optional. Output directory for file-based reports. Default: build/reports/kotlin-build/
kotlin.build.report.file.output_dir=kotlin-reports
# Mandatory if http output is used. Where to post HTTP(S)-based reports
kotlin.build.report.http.url=http://127.0.0.1:8080
# Optional. User and password if the HTTP endpoint requires authentication
kotlin.build.report.http.user=someUser
kotlin.build.report.http.password=somePassword
# Optional. Label for marking your build report (e.g. debug parameters)
kotlin.build.report.label=some_label
Task ':kotlin-gradle-plugin:compileCommonKotlin' finished in 39,73 s
Compilation log for task ':kotlin-gradle-plugin:compileCommonKotlin':
Non-incremental compilation will be performed: UNKNOWN_CHANGES_IN_GRADLE_INPUTS
Time metrics:
Total Gradle task time: 39,73 s
Task action: 0,09 s
Calculate output size: 0,01 s
Run compilation: 39,32 s
Incremental compilation in daemon: 39,27 s
Update caches: 0,40 s
Sources compilation round: 38,57 s
Compiler initialization time: 1,02 s
Compiler code analysis: 26,36 s
Compiler code generation: 10,87 s
Size metrics:
Total size of the cache directory: 6,2 MB
ABI snapshot size: 49 B
Total compiler iteration: 1
Build attributes:
REBUILD_REASON: Unknown Gradle changes
Total Gradle 任务时间显示了从任务执行到侦听器通知的时间。 任务操作仅指示在 Gradle 工作进程中安排编译作业的任务。 编译本身在 Gradle 工作进程中执行。 您可以在运行编译部分查看其编译时间。
以 Space 项目的这个构建报告为例。 我们有一个包含大量生成的源代码文件的模块。 虽然编译是增量的,但 Kotlin 编译器仍然必须在每次更改时重新分析大型源代码文件。
Compile iteration:
<a large="" generated="" source="" file="">
Time metrics:
Total Gradle task time: 108,98 s
Task action: 0,20 s
Backup output: 0,18 s
Connect to Kotlin daemon: 0,01 s
Calculate output size: 0,01 s
Run compilation: 108,23 s
Incremental compilation in daemon: 108,19 s
Calculate initial dirty sources set: 0,23 s
Analyze dependency changes: 0,03 s
Detect removed classes: 0,19 s
Update caches: 0,28 s
Sources compilation round: 107,49 s
Compiler initialization time: 0,12 s
Compiler code analysis: 80,26 s
Compiler code generation: 25,04 s
Size metrics:
Total size of the cache directory: 3,2 MB
ABI snapshot size: 643 B
Total compiler iteration: 1