Yang
08/15/2024, 1:44 AM| Stat | 2.0.10 | 2.0.20-RC2 | Diff |
|-------------------------------------|----------------------|---------------------|--------|
| Peak memory usage (G1GC) | 6.7 GiB/8 GiB (84.7%)| 7.9 GiB/8 GiB (99.4%)| 17.36% |
| Overall build time | 28m 54.257s | 31m 11.100s | 7.89% |
| Execution time | 20m 23.815s | 22m 55.517s | 12.40% |
| Execution time (critical path) | 16m 54.052s | 19m 0.971s | 12.52% |
| KotlinCompile | 25m 22.511s | 31m 33.161s | 24.34% |
| KotlinCompile (critical path) | 2m 10.669s | 2m 51.676s | 31.30% |
| KspTaskJvm | 9m 51.438s | 15m 13.355s | 54.57% |
| KspTaskJvm (critical path) | 47.956s | 56.815s | 18.46% |
| KaptGenerateStubTask | 8m 33.081s | 9m 38.056s | 12.82% |
| KaptGenerateStubTask (critical path)| 1m 3.876s | 1m 12.567s | 13.61% |
| KaptWithoutKotlincTask | 8m 47.751s | 10m 36.795s | 21.25% |
| KaptWithoutKotlincTask (critical path)| 49.884s | 1m 6.280s | 32.94% |
Yang
08/15/2024, 1:45 AMGradle start parameters:
tasks = [app:assembleDebug, app:bundleRelease, app-rewards:assembleDebug, app-rewards:bundleRelease]
excluded tasks = []
current dir = /home/circleci/repo
project properties args = [enableFirebasePerformance: , enableDynatrace: ]
system properties args = []
Time metrics:
Total Gradle task time: 5,858.89 s
Spent time before task action: 113.20 s
Task action before worker execution: 71.58 s
Run compilation in Gradle worker: 2,121.70 s
Clear jar cache: 0.69 s
Clear output: 0.01 s
Connect to Kotlin daemon: 13.06 s
Calculate output size: 0.76 s
Run compilation: 1,632.00 s
Non incremental compilation in daemon: 474.29 s
Incremental compilation in daemon: 1,624.15 s
Store build info: 0.00 s
Clear outputs on rebuild: 0.00 s
Update caches: 7.34 s
Sources compilation round: 1,526.16 s
Compiler initialization time: 26.56 s
Compiler code analysis: 818.16 s
Compiler IR translation: 281.40 s
Compiler code generation: 396.67 s
Compiler IR lowering: 187.10 s
Compiler IR generation: 209.36 s
Write history file: 0.01 s
Shrink and save current classpath snapshot after compilation: 25.36 s
Shrink current classpath snapshot non-incrementally: 24.07 s
Load current classpath snapshot: 5.01 s
Save shrunk current classpath snapshot: 0.58 s
Start gradle worker: 81.91 s
Size metrics:
Total size of the cache directory: 576.4 MB
ABI snapshot size: 23.6 KB
Increase memory usage: 116.3 GB
Total memory usage at the end of build: 2,013.1 GB
Total compiler iteration: 493
Number of lines analyzed: 3131058
Number of lines for code generation: 1997318
Analysis lines per second: 1538797
Code generation lines per second: 1635668
Compiler IR translation line number: 1997318
Compiler IR lowering line number: 1997318
Compiler IR generation line number: 1997318
Number of times classpath snapshot is shrunk and saved after compilation: 493
Number of classpath entries: 51607
Size of classpath snapshot: 4.8 GB
Size of shrunk classpath snapshot: 124.2 MB
Number of times classpath snapshot is loaded: 493
Number of cache hits when loading classpath entry snapshots: 49386
Number of cache misses when loading classpath entry snapshots: 2221
Start time of task action: 40095-09-10T12:23:27
Build attributes:
REBUILD_REASON:
Incremental compilation is not enabled(205)
Unknown Gradle changes(493)
Total time for Kotlin tasks: 1,937.20 s (33.1 % of all tasks time)
Yang
08/15/2024, 1:46 AMGradle start parameters:
tasks = [app:assembleDebug, app:bundleRelease, app-rewards:assembleDebug, app-rewards:bundleRelease]
excluded tasks = []
current dir = /home/circleci/repo
project properties args = [enableFirebasePerformance: , enableDynatrace: ]
system properties args = []
Time metrics:
Total Gradle task time: 7,051.49 s
Spent time before task action: 263.34 s
Task action before worker execution: 90.20 s
Run compilation in Gradle worker: 2,652.15 s
Clear jar cache: 1.23 s
Clear output: 0.18 s
Connect to Kotlin daemon: 25.11 s
Calculate output size: 0.92 s
Run compilation: 2,012.70 s
Non incremental compilation in daemon: 609.93 s
Incremental compilation in daemon: 2,003.89 s
Store build info: 0.32 s
Clear outputs on rebuild: 0.01 s
Update caches: 8.10 s
Sources compilation round: 1,883.45 s
Compiler initialization time: 31.89 s
Compiler code analysis: 983.71 s
Compiler IR translation: 399.33 s
Compiler code generation: 464.83 s
Compiler IR lowering: 225.20 s
Compiler IR generation: 239.45 s
Write history file: 0.03 s
Shrink and save current classpath snapshot after compilation: 27.78 s
Shrink current classpath snapshot non-incrementally: 25.72 s
Load current classpath snapshot: 5.56 s
Save shrunk current classpath snapshot: 1.32 s
Start gradle worker: 55.79 s
Size metrics:
Total size of the cache directory: 576.4 MB
ABI snapshot size: 23.6 KB
Increase memory usage: 96.2 GB
Total memory usage at the end of build: 1,563.7 GB
Total compiler iteration: 493
Number of lines analyzed: 3131058
Number of lines for code generation: 1997318
Analysis lines per second: 1290518
Code generation lines per second: 1415086
Compiler IR translation line number: 1997318
Compiler IR lowering line number: 1997318
Compiler IR generation line number: 1997318
Number of times classpath snapshot is shrunk and saved after compilation: 493
Number of classpath entries: 51607
Size of classpath snapshot: 4.8 GB
Size of shrunk classpath snapshot: 124.1 MB
Number of times classpath snapshot is loaded: 493
Number of cache hits when loading classpath entry snapshots: 49995
Number of cache misses when loading classpath entry snapshots: 1612
Start time of task action: 40095-09-10T06:13:50
Build attributes:
REBUILD_REASON:
Incremental compilation is not enabled(205)
Unknown Gradle changes(493)
Total time for Kotlin tasks: 2,384.36 s (33.8 % of all tasks time)
Yang
08/15/2024, 1:47 AMYang
08/15/2024, 1:49 AMAlexander.Likhachev
08/15/2024, 9:10 AMTatiana Bogdanova [JetBrains]
08/15/2024, 9:32 AMYang
08/15/2024, 11:39 AMYang
08/15/2024, 11:40 AMAlexander.Likhachev
08/15/2024, 12:54 PMTatiana Bogdanova [JetBrains]
08/15/2024, 1:11 PMYang
08/15/2024, 3:23 PMYang
08/15/2024, 3:26 PMYang
08/16/2024, 8:34 AMkirillrakhman
08/19/2024, 1:09 PMYang
08/19/2024, 1:35 PMYang
08/19/2024, 11:01 PMtapchicoma
08/20/2024, 7:56 AMYang
08/20/2024, 11:28 AMYang
08/22/2024, 8:25 AMtapchicoma
08/22/2024, 8:27 AMthe sweat spot is about 10gInteresting. Do you really need such amount of heap size for both Gradle and Kotlin daemons? How many Gradle subprojects your project has? And do you have some "fat" subproject with more than 10_000 LoC?
Yang
08/22/2024, 8:35 AMtapchicoma
08/22/2024, 8:35 AMYang
08/22/2024, 8:36 AMtapchicoma
08/22/2024, 8:38 AMYang
08/22/2024, 8:42 AMYang
08/22/2024, 8:46 AM