profiler-md 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/cli/index.mjs +14155 -5081
  2. package/dist/index.d.mts +1312 -263
  3. package/dist/index.js +2 -2
  4. package/docs/api.md +138 -0
  5. package/docs/formats/callgrind.md +25 -0
  6. package/docs/formats/collapsed.md +5 -3
  7. package/docs/formats/ghc-eventlog.md +20 -0
  8. package/docs/formats/ghc-json-profile.md +23 -0
  9. package/docs/formats/hprof.md +21 -0
  10. package/docs/formats/jfr.md +3 -3
  11. package/docs/formats/jsc-heap-snapshot.md +11 -5
  12. package/docs/formats/memray.md +30 -0
  13. package/docs/formats/perf.md +74 -0
  14. package/docs/formats/pprof.md +10 -6
  15. package/docs/formats/speedscope.md +7 -5
  16. package/docs/formats/systing.md +27 -0
  17. package/docs/formats/v8-cpu-profile.md +4 -3
  18. package/docs/formats/v8-heap-profile.md +8 -5
  19. package/docs/formats/v8-heap-snapshot.md +10 -5
  20. package/docs/formats/webkit-timeline-recording.md +6 -0
  21. package/docs/languages/c.md +138 -18
  22. package/docs/languages/csharp.md +7 -7
  23. package/docs/languages/elixir.md +22 -15
  24. package/docs/languages/fortran.md +141 -0
  25. package/docs/languages/go.md +36 -13
  26. package/docs/languages/haskell.md +134 -0
  27. package/docs/languages/java.md +89 -34
  28. package/docs/languages/javascript.md +37 -31
  29. package/docs/languages/julia.md +96 -14
  30. package/docs/languages/php.md +10 -4
  31. package/docs/languages/python.md +121 -15
  32. package/docs/languages/ruby.md +19 -22
  33. package/docs/languages/rust.md +40 -10
  34. package/docs/languages/swift.md +135 -0
  35. package/docs/languages/zig.md +155 -0
  36. package/package.json +47 -46
  37. package/readme.md +306 -242
  38. package/skills/profile-optimize/SKILL.md +162 -0
  39. package/docs/languages/cpp.md +0 -160
  40. package/docs/languages/erlang.md +0 -46
  41. package/docs/languages/fsharp.md +0 -52
  42. package/docs/languages/kotlin.md +0 -170
  43. package/docs/languages/typescript.md +0 -276
  44. package/examples/output/c.gperftools.cpu.base.pprof.md +0 -324
  45. package/examples/output/c.gperftools.cpu.current.pprof.md +0 -271
  46. package/examples/output/c.gperftools.cpu.diff.pprof.md +0 -98
  47. package/examples/output/c.gperftools.heap.base.pprof.md +0 -362
  48. package/examples/output/c.gperftools.heap.current.pprof.md +0 -362
  49. package/examples/output/c.gperftools.heap.diff.pprof.md +0 -28
  50. package/examples/output/cpp.gperftools.cpu.base.pprof.md +0 -557
  51. package/examples/output/cpp.gperftools.cpu.current.pprof.md +0 -573
  52. package/examples/output/cpp.gperftools.cpu.diff.pprof.md +0 -122
  53. package/examples/output/cpp.gperftools.heap.base.pprof.md +0 -67
  54. package/examples/output/cpp.gperftools.heap.current.pprof.md +0 -67
  55. package/examples/output/cpp.gperftools.heap.diff.pprof.md +0 -19
  56. package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +0 -411
  57. package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +0 -412
  58. package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +0 -122
  59. package/examples/output/elixir.eflambe.cpu.base.collapsed.md +0 -399
  60. package/examples/output/elixir.eflambe.cpu.current.collapsed.md +0 -398
  61. package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +0 -92
  62. package/examples/output/erlang.eflambe.cpu.base.collapsed.md +0 -147
  63. package/examples/output/erlang.eflambe.cpu.current.collapsed.md +0 -147
  64. package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +0 -18
  65. package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +0 -324
  66. package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +0 -314
  67. package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +0 -119
  68. package/examples/output/go.pprof.block.base.pprof.md +0 -86
  69. package/examples/output/go.pprof.block.current.pprof.md +0 -83
  70. package/examples/output/go.pprof.block.diff.pprof.md +0 -42
  71. package/examples/output/go.pprof.cpu.base.pprof.md +0 -81
  72. package/examples/output/go.pprof.cpu.current.pprof.md +0 -70
  73. package/examples/output/go.pprof.cpu.diff.pprof.md +0 -52
  74. package/examples/output/go.pprof.goroutine.base.pprof.md +0 -43
  75. package/examples/output/go.pprof.goroutine.current.pprof.md +0 -43
  76. package/examples/output/go.pprof.goroutine.diff.pprof.md +0 -13
  77. package/examples/output/go.pprof.heap-alloc.base.pprof.md +0 -154
  78. package/examples/output/go.pprof.heap-alloc.current.pprof.md +0 -146
  79. package/examples/output/go.pprof.heap-alloc.diff.pprof.md +0 -67
  80. package/examples/output/go.pprof.heap.base.pprof.md +0 -154
  81. package/examples/output/go.pprof.heap.current.pprof.md +0 -146
  82. package/examples/output/go.pprof.heap.diff.pprof.md +0 -67
  83. package/examples/output/go.pprof.mutex.base.pprof.md +0 -55
  84. package/examples/output/go.pprof.mutex.current.pprof.md +0 -41
  85. package/examples/output/go.pprof.mutex.diff.pprof.md +0 -31
  86. package/examples/output/go.pprof.threadcreate.base.pprof.md +0 -55
  87. package/examples/output/go.pprof.threadcreate.current.pprof.md +0 -55
  88. package/examples/output/go.pprof.threadcreate.diff.pprof.md +0 -19
  89. package/examples/output/java.async-profiler.all.base.jfr.md +0 -1071
  90. package/examples/output/java.async-profiler.all.current.jfr.md +0 -1007
  91. package/examples/output/java.async-profiler.all.diff.jfr.md +0 -268
  92. package/examples/output/java.async-profiler.alloc.base.jfr.md +0 -425
  93. package/examples/output/java.async-profiler.alloc.current.jfr.md +0 -413
  94. package/examples/output/java.async-profiler.alloc.diff.jfr.md +0 -99
  95. package/examples/output/java.async-profiler.cpu.base.collapsed.md +0 -367
  96. package/examples/output/java.async-profiler.cpu.base.jfr.md +0 -485
  97. package/examples/output/java.async-profiler.cpu.current.collapsed.md +0 -355
  98. package/examples/output/java.async-profiler.cpu.current.jfr.md +0 -488
  99. package/examples/output/java.async-profiler.cpu.diff.collapsed.md +0 -117
  100. package/examples/output/java.async-profiler.cpu.diff.jfr.md +0 -118
  101. package/examples/output/java.async-profiler.live.base.jfr.md +0 -697
  102. package/examples/output/java.async-profiler.live.current.jfr.md +0 -684
  103. package/examples/output/java.async-profiler.live.diff.jfr.md +0 -191
  104. package/examples/output/java.async-profiler.lock.base.jfr.md +0 -140
  105. package/examples/output/java.async-profiler.lock.current.jfr.md +0 -108
  106. package/examples/output/java.async-profiler.lock.diff.jfr.md +0 -44
  107. package/examples/output/java.async-profiler.nativemem.base.jfr.md +0 -222
  108. package/examples/output/java.async-profiler.nativemem.current.jfr.md +0 -222
  109. package/examples/output/java.async-profiler.nativemem.diff.jfr.md +0 -65
  110. package/examples/output/java.async-profiler.wall.base.jfr.md +0 -400
  111. package/examples/output/java.async-profiler.wall.current.jfr.md +0 -420
  112. package/examples/output/java.async-profiler.wall.diff.jfr.md +0 -94
  113. package/examples/output/java.jdk.all.base.jfr.md +0 -1024
  114. package/examples/output/java.jdk.all.current.jfr.md +0 -1010
  115. package/examples/output/java.jdk.all.diff.jfr.md +0 -311
  116. package/examples/output/java.jdk.alloc.base.jfr.md +0 -1024
  117. package/examples/output/java.jdk.alloc.current.jfr.md +0 -1046
  118. package/examples/output/java.jdk.alloc.diff.jfr.md +0 -312
  119. package/examples/output/java.jdk.cpu.base.jfr.md +0 -1023
  120. package/examples/output/java.jdk.cpu.current.jfr.md +0 -1039
  121. package/examples/output/java.jdk.cpu.diff.jfr.md +0 -285
  122. package/examples/output/java.jdk.live.base.jfr.md +0 -1029
  123. package/examples/output/java.jdk.live.current.jfr.md +0 -1035
  124. package/examples/output/java.jdk.live.diff.jfr.md +0 -289
  125. package/examples/output/java.jdk.lock.base.jfr.md +0 -1040
  126. package/examples/output/java.jdk.lock.current.jfr.md +0 -1051
  127. package/examples/output/java.jdk.lock.diff.jfr.md +0 -339
  128. package/examples/output/javascript.bun.base.cpuprofile.md +0 -73
  129. package/examples/output/javascript.bun.base.heapsnapshot.md +0 -608
  130. package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +0 -480
  131. package/examples/output/javascript.bun.current.cpuprofile.md +0 -73
  132. package/examples/output/javascript.bun.current.heapsnapshot.md +0 -608
  133. package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +0 -480
  134. package/examples/output/javascript.bun.diff.cpuprofile.md +0 -54
  135. package/examples/output/javascript.bun.diff.heapsnapshot.md +0 -48
  136. package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +0 -62
  137. package/examples/output/javascript.chrome.base.cpuprofile.md +0 -163
  138. package/examples/output/javascript.chrome.base.heapprofile.md +0 -32
  139. package/examples/output/javascript.chrome.base.heapsnapshot.md +0 -649
  140. package/examples/output/javascript.chrome.current.cpuprofile.md +0 -149
  141. package/examples/output/javascript.chrome.current.heapprofile.md +0 -32
  142. package/examples/output/javascript.chrome.current.heapsnapshot.md +0 -647
  143. package/examples/output/javascript.chrome.diff.cpuprofile.md +0 -65
  144. package/examples/output/javascript.chrome.diff.heapprofile.md +0 -50
  145. package/examples/output/javascript.chrome.diff.heapsnapshot.md +0 -73
  146. package/examples/output/javascript.deno.base.cpuprofile.md +0 -122
  147. package/examples/output/javascript.deno.current.cpuprofile.md +0 -114
  148. package/examples/output/javascript.deno.diff.cpuprofile.md +0 -66
  149. package/examples/output/javascript.node.base.cpuprofile.md +0 -136
  150. package/examples/output/javascript.node.base.heapprofile.md +0 -56
  151. package/examples/output/javascript.node.base.heapsnapshot.md +0 -660
  152. package/examples/output/javascript.node.current.cpuprofile.md +0 -119
  153. package/examples/output/javascript.node.current.heapprofile.md +0 -52
  154. package/examples/output/javascript.node.current.heapsnapshot.md +0 -660
  155. package/examples/output/javascript.node.diff.cpuprofile.md +0 -70
  156. package/examples/output/javascript.node.diff.heapprofile.md +0 -34
  157. package/examples/output/javascript.node.diff.heapsnapshot.md +0 -39
  158. package/examples/output/javascript.pprof.cpu.base.pprof.md +0 -104
  159. package/examples/output/javascript.pprof.cpu.current.pprof.md +0 -120
  160. package/examples/output/javascript.pprof.cpu.diff.pprof.md +0 -63
  161. package/examples/output/javascript.pprof.heap.base.pprof.md +0 -86
  162. package/examples/output/javascript.pprof.heap.current.pprof.md +0 -57
  163. package/examples/output/javascript.pprof.heap.diff.pprof.md +0 -42
  164. package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +0 -388
  165. package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +0 -378
  166. package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +0 -122
  167. package/examples/output/julia.pprof-jl.alloc.base.pprof.md +0 -124
  168. package/examples/output/julia.pprof-jl.alloc.current.pprof.md +0 -126
  169. package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +0 -30
  170. package/examples/output/julia.pprof-jl.cpu.base.pprof.md +0 -177
  171. package/examples/output/julia.pprof-jl.cpu.current.pprof.md +0 -179
  172. package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +0 -64
  173. package/examples/output/kotlin.async-profiler.all.base.jfr.md +0 -920
  174. package/examples/output/kotlin.async-profiler.all.current.jfr.md +0 -925
  175. package/examples/output/kotlin.async-profiler.all.diff.jfr.md +0 -247
  176. package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +0 -467
  177. package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +0 -473
  178. package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +0 -122
  179. package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +0 -371
  180. package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +0 -472
  181. package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +0 -370
  182. package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +0 -445
  183. package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +0 -124
  184. package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +0 -125
  185. package/examples/output/kotlin.async-profiler.live.base.jfr.md +0 -934
  186. package/examples/output/kotlin.async-profiler.live.current.jfr.md +0 -917
  187. package/examples/output/kotlin.async-profiler.live.diff.jfr.md +0 -245
  188. package/examples/output/kotlin.async-profiler.lock.base.jfr.md +0 -1
  189. package/examples/output/kotlin.async-profiler.lock.current.jfr.md +0 -1
  190. package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +0 -1
  191. package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +0 -234
  192. package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +0 -234
  193. package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +0 -65
  194. package/examples/output/kotlin.async-profiler.wall.base.jfr.md +0 -452
  195. package/examples/output/kotlin.async-profiler.wall.current.jfr.md +0 -457
  196. package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +0 -125
  197. package/examples/output/kotlin.jdk.all.base.jfr.md +0 -1442
  198. package/examples/output/kotlin.jdk.all.current.jfr.md +0 -1343
  199. package/examples/output/kotlin.jdk.all.diff.jfr.md +0 -392
  200. package/examples/output/kotlin.jdk.alloc.base.jfr.md +0 -1418
  201. package/examples/output/kotlin.jdk.alloc.current.jfr.md +0 -1389
  202. package/examples/output/kotlin.jdk.alloc.diff.jfr.md +0 -383
  203. package/examples/output/kotlin.jdk.cpu.base.jfr.md +0 -1406
  204. package/examples/output/kotlin.jdk.cpu.current.jfr.md +0 -1374
  205. package/examples/output/kotlin.jdk.cpu.diff.jfr.md +0 -380
  206. package/examples/output/kotlin.jdk.live.base.jfr.md +0 -1378
  207. package/examples/output/kotlin.jdk.live.current.jfr.md +0 -1311
  208. package/examples/output/kotlin.jdk.live.diff.jfr.md +0 -381
  209. package/examples/output/kotlin.jdk.lock.base.jfr.md +0 -1427
  210. package/examples/output/kotlin.jdk.lock.current.jfr.md +0 -1374
  211. package/examples/output/kotlin.jdk.lock.diff.jfr.md +0 -386
  212. package/examples/output/php.excimer.wall.base.speedscope.json.md +0 -25
  213. package/examples/output/php.excimer.wall.current.speedscope.json.md +0 -25
  214. package/examples/output/php.excimer.wall.diff.speedscope.json.md +0 -29
  215. package/examples/output/python.py-spy.cpu.base.collapsed.md +0 -526
  216. package/examples/output/python.py-spy.cpu.base.speedscope.json.md +0 -37
  217. package/examples/output/python.py-spy.cpu.current.collapsed.md +0 -514
  218. package/examples/output/python.py-spy.cpu.current.speedscope.json.md +0 -37
  219. package/examples/output/python.py-spy.cpu.diff.collapsed.md +0 -122
  220. package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +0 -31
  221. package/examples/output/python.py-spy.wall.base.collapsed.md +0 -527
  222. package/examples/output/python.py-spy.wall.current.collapsed.md +0 -518
  223. package/examples/output/python.py-spy.wall.diff.collapsed.md +0 -122
  224. package/examples/output/ruby.rbspy.cpu.base.collapsed.md +0 -90
  225. package/examples/output/ruby.rbspy.cpu.base.pprof.md +0 -105
  226. package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +0 -105
  227. package/examples/output/ruby.rbspy.cpu.current.collapsed.md +0 -90
  228. package/examples/output/ruby.rbspy.cpu.current.pprof.md +0 -115
  229. package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +0 -115
  230. package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +0 -32
  231. package/examples/output/ruby.rbspy.cpu.diff.pprof.md +0 -44
  232. package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +0 -44
  233. package/examples/output/rust.pprof-rs.cpu.base.pprof.md +0 -60
  234. package/examples/output/rust.pprof-rs.cpu.current.pprof.md +0 -60
  235. package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +0 -24
@@ -1,392 +0,0 @@
1
- # Sampling profile diff
2
-
3
- 110 samples → 108 samples (-2 samples, -1.8%).
4
-
5
- | Category | Change | Delta | % | Samples |
6
- | -------- | -----: | ----: | ------------: | ------: |
7
- | ours | 0.0% | 0 | 54.5% → 55.6% | 60 |
8
- | stdlib | -4.0% | -2 | 45.5% → 44.4% | 50 → 48 |
9
-
10
- ## Hottest functions
11
-
12
- ### Self samples
13
-
14
- #### Regressions
15
-
16
- Functions with the largest increase in samples taken directly in the function body, excluding callees.
17
-
18
- | Change | Delta | % | Samples | Function | Location |
19
- | -----: | ----: | ----------: | ------: | ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
20
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `loadAllClassesFromJars(Collection, int, ClassHandler)` | `org.jetbrains.kotlin.preloading.ClassPreloadingUtils` |
21
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `processFunctionsByName(Name, List, Function1)` | `org.jetbrains.kotlin.fir.scopes.impl.FirAbstractImportingScope` |
22
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `enhancedFunctionImpl(FirFunctionSymbol, Name, List)` | `org.jetbrains.kotlin.fir.java.enhancement.FirSignatureEnhancement` |
23
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `check(CheckerContext, DiagnosticReporter, FirResolvedTypeRef)` | `org.jetbrains.kotlin.fir.analysis.checkers.type.FirUpperBoundViolatedTypeChecker` |
24
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `visitReceiverParameter(FirReceiverParameter, Object)` | `org.jetbrains.kotlin.fir.analysis.collectors.AbstractDiagnosticCollectorVisitor` |
25
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `check(CheckerContext, DiagnosticReporter, FirQualifiedAccessExpression)` | `org.jetbrains.kotlin.fir.analysis.checkers.expression.FirReifiedChecker` |
26
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `visitWhileLoop(FirWhileLoop, Object)` | `org.jetbrains.kotlin.fir.backend.Fir2IrVisitor` |
27
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `analyzeMainLoop()` | `org.jetbrains.kotlin.codegen.optimization.common.FastAnalyzer` |
28
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `analyze(String, MethodNode)` | `org.jetbrains.kotlin.codegen.optimization.temporaryVals.TemporaryValsAnalyzer` |
29
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `nextPowerOfTwo(long)` | `it.unimi.dsi.fastutil.HashCommon` |
30
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `isInitialized()` | `org.jetbrains.kotlin.metadata.ProtoBuf$Class` |
31
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `addDone(PsiBuilderImpl$StartMarker, PsiBuilderImpl$ProductionMarker)` | `com.intellij.lang.impl.MarkerProduction` |
32
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `advance()` | `org.jetbrains.kotlin.lexer._JetLexer` |
33
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `balanceWhiteSpaces()` | `com.intellij.lang.impl.PsiBuilderImpl` |
34
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `fromString(String, boolean)` | `org.jetbrains.kotlin.name.ClassId$Companion` |
35
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `stringsToBytes(String[])` | `org.jetbrains.kotlin.metadata.jvm.deserialization.UtfEncodingKt` |
36
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `<init>(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.jvm.JvmProtoBuf$StringTableTypes` |
37
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `loadTypeAnnotations(ProtoBuf$Type, NameResolver)` | `org.jetbrains.kotlin.fir.deserialization.FirBuiltinAnnotationDeserializer` |
38
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `freshTypeConstructor(TypeVariableMarker)` | `org.jetbrains.kotlin.fir.types.ConeInferenceContext` |
39
- | new | +1 | 0.0% → 0.9% | 0 → 1 | `transformAnnotationCall(FirAnnotationCall, ExpectedArgumentType)` | `org.jetbrains.kotlin.fir.resolve.transformers.FirCallCompletionResultsWriterTransformer` |
40
-
41
- #### Improvements
42
-
43
- Functions with the largest decrease in samples taken directly in the function body, excluding callees.
44
-
45
- | Change | Delta | % | Samples | Function | Location |
46
- | ------: | ----: | ----------: | ------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |
47
- | removed | -2 | 1.8% → 0.0% | 2 → 0 | `buildParameters()` | `org.jetbrains.kotlin.codegen.inline.ParametersBuilder` |
48
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `read(VirtualFile, KotlinCliJavaFileManager, GlobalSearchScope)` | `org.jetbrains.kotlin.resolve.jvm.modules.JavaModuleInfo$Companion` |
49
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `convertType(LighterASTNode)` | `org.jetbrains.kotlin.fir.lightTree.converter.LightTreeRawFirDeclarationBuilder` |
50
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `<init>(FirValueParameterSymbol, boolean, boolean, ModifierList, List, FirTypeRef, KtSourceElement, FirModuleData, boolean, boolean, List, Name, FirExpression, FirBasedSymbol, DestructuringDeclaration)` | `org.jetbrains.kotlin.fir.lightTree.fir.ValueParameter` |
51
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `addCapturedTypeParameters(boolean, KtSourceElement, List)` | `org.jetbrains.kotlin.fir.builder.AbstractRawFirBuilder` |
52
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `getTokenType()` | `org.jetbrains.kotlin.parsing.SemanticWhitespaceAwarePsiBuilderImpl` |
53
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `<init>(NameResolver, TypeTable, VersionRequirementTable, FirModuleData, FqName, FqName, FirTypeDeserializer, AnnotationDeserializer, FirConstDeserializer, FirKDocDeserializer, DeserializedContainerSource, FirRegularClassSymbol, List)` | `org.jetbrains.kotlin.fir.deserialization.FirDeserializationContext` |
54
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `visitNamedFunction(FirNamedFunction, Object)` | `org.jetbrains.kotlin.fir.visitors.FirVisitor` |
55
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `extractDeprecationAnnotationInfoPerUseSite(List, boolean, FirSession, List)` | `org.jetbrains.kotlin.fir.declarations.DeprecationUtilsKt` |
56
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `deserializeClassToSymbol(ClassId, ProtoBuf$Class, FirRegularClassSymbol, NameResolver, FirSession, FirModuleData, AnnotationDeserializer, FirKDocDeserializer, FirTypeDeserializer$FlexibleTypeFactory, FirScopeProvider, SerializerExtensionProtocol, FirDeserializationContext, DeserializedContainerSource, FirDeclarationOrigin, Function2, Function2)` | `org.jetbrains.kotlin.fir.deserialization.ClassDeserializationKt` |
57
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `extractClassMetadata(ClassId, FirDeserializationContext)` | `org.jetbrains.kotlin.fir.java.deserialization.JvmClassFileBasedSymbolProvider` |
58
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `isSubtypeForSameConstructor(TypeCheckerState, TypeSystemContext, TypeArgumentListMarker, RigidTypeMarker)` | `org.jetbrains.kotlin.types.AbstractTypeChecker` |
59
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `invokeSuspend(Object)` | `org.jetbrains.kotlin.fir.resolve.calls.stages.ResolutionStageRunner$processCandidate$1` |
60
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `completeCall(FirExpression, ResolutionMode, boolean)` | `org.jetbrains.kotlin.fir.resolve.inference.FirCallCompleter` |
61
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `getOrderedAllTypeVariables$collectAllTypeVariables$lambda$2(LinkedHashSet, ConstraintSystemCompletionContext, Candidate)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
62
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `transformAnnotations(FirTransformer, Object)` | `org.jetbrains.kotlin.fir.expressions.impl.FirPropertyAccessExpressionImpl` |
63
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `transformThisReceiverExpression(FirThisReceiverExpression, Object)` | `org.jetbrains.kotlin.fir.visitors.FirTransformer` |
64
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `hasRecursiveTypeParametersWithGivenSelfType(TypeSystemInferenceExtensionContext, TypeConstructorMarker)` | `org.jetbrains.kotlin.resolve.calls.inference.InferenceUtilsKt` |
65
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `addEdge(CFGNode, CFGNode, boolean, boolean, EdgeKind, EdgeLabel)` | `org.jetbrains.kotlin.fir.resolve.dfa.cfg.ControlFlowGraphBuilder` |
66
- | removed | -1 | 0.9% → 0.0% | 1 → 0 | `loadFunction(ProtoBuf$Function, ProtoBuf$Class, FirClassSymbol, FirDeclarationOrigin)` | `org.jetbrains.kotlin.fir.deserialization.FirMemberDeserializer` |
67
-
68
- ### Total samples
69
-
70
- #### Regressions
71
-
72
- Functions with the largest increase in total samples taken in the function and all its callees.
73
-
74
- | Change | Delta | % | Samples | Function | Location |
75
- | ------: | ----: | ------------: | ------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
76
- | +62.5% | +5 | 7.3% → 12.0% | 8 → 13 | `getValue(Object, Object)` | `org.jetbrains.kotlin.fir.caches.FirThreadUnsafeCache` |
77
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `convertToIrAndActualize()` | `org.jetbrains.kotlin.fir.pipeline.Fir2IrPipeline` |
78
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `convertToIrAndActualize-MT2kVtw(List, Fir2IrExtensions, Fir2IrConfiguration, Collection, KotlinMangler$IrMangler, Fir2IrVisibilityConverter, KotlinBuiltIns, Function1, IrSpecialAnnotationsProvider, Function1, Fir2IrCommonMemberStorage, Function1)` | `org.jetbrains.kotlin.fir.pipeline.ConvertToIrKt` |
79
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `convertToIrAndActualize-MT2kVtw$default(List, Fir2IrExtensions, Fir2IrConfiguration, Collection, KotlinMangler$IrMangler, Fir2IrVisibilityConverter, KotlinBuiltIns, Function1, IrSpecialAnnotationsProvider, Function1, Fir2IrCommonMemberStorage, Function1, int, Object)` | `org.jetbrains.kotlin.fir.pipeline.ConvertToIrKt` |
80
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `convertToIrAndActualizeForJvm-_I1IR-w(List, Fir2IrExtensions, CompilerConfiguration, BaseDiagnosticsCollector, Collection)` | `org.jetbrains.kotlin.cli.jvm.compiler.legacy.pipeline.JvmCompilerPipelineKt` |
81
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `executePhase(JvmFrontendPipelineArtifact, List)` | `org.jetbrains.kotlin.cli.pipeline.jvm.JvmFir2IrPipelinePhase` |
82
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `executePhase(JvmFrontendPipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.jvm.JvmFir2IrPipelinePhase` |
83
- | +166.7% | +5 | 2.7% → 7.4% | 3 → 8 | `executePhase(PipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.jvm.JvmFir2IrPipelinePhase` |
84
- | +133.3% | +4 | 2.7% → 6.5% | 3 → 7 | `doTransformFile(FirFile, ResolutionMode)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer` |
85
- | +200.0% | +4 | 1.8% → 5.6% | 2 → 6 | `transformFile(FirFile, Object)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirAbstractBodyResolveTransformerDispatcher` |
86
- | +133.3% | +4 | 2.7% → 6.5% | 3 → 7 | `runFir2IrConversion()` | `org.jetbrains.kotlin.fir.pipeline.Fir2IrPipeline` |
87
- | +8.3% | +3 | 32.7% → 36.1% | 36 → 39 | `execImpl(MessageCollector, Services, CommonCompilerArguments)` | `org.jetbrains.kotlin.cli.common.CLICompiler` |
88
- | +20.0% | +3 | 13.6% → 16.7% | 15 → 18 | `transformInplace(List, FirTransformer, Object)` | `org.jetbrains.kotlin.fir.visitors.FirTransformerUtilKt` |
89
- | +60.0% | +3 | 4.5% → 7.4% | 5 → 8 | `transform(FirTransformer, Object)` | `org.jetbrains.kotlin.fir.declarations.FirFile` |
90
- | +60.0% | +3 | 4.5% → 7.4% | 5 → 8 | `processFunctionsAndConstructorsByName(FirScope, CallInfo, BodyResolveComponents, ConstructorFilter, Function1)` | `org.jetbrains.kotlin.fir.resolve.calls.ConstructorProcessingKt` |
91
- | +60.0% | +3 | 4.5% → 7.4% | 5 → 8 | `invokeSuspend(Object)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirBaseTowerResolveTask$processLevel$6` |
92
- | +37.5% | +3 | 7.3% → 10.2% | 8 → 11 | `transform(FirTransformer, Object)` | `org.jetbrains.kotlin.fir.declarations.FirNamedFunction` |
93
- | +42.9% | +3 | 6.4% → 9.3% | 7 → 10 | `invoke()` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer$$Lambda.0x00000070016d22e8` |
94
- | +100.0% | +3 | 2.7% → 5.6% | 3 → 6 | `transformFile(FirFile, ResolutionMode)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer` |
95
- | +100.0% | +3 | 2.7% → 5.6% | 3 → 6 | `transformFile(FirFile, ResolutionMode)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirAbstractBodyResolveTransformerDispatcher` |
96
-
97
- #### Improvements
98
-
99
- Functions with the largest decrease in total samples taken in the function and all its callees.
100
-
101
- | Change | Delta | % | Samples | Function | Location |
102
- | ------: | ----: | ------------: | ------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
103
- | removed | -8 | 7.3% → 0.0% | 8 → 0 | `runCompletion(ConstraintSystemCompletionContext, ConstraintSystemCompletionMode, List, ConeKotlinType, ResolutionContext, ConstraintSystemCompleter$PostponedAtomAnalyzer)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
104
- | removed | -8 | 7.3% → 0.0% | 8 → 0 | `complete(ConstraintSystemCompletionContext, ConstraintSystemCompletionMode, List, ConeKotlinType, ResolutionContext, ConstraintSystemCompleter$PostponedAtomAnalyzer)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
105
- | removed | -8 | 7.3% → 0.0% | 8 → 0 | `runCompletionForCall(Candidate, ConstraintSystemCompletionMode, FirExpression, ConeKotlinType, PostponedArgumentsAnalyzer)` | `org.jetbrains.kotlin.fir.resolve.inference.FirCallCompleter` |
106
- | -41.2% | -7 | 15.5% → 9.3% | 17 → 10 | `generate()` | `org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen` |
107
- | -41.2% | -7 | 15.5% → 9.3% | 17 → 10 | `generateFile(JvmBackendContext, IrFile, List, boolean)` | `org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory` |
108
- | -41.2% | -7 | 15.5% → 9.3% | 17 → 10 | `invokeCodegen(JvmIrCodegenFactory$CodegenInput)` | `org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory` |
109
- | -9.2% | -6 | 59.1% → 54.6% | 65 → 59 | `run(String[])` | `org.jetbrains.kotlin.preloading.Preloader` |
110
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyzeLambda(PostponedArgumentsAnalyzerContext, ConeResolvedLambdaAtom, Candidate, boolean, boolean, boolean)` | `org.jetbrains.kotlin.fir.resolve.inference.PostponedArgumentsAnalyzer` |
111
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyzeLambda$default(PostponedArgumentsAnalyzer, PostponedArgumentsAnalyzerContext, ConeResolvedLambdaAtom, Candidate, boolean, boolean, boolean, int, Object)` | `org.jetbrains.kotlin.fir.resolve.inference.PostponedArgumentsAnalyzer` |
112
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyze(PostponedArgumentsAnalyzerContext, ConePostponedResolvedAtom, Candidate, boolean, CollectionLiteralBounds)` | `org.jetbrains.kotlin.fir.resolve.inference.PostponedArgumentsAnalyzer` |
113
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `runCompletionForCall$lambda$0(PostponedArgumentsAnalyzer, Candidate, ConePostponedResolvedAtom, boolean, CollectionLiteralBounds)` | `org.jetbrains.kotlin.fir.resolve.inference.FirCallCompleter` |
114
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyzeInternal(ConePostponedResolvedAtom, boolean, CollectionLiteralBounds)` | `org.jetbrains.kotlin.fir.resolve.inference.FirCallCompleter$$Lambda.0x00000003016a1578` |
115
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyze(ConstraintSystemCompleter$PostponedAtomAnalyzer, ConePostponedResolvedAtom, boolean)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
116
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyze$default(ConstraintSystemCompleter, ConstraintSystemCompleter$PostponedAtomAnalyzer, ConePostponedResolvedAtom, boolean, int, Object)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
117
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `runCompletion$lambda$0(ConstraintSystemCompleter, ConstraintSystemCompleter$PostponedAtomAnalyzer, ConePostponedResolvedAtom)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter` |
118
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `invoke(Object)` | `org.jetbrains.kotlin.fir.resolve.inference.ConstraintSystemCompleter$$Lambda.0x00000003016a29d0` |
119
- | removed | -6 | 5.5% → 0.0% | 6 → 0 | `analyzeArgumentWithFixedParameterTypes(List, Function1)` | `org.jetbrains.kotlin.resolve.calls.inference.components.ConstraintSystemCompletionContext` |
120
- | -42.9% | -6 | 12.7% → 7.4% | 14 → 8 | `generateMethod(IrFunction, SourceMapper)` | `org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen` |
121
- | -37.5% | -6 | 14.5% → 9.3% | 16 → 10 | `runCodegen$org_jetbrains_kotlin_cli_jvm(JvmIrCodegenFactory$CodegenInput, GenerationState, JvmIrCodegenFactory, BaseDiagnosticsCollector, CompilerConfiguration, boolean)` | `org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler` |
122
- | -10.9% | -5 | 41.8% → 38.0% | 46 → 41 | `phaseBody(LoggingContext, Object)` | `org.jetbrains.kotlin.cli.pipeline.PipelinePhase` |
123
-
124
- # Allocated heap profile diff
125
-
126
- Allocated 716 MB (-267.832 kB, ~0%) over 861 samples → 863 samples (832 kB → 830 kB per sample).
127
-
128
- | Category | Change | Delta | % | Size | Samples |
129
- | -------- | -----: | ---------: | ------------: | ----------------: | --------: |
130
- | stdlib | +14.7% | +70.906 MB | 67.3% → 77.2% | 482 MB → 553 MB | 531 → 547 |
131
- | ours | -30.4% | -71.184 MB | 32.7% → 22.7% | 234 MB → 163 MB | 325 → 308 |
132
- | native | +48.7% | +10.048 kB | <0.1% | 20.6 kB → 30.7 kB | 5 → 8 |
133
-
134
- ## Hottest functions
135
-
136
- ### Self size
137
-
138
- #### Regressions
139
-
140
- Functions with the largest increase in bytes allocated directly in the function body, excluding callees.
141
-
142
- | Change | Delta | % | Size | Samples | Function | Location |
143
- | ------: | --------: | ----------: | ----------------: | ------: | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
144
- | +333.6% | +1.745 MB | 0.1% → 0.3% | 523 kB → 2.27 MB | 1 → 4 | `readUtf(int, int, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
145
- | +64.9% | +1.695 MB | 0.4% → 0.6% | 2.61 MB → 4.31 MB | 5 → 8 | `copyOf(Object[], int)` | `java.util.Arrays` |
146
- | +150.0% | +1.569 MB | 0.1% → 0.4% | 1.05 MB → 2.62 MB | 2 → 5 | `getTypeInternal(String, int, int)` | `org.jetbrains.org.objectweb.asm.Type` |
147
- | +300.0% | +1.569 MB | 0.1% → 0.3% | 523 kB → 2.09 MB | 1 → 4 | `to(Object, Object)` | `kotlin.TuplesKt` |
148
- | +300.0% | +1.569 MB | 0.1% → 0.3% | 523 kB → 2.09 MB | 1 → 4 | `unmodifiableList(List)` | `java.util.Collections` |
149
- | new | +1.569 MB | 0.0% → 0.2% | 0 B → 1.57 MB | 0 → 3 | `toIrType(ConeKotlinType, ConversionTypeOrigin, List, boolean, boolean, boolean, boolean)` | `org.jetbrains.kotlin.fir.backend.Fir2IrTypeConverter` |
150
- | +300.0% | +1.569 MB | 0.1% → 0.3% | 523 kB → 2.09 MB | 1 → 3 | `extractDeprecationAnnotationInfoPerUseSite(List, boolean, FirSession, List)` | `org.jetbrains.kotlin.fir.declarations.DeprecationUtilsKt` |
151
- | +144.4% | +1.236 MB | 0.1% → 0.3% | 856 kB → 2.09 MB | 2 → 4 | `newTypeCheckerState(TypeSystemContext, boolean, boolean, boolean)` | `org.jetbrains.kotlin.fir.types.ConeInferenceContext` |
152
- | new | +1.172 MB | 0.0% → 0.2% | 0 B → 1.17 MB | 0 → 2 | `readBootstrapMethodsAttribute(int)` | `org.jetbrains.org.objectweb.asm.ClassReader` |
153
- | new | +1.167 MB | 0.0% → 0.2% | 0 B → 1.17 MB | 0 → 3 | `freeze()` | `org.jetbrains.kotlin.fir.resolve.dfa.MutableFlow` |
154
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `topLevel(Name)` | `org.jetbrains.kotlin.name.FqName$Companion` |
155
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `getDependentTypeParameters$lambda$0(NewConstraintSystemImpl, TypeConstructorMarker, Map$Entry)` | `org.jetbrains.kotlin.fir.resolve.calls.stages.CollectTypeVariableUsagesInfo` |
156
- | +100.0% | +1.046 MB | 0.1% → 0.3% | 1.05 MB → 2.09 MB | 2 → 3 | `visitLineNumber(int, Label)` | `org.jetbrains.org.objectweb.asm.tree.MethodNode` |
157
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `<init>()` | `org.jetbrains.kotlin.fir.expressions.builder.FirAnnotationBuilder` |
158
- | +200.0% | +1.046 MB | 0.1% → 0.2% | 523 kB → 1.57 MB | 1 → 3 | `newFieldSet()` | `org.jetbrains.kotlin.protobuf.FieldSet` |
159
- | +200.0% | +1.046 MB | 0.1% → 0.2% | 523 kB → 1.57 MB | 1 → 3 | `<init>()` | `java.util.HashSet` |
160
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 1 | `next()` | `kotlin.collections.IndexingIterator` |
161
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `plus(Collection, Iterable)` | `kotlin.collections.CollectionsKt___CollectionsKt` |
162
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `enqueueResolveTasksForNoReceiver(CallInfo)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirInvokeResolveTowerExtension` |
163
- | new | +1.046 MB | 0.0% → 0.1% | 0 B → 1.05 MB | 0 → 2 | `<init>(ConstraintInjector, TypeSystemInferenceExtensionContext, LanguageVersionSettings, Function2)` | `org.jetbrains.kotlin.resolve.calls.inference.model.NewConstraintSystemImpl` |
164
-
165
- #### Improvements
166
-
167
- Functions with the largest decrease in bytes allocated directly in the function body, excluding callees.
168
-
169
- | Change | Delta | % | Size | Samples | Function | Location |
170
- | ------: | ---------: | ------------: | ----------------: | --------: | ------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
171
- | removed | -65.703 MB | 9.2% → 0.0% | 65.7 MB → 0 B | 1 → 0 | `<clinit>()` | `org.jetbrains.kotlin.config.LanguageFeature` |
172
- | -5.3% | -6.779 MB | 17.9% → 17.0% | 128 MB → 122 MB | 124 → 115 | `<init>(int)` | `java.io.ByteArrayOutputStream` |
173
- | -50.0% | -4.185 MB | 1.2% → 0.6% | 8.37 MB → 4.19 MB | 16 → 8 | `<init>(int, int)` | `org.jetbrains.org.objectweb.asm.tree.analysis.Frame` |
174
- | -9.6% | -1.607 MB | 2.3% → 2.1% | 16.7 MB → 15.1 MB | 32 → 29 | `<init>(int)` | `org.jetbrains.kotlin.protobuf.ByteString$Output` |
175
- | -60.0% | -1.569 MB | 0.4% → 0.1% | 2.62 MB → 1.05 MB | 5 → 2 | `iterator()` | `org.jetbrains.kotlin.utils.SmartList` |
176
- | -75.0% | -1.569 MB | 0.3% → 0.1% | 2.09 MB → 523 kB | 3 → 1 | `lazy(LazyThreadSafetyMode, Function0)` | `kotlin.LazyKt__LazyJVMKt` |
177
- | -75.0% | -1.569 MB | 0.3% → 0.1% | 2.09 MB → 523 kB | 4 → 1 | `enqueueResolveTasksForExpressionReceiver(CallInfo, FirExpression)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirInvokeResolveTowerExtension` |
178
- | -75.0% | -1.569 MB | 0.3% → 0.1% | 2.09 MB → 523 kB | 4 → 1 | `<init>(String)` | `org.jetbrains.kotlin.name.FqName` |
179
- | removed | -1.569 MB | 0.2% → 0.0% | 1.57 MB → 0 B | 3 → 0 | `build()` | `org.jetbrains.kotlin.fir.types.builder.FirResolvedTypeRefBuilder` |
180
- | -47.2% | -1.402 MB | 0.4% → 0.2% | 2.97 MB → 1.57 MB | 6 → 3 | `iterator()` | `java.util.LinkedHashMap$LinkedEntrySet` |
181
- | removed | -1.392 MB | 0.2% → 0.0% | 1.39 MB → 0 B | 3 → 0 | `visitInsn(int)` | `org.jetbrains.org.objectweb.asm.tree.MethodNode` |
182
- | -54.0% | -1.226 MB | 0.3% → 0.1% | 2.27 MB → 1.05 MB | 5 → 2 | `getBytes(int, int)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.LargeDynamicMappedBuffer$Mapping` |
183
- | -20.3% | -1.169 MB | 0.8% → 0.6% | 5.76 MB → 4.59 MB | 11 → 9 | `parsePartialFrom(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Type$1` |
184
- | -66.7% | -1.046 MB | 0.2% → 0.1% | 1.57 MB → 523 kB | 2 → 1 | `topLevel(Name)` | `org.jetbrains.kotlin.name.FqNameUnsafe$Companion` |
185
- | -50.0% | -1.046 MB | 0.3% → 0.1% | 2.09 MB → 1.05 MB | 4 → 2 | `<init>(Object, Object)` | `org.jetbrains.kotlin.util.WeakPair` |
186
- | removed | -1.046 MB | 0.1% → 0.0% | 1.05 MB → 0 B | 2 → 0 | `check(CheckerContext, DiagnosticReporter, FirQualifiedAccessExpression)` | `org.jetbrains.kotlin.fir.analysis.checkers.expression.FirMissingDependencyClassChecker` |
187
- | -40.0% | -1.046 MB | 0.4% → 0.2% | 2.62 MB → 1.57 MB | 5 → 3 | `toString()` | `java.lang.StringBuilder` |
188
- | removed | -1.046 MB | 0.1% → 0.0% | 1.05 MB → 0 B | 2 → 0 | `parent()` | `org.jetbrains.kotlin.name.FqName` |
189
- | removed | -1.046 MB | 0.1% → 0.0% | 1.05 MB → 0 B | 2 → 0 | `getTypeParameterSymbols()` | `org.jetbrains.kotlin.fir.symbols.impl.FirCallableSymbol` |
190
- | removed | -1.046 MB | 0.1% → 0.0% | 1.05 MB → 0 B | 2 → 0 | `getValueParameterSymbols()` | `org.jetbrains.kotlin.fir.symbols.impl.FirFunctionSymbol` |
191
-
192
- ### Total size
193
-
194
- #### Regressions
195
-
196
- Functions with the largest increase in total bytes allocated in the function and all its callees.
197
-
198
- | Change | Delta | % | Size | Samples | Function | Location |
199
- | -----: | ---------: | ------------: | ----------------: | --------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
200
- | new | +63.323 MB | 0.0% → 8.8% | 0 B → 63.3 MB | 0 → 2 | `parseVersion(String)` | `org.jetbrains.kotlin.config.MavenComparableVersion` |
201
- | new | +63.323 MB | 0.0% → 8.8% | 0 B → 63.3 MB | 0 → 2 | `<init>(String)` | `org.jetbrains.kotlin.config.MavenComparableVersion` |
202
- | new | +63.323 MB | 0.0% → 8.8% | 0 B → 63.3 MB | 0 → 2 | `parse(String)` | `org.jetbrains.kotlin.config.ApiVersion$Companion` |
203
- | new | +63.323 MB | 0.0% → 8.8% | 0 B → 63.3 MB | 0 → 2 | `append(Object)` | `java.lang.StringBuilder` |
204
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `toString()` | `java.math.BigInteger` |
205
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `toString()` | `org.jetbrains.kotlin.config.MavenComparableVersion$IntegerItem` |
206
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `toString()` | `org.jetbrains.kotlin.config.MavenComparableVersion$ListItem` |
207
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `createByLanguageVersion(LanguageVersion)` | `org.jetbrains.kotlin.config.ApiVersion$Companion` |
208
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `<clinit>()` | `org.jetbrains.kotlin.config.ApiVersion` |
209
- | new | +62.799 MB | 0.0% → 8.8% | 0 B → 62.8 MB | 0 → 1 | `<init>(String, int, LanguageVersion, String)` | `org.jetbrains.kotlin.config.LanguageFeature` |
210
- | +23.0% | +9.597 MB | 5.8% → 7.2% | 41.7 MB → 51.3 MB | 80 → 96 | `resumeTask(TowerResolveManager$SuspendedResolverTask)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.TowerResolveManager` |
211
- | +21.8% | +9.54 MB | 6.1% → 7.4% | 43.8 MB → 53.3 MB | 84 → 99 | `collectCandidates(FirQualifiedAccessExpression, Name, CallKind, boolean, FirFunctionCallOrigin, List, ResolutionContext, CandidateCollector, FirElement, ResolutionMode, CollectionLiteralOuterCandidateContext)` | `org.jetbrains.kotlin.fir.resolve.calls.FirCallResolver` |
212
- | +5.4% | +9.498 MB | 24.4% → 25.8% | 175 MB → 185 MB | 104 → 114 | `toByteArray()` | `java.io.ByteArrayOutputStream` |
213
- | +28.1% | +9.49 MB | 4.7% → 6.0% | 33.7 MB → 43.2 MB | 64 → 82 | `transformQualifiedAccessExpression(FirQualifiedAccessExpression, ResolutionMode, boolean, boolean, boolean)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirExpressionsResolveTransformer` |
214
- | +20.6% | +9.018 MB | 6.1% → 7.4% | 43.8 MB → 52.8 MB | 84 → 98 | `runResolver$default(FirTowerResolver, CallInfo, ResolutionContext, CandidateCollector, CandidateFactory, int, Object)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirTowerResolver` |
215
- | +18.4% | +7.971 MB | 6.0% → 7.2% | 43.2 MB → 51.2 MB | 83 → 96 | `runResolver(CallInfo, ResolutionContext, CandidateCollector, CandidateFactory)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirTowerResolver` |
216
- | +18.2% | +7.971 MB | 6.1% → 7.2% | 43.8 MB → 51.7 MB | 84 → 97 | `runResolver(CallInfo, ResolutionContext, CandidateCollector, TowerResolveManager, CandidateFactory)` | `org.jetbrains.kotlin.fir.resolve.calls.tower.FirTowerResolver` |
217
- | +19.1% | +7.971 MB | 5.8% → 6.9% | 41.7 MB → 49.6 MB | 80 → 93 | `runTasks()` | `org.jetbrains.kotlin.fir.resolve.calls.tower.TowerResolveManager` |
218
- | +18.1% | +7.921 MB | 6.1% → 7.2% | 43.8 MB → 51.7 MB | 84 → 96 | `collectCandidates$default(FirCallResolver, FirQualifiedAccessExpression, Name, CallKind, boolean, FirFunctionCallOrigin, List, ResolutionContext, CandidateCollector, FirElement, ResolutionMode, CollectionLiteralOuterCandidateContext, int, Object)` | `org.jetbrains.kotlin.fir.resolve.calls.FirCallResolver` |
219
- | +44.6% | +7.801 MB | 2.4% → 3.5% | 17.5 MB → 25.3 MB | 34 → 48 | `transformElement(FirElement, Object)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirAbstractBodyResolveTransformerDispatcher` |
220
-
221
- #### Improvements
222
-
223
- Functions with the largest decrease in total bytes allocated in the function and all its callees.
224
-
225
- | Change | Delta | % | Size | Samples | Function | Location |
226
- | -----: | --------: | ------------: | ----------------: | --------: | --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
227
- | -4.5% | -8.889 MB | 27.7% → 26.5% | 198 MB → 190 MB | 256 → 247 | `doMain(CLICompiler, String[])` | `org.jetbrains.kotlin.cli.common.CLICompiler$Companion` |
228
- | -4.4% | -8.889 MB | 28.0% → 26.8% | 201 MB → 192 MB | 260 → 251 | `doMainNoExit$default(CLICompiler$Companion, CLICompiler, String[], MessageRenderer, int, Object)` | `org.jetbrains.kotlin.cli.common.CLICompiler$Companion` |
229
- | -27.3% | -8.743 MB | 4.5% → 3.3% | 32.1 MB → 23.3 MB | 61 → 45 | `transformNamedFunction(FirNamedFunction, Object)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirAbstractBodyResolveTransformerDispatcher` |
230
- | -4.3% | -8.366 MB | 27.4% → 26.3% | 196 MB → 188 MB | 252 → 244 | `main(String[])` | `org.jetbrains.kotlin.cli.jvm.K2JVMCompiler$Companion` |
231
- | -25.2% | -8.22 MB | 4.5% → 3.4% | 32.6 MB → 24.4 MB | 62 → 47 | `transformNamedFunction(FirNamedFunction, ResolutionMode)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirAbstractBodyResolveTransformerDispatcher` |
232
- | -3.9% | -7.847 MB | 28.4% → 27.3% | 203 MB → 195 MB | 265 → 257 | `doMainNoExit(CLICompiler, String[], MessageRenderer)` | `org.jetbrains.kotlin.cli.common.CLICompiler$Companion` |
233
- | -31.1% | -7.495 MB | 3.4% → 2.3% | 24.1 MB → 16.6 MB | 45 → 32 | `completeCall(FirExpression, ResolutionMode, boolean)` | `org.jetbrains.kotlin.fir.resolve.inference.FirCallCompleter` |
234
- | -28.3% | -7.372 MB | 3.6% → 2.6% | 26.1 MB → 18.7 MB | 50 → 36 | `parsePartialFrom(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Type$1` |
235
- | -23.4% | -7.27 MB | 4.3% → 3.3% | 31.1 MB → 23.8 MB | 59 → 47 | `transformChildren(FirTransformer, Object)` | `org.jetbrains.kotlin.fir.declarations.impl.FirFileImpl` |
236
- | -33.9% | -7.248 MB | 3.0% → 2.0% | 21.4 MB → 14.1 MB | 41 → 27 | `<init>(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Type` |
237
- | -33.9% | -7.248 MB | 3.0% → 2.0% | 21.4 MB → 14.1 MB | 41 → 27 | `<init>(CodedInputStream, ExtensionRegistryLite, ProtoBuf$1)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Type` |
238
- | -21.7% | -7.173 MB | 4.6% → 3.6% | 33.1 MB → 25.9 MB | 63 → 50 | `withParameters(FirCallableDeclaration, SessionAndScopeSessionHolder, Function0)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.BodyResolveContext` |
239
- | -22.4% | -7.173 MB | 4.5% → 3.5% | 32.1 MB → 24.9 MB | 61 → 48 | `forFunctionBody(FirFunction, SessionAndScopeSessionHolder, Function0)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.BodyResolveContext` |
240
- | -25.3% | -7.173 MB | 4.0% → 3.0% | 28.4 MB → 21.2 MB | 54 → 41 | `transformNamedFunction$lambda$0$0$0(FirDeclarationsResolveTransformer, FirNamedFunction, boolean)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer` |
241
- | -5.3% | -6.779 MB | 17.9% → 17.0% | 128 MB → 122 MB | 124 → 115 | `<init>(int)` | `java.io.ByteArrayOutputStream` |
242
- | -3.9% | -6.654 MB | 24.1% → 23.2% | 173 MB → 166 MB | 207 → 201 | `invoke(Object, Object[])` | `java.lang.reflect.Method` |
243
- | -25.8% | -6.65 MB | 3.6% → 2.7% | 25.8 MB → 19.1 MB | 49 → 37 | `transformNamedFunction(FirNamedFunction, ResolutionMode)` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer` |
244
- | -3.1% | -6.277 MB | 28.7% → 27.9% | 206 MB → 200 MB | 270 → 263 | `exec(PrintStream, MessageRenderer, String[])` | `org.jetbrains.kotlin.cli.common.CLICompiler` |
245
- | -3.0% | -6.277 MB | 29.0% → 28.1% | 207 MB → 201 MB | 273 → 266 | `exec(PrintStream, Services, MessageRenderer, String[])` | `org.jetbrains.kotlin.cli.common.CLICompiler` |
246
- | -22.8% | -6.127 MB | 3.7% → 2.9% | 26.8 MB → 20.7 MB | 51 → 40 | `invoke()` | `org.jetbrains.kotlin.fir.resolve.transformers.body.resolve.FirDeclarationsResolveTransformer$$Lambda.0x00000070016d22e8` |
247
-
248
- # Retained heap profile diff
249
-
250
- Retained 20.4 MB → 20.6 MB (+158.664 kB, +0.8%) over 207 samples → 203 samples (98.7 kB → 101 kB per sample).
251
-
252
- | Category | Change | Delta | % | Size | Samples |
253
- | -------- | -----: | ----------: | ------------: | ----------------: | --------: |
254
- | stdlib | +2.1% | +400.328 kB | 92.9% → 94.1% | 19 MB → 19.4 MB | 182 → 193 |
255
- | ours | -16.6% | -241.664 kB | 7.1% → 5.9% | 1.46 MB → 1.22 MB | 25 → 10 |
256
-
257
- ## Hottest functions
258
-
259
- ### Self size
260
-
261
- #### Regressions
262
-
263
- Functions with the largest increase in bytes retained directly in the function body, excluding callees.
264
-
265
- | Change | Delta | % | Size | Samples | Function | Location |
266
- | -----: | --------: | -----------: | ------------: | ------: | --------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
267
- | new | +4.448 kB | 0.0% → <0.1% | 0 B → 4.45 kB | 0 → 1 | `lambda$static$0(int)` | `com.intellij.psi.tree.IElementType` |
268
- | new | +424 B | 0.0% → <0.1% | 0 B → 424 B | 0 → 2 | `copyOf(Object[], int)` | `java.util.Arrays` |
269
- | new | +144 B | 0.0% → <0.1% | 0 B → 144 B | 0 → 1 | `createCandidate(CallInfo, FirBasedSymbol, ExplicitReceiverKind, FirScope, FirExpression, FirExpression, boolean, boolean)` | `org.jetbrains.kotlin.fir.resolve.calls.candidate.CandidateFactory` |
270
- | new | +96 B | 0.0% → <0.1% | 0 B → 96 B | 0 → 1 | `build()` | `org.jetbrains.kotlin.fir.declarations.builder.FirNamedFunctionBuilder` |
271
- | new | +80 B | 0.0% → <0.1% | 0 B → 80 B | 0 → 1 | `<init>(int)` | `java.util.ArrayList` |
272
- | new | +24 B | 0.0% → <0.1% | 0 B → 24 B | 0 → 1 | `toString()` | `java.lang.StringBuilder` |
273
-
274
- #### Improvements
275
-
276
- Functions with the largest decrease in bytes retained directly in the function body, excluding callees.
277
-
278
- | Change | Delta | % | Size | Samples | Function | Location |
279
- | ------: | ----------: | -----------: | ---------------: | ------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
280
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `contentsToByteArray$lambda$0(ZipEntryDescription, LargeDynamicMappedBuffer$Mapping)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.ZipImplementationKt` |
281
- | removed | -59.064 kB | 0.3% → 0.0% | 59.1 kB → 0 B | 1 → 0 | `forceCapacity(int[], int, int)` | `it.unimi.dsi.fastutil.ints.IntArrays` |
282
- | removed | -344 B | <0.1% → 0.0% | 344 B → 0 B | 1 → 0 | `<init>()` | `org.jetbrains.kotlin.fir.analysis.CheckersComponent` |
283
- | -66.7% | -192 B | <0.1% | 288 B → 96 B | 3 → 1 | `parsePartialFrom(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Type$1` |
284
- | removed | -120 B | <0.1% → 0.0% | 120 B → 0 B | 1 → 0 | `doGenerate(ReifiedTypeParametersUsages)` | `org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen` |
285
- | removed | -112 B | <0.1% → 0.0% | 112 B → 0 B | 1 → 0 | `parsePartialFrom(CodedInputStream, ExtensionRegistryLite)` | `org.jetbrains.kotlin.metadata.ProtoBuf$Function$1` |
286
- | removed | -112 B | <0.1% → 0.0% | 112 B → 0 B | 1 → 0 | `$values()` | `org.jetbrains.kotlin.ir.overrides.IrExternalOverridabilityCondition$Contract` |
287
- | removed | -112 B | <0.1% → 0.0% | 112 B → 0 B | 2 → 0 | `visitMethodInsn(int, String, String, String, boolean)` | `org.jetbrains.org.objectweb.asm.tree.MethodNode` |
288
- | removed | -104 B | <0.1% → 0.0% | 104 B → 0 B | 1 → 0 | `createSimpleFunction(int, int, IrDeclarationOrigin, Name, DescriptorVisibility, boolean, boolean, IrType, Modality, IrSimpleFunctionSymbol, boolean, boolean, boolean, boolean, boolean, DeserializedContainerSource, boolean)` | `org.jetbrains.kotlin.ir.declarations.IrFactory` |
289
- | removed | -96 B | <0.1% → 0.0% | 96 B → 0 B | 1 → 0 | `getInstance(String)` | `java.security.MessageDigest` |
290
- | removed | -80 B | <0.1% → 0.0% | 80 B → 0 B | 1 → 0 | `<init>()` | `org.jetbrains.org.objectweb.asm.ByteVector` |
291
- | removed | -64 B | <0.1% → 0.0% | 64 B → 0 B | 1 → 0 | `transformArguments(FirTransformer, Object)` | `org.jetbrains.kotlin.fir.expressions.impl.FirResolvedArgumentListImpl` |
292
- | removed | -56 B | <0.1% → 0.0% | 56 B → 0 B | 1 → 0 | `getLabel()` | `org.jetbrains.org.objectweb.asm.tree.LabelNode` |
293
- | removed | -40 B | <0.1% → 0.0% | 40 B → 0 B | 1 → 0 | `buildPartial()` | `org.jetbrains.kotlin.metadata.ProtoBuf$Annotation$Builder` |
294
- | removed | -32 B | <0.1% → 0.0% | 32 B → 0 B | 1 → 0 | `<init>(Object, Object)` | `org.jetbrains.kotlin.util.WeakPair` |
295
- | removed | -32 B | <0.1% → 0.0% | 32 B → 0 B | 1 → 0 | `build()` | `org.jetbrains.kotlin.fir.types.builder.FirResolvedTypeRefBuilder` |
296
-
297
- ### Total size
298
-
299
- #### Regressions
300
-
301
- Functions with the largest increase in total bytes retained in the function and all its callees.
302
-
303
- | Change | Delta | % | Size | Samples | Function | Location |
304
- | -----: | ----------: | ------------: | ----------------: | --------: | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
305
- | +2.0% | +369.568 kB | 90.9% → 92.0% | 18.6 MB → 19 MB | 182 → 179 | `main(String[])` | `org.jetbrains.kotlin.preloading.Preloader` |
306
- | +2.0% | +369.424 kB | 90.9% → 92.0% | 18.6 MB → 19 MB | 184 → 179 | `run(String[])` | `org.jetbrains.kotlin.preloading.Preloader` |
307
- | +2.6% | +364.528 kB | 69.5% → 70.7% | 14.2 MB → 14.6 MB | 164 → 168 | `toByteArray()` | `java.io.ByteArrayOutputStream` |
308
- | +2.5% | +364.528 kB | 70.8% → 72.0% | 14.5 MB → 14.8 MB | 165 → 169 | `loadAllClassesFromJars(Collection, int, ClassHandler)` | `org.jetbrains.kotlin.preloading.ClassPreloadingUtils` |
309
- | +2.5% | +364.528 kB | 70.8% → 72.0% | 14.5 MB → 14.8 MB | 165 → 169 | `preloadClasses(Collection, int, ClassLoader, ClassCondition, ClassHandler)` | `org.jetbrains.kotlin.preloading.ClassPreloadingUtils` |
310
- | +23.8% | +32.8 kB | 0.7% → 0.8% | 138 kB → 170 kB | 4 | `readElementValue(AnnotationVisitor, int, String, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
311
- | +23.8% | +32.8 kB | 0.7% → 0.8% | 138 kB → 170 kB | 4 | `readElementValues(AnnotationVisitor, int, boolean, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
312
- | +23.8% | +32.8 kB | 0.7% → 0.8% | 138 kB → 170 kB | 4 | `create(byte[], MetadataVersion, Function4)` | `org.jetbrains.kotlin.load.kotlin.FileBasedKotlinClass` |
313
- | +23.7% | +32.648 kB | 0.7% → 0.8% | 138 kB → 170 kB | 5 → 4 | `accept(ClassVisitor, Attribute[], int)` | `org.jetbrains.org.objectweb.asm.ClassReader` |
314
- | +23.7% | +32.648 kB | 0.7% → 0.8% | 138 kB → 170 kB | 5 → 4 | `accept(ClassVisitor, int)` | `org.jetbrains.org.objectweb.asm.ClassReader` |
315
- | +20.5% | +28.168 kB | 0.7% → 0.8% | 138 kB → 166 kB | 4 → 3 | `<init>(char[], int, int)` | `java.lang.String` |
316
- | +20.5% | +28.168 kB | 0.7% → 0.8% | 138 kB → 166 kB | 4 → 3 | `readUtfNonAscii(int, int, int, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
317
- | +20.5% | +28.168 kB | 0.7% → 0.8% | 138 kB → 166 kB | 4 → 3 | `readUtf(int, int, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
318
- | +20.5% | +28.168 kB | 0.7% → 0.8% | 138 kB → 166 kB | 4 → 3 | `readUtf(int, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
319
- | +20.5% | +28.168 kB | 0.7% → 0.8% | 138 kB → 166 kB | 4 → 3 | `readUTF8(int, char[])` | `org.jetbrains.org.objectweb.asm.ClassReader` |
320
- | new | +7.384 kB | 0.0% → <0.1% | 0 B → 7.38 kB | 0 → 1 | `loadClass(String)` | `java.lang.ClassLoader` |
321
- | new | +7.384 kB | 0.0% → <0.1% | 0 B → 7.38 kB | 0 → 1 | `registerProjectComponents(MockProject, CompilerConfiguration)` | `org.jetbrains.kotlin.scripting.compiler.plugin.ScriptingCompilerConfigurationComponentRegistrar` |
322
- | new | +7.384 kB | 0.0% → <0.1% | 0 B → 7.38 kB | 0 → 1 | `registerExtensionsFromPlugins$org_jetbrains_kotlin_cli_base(MockProject, CompilerConfiguration)` | `org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion` |
323
- | new | +7.384 kB | 0.0% → <0.1% | 0 B → 7.38 kB | 0 → 1 | `registerExtensionsFromPlugins(CompilerConfiguration)` | `org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$ProjectEnvironment` |
324
- | new | +7.384 kB | 0.0% → <0.1% | 0 B → 7.38 kB | 0 → 1 | `configureProjectEnvironment(KotlinCoreEnvironment$ProjectEnvironment, CompilerConfiguration, EnvironmentConfigFiles)` | `org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion` |
325
-
326
- #### Improvements
327
-
328
- Functions with the largest decrease in total bytes retained in the function and all its callees.
329
-
330
- | Change | Delta | % | Size | Samples | Function | Location |
331
- | ------: | ----------: | -----------: | ---------------: | ------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
332
- | -93.8% | -190.696 kB | 1.0% → 0.1% | 203 kB → 12.6 kB | 20 → 8 | `invokeToplevel(CompilerPhase, PhaseConfig, LoggingContext, Object)` | `org.jetbrains.kotlin.config.phaser.CompilerPhaseKt` |
333
- | -93.8% | -190.696 kB | 1.0% → 0.1% | 203 kB → 12.6 kB | 20 → 8 | `runPhasedPipeline(ArgumentsPipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.AbstractCliPipeline` |
334
- | -93.8% | -190.696 kB | 1.0% → 0.1% | 203 kB → 12.6 kB | 20 → 8 | `executeAndReturnPipeLineArtifact(CommonCompilerArguments, Services, MessageCollector, Disposable)` | `org.jetbrains.kotlin.cli.pipeline.AbstractCliPipeline` |
335
- | -93.6% | -190.36 kB | 1.0% → 0.1% | 203 kB → 12.9 kB | 20 → 9 | `invoke(PhaseConfig, PhaserState, LoggingContext, Object)` | `org.jetbrains.kotlin.backend.common.phaser.CompositePhase` |
336
- | -93.6% | -190.336 kB | 1.0% → 0.1% | 203 kB → 13 kB | 20 → 10 | `invoke(PhaseConfig, PhaserState, LoggingContext, Object)` | `org.jetbrains.kotlin.config.phaser.NamedCompilerPhase` |
337
- | -93.6% | -190.24 kB | 1.0% → 0.1% | 203 kB → 13.1 kB | 20 → 10 | `phaseBody(PipelineContext, PipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.PipelinePhase` |
338
- | -93.6% | -190.24 kB | 1.0% → 0.1% | 203 kB → 13.1 kB | 20 → 10 | `phaseBody(LoggingContext, Object)` | `org.jetbrains.kotlin.cli.pipeline.PipelinePhase` |
339
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `contentsToByteArray$lambda$0(ZipEntryDescription, LargeDynamicMappedBuffer$Mapping)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.ZipImplementationKt` |
340
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `invoke(Object)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.ZipImplementationKt$$Lambda.0x00000070013f7650` |
341
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `withMappedRange(long, long, Function1)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.LargeDynamicMappedBuffer` |
342
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `withMappedRangeFrom(long, Function1)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.LargeDynamicMappedBuffer` |
343
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `contentsToByteArray(LargeDynamicMappedBuffer, ZipEntryDescription)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.ZipImplementationKt` |
344
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `contentsToByteArray(ZipEntryDescription)` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.FastJarHandler` |
345
- | -13.3% | -185.888 kB | 6.8% → 5.9% | 1.4 MB → 1.21 MB | 8 → 6 | `contentsToByteArray()` | `org.jetbrains.kotlin.cli.jvm.compiler.jarfs.FastJarVirtualFile` |
346
- | removed | -142.944 kB | 0.7% → 0.0% | 143 kB → 0 B | 7 → 0 | `generate()` | `org.jetbrains.kotlin.backend.jvm.codegen.ClassCodegen` |
347
- | removed | -142.944 kB | 0.7% → 0.0% | 143 kB → 0 B | 7 → 0 | `generateFile(JvmBackendContext, IrFile, List, boolean)` | `org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory` |
348
- | removed | -142.944 kB | 0.7% → 0.0% | 143 kB → 0 B | 7 → 0 | `invokeCodegen(JvmIrCodegenFactory$CodegenInput)` | `org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory` |
349
- | removed | -142.944 kB | 0.7% → 0.0% | 143 kB → 0 B | 7 → 0 | `runCodegen$org_jetbrains_kotlin_cli_jvm(JvmIrCodegenFactory$CodegenInput, GenerationState, JvmIrCodegenFactory, BaseDiagnosticsCollector, CompilerConfiguration, boolean)` | `org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler` |
350
- | -99.7% | -142.608 kB | 0.7% → <0.1% | 143 kB → 432 B | 8 → 2 | `executePhase(JvmFir2IrPipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.jvm.JvmBackendPipelinePhase` |
351
- | -99.7% | -142.608 kB | 0.7% → <0.1% | 143 kB → 432 B | 8 → 2 | `executePhase(PipelineArtifact)` | `org.jetbrains.kotlin.cli.pipeline.jvm.JvmBackendPipelinePhase` |
352
-
353
- # Lock contention profile diff
354
-
355
- Blocked 486.7ms → 538.7ms (+52.05ms, +10.7%) over 2 samples → 3 samples (243.3ms → 179.6ms per sample).
356
-
357
- | Category | Change | Delta | % | Time | Samples |
358
- | -------- | -----: | -------: | -----: | ----------------: | ------: |
359
- | stdlib | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 |
360
-
361
- The entry filter hides every sampled function, so all functions are shown.
362
-
363
- ## Hottest functions
364
-
365
- ### Self time
366
-
367
- #### Regressions
368
-
369
- Functions with the largest increase in time blocked directly in the function body, excluding callees.
370
-
371
- | Change | Delta | % | Time | Samples | Function | Location |
372
- | -----: | -------: | -----: | ----------------: | ------: | --------------------- | -------------------------- |
373
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `park(boolean, long)` | `jdk.internal.misc.Unsafe` |
374
-
375
- ### Total time
376
-
377
- #### Regressions
378
-
379
- Functions with the largest increase in total time blocked in the function and all its callees.
380
-
381
- | Change | Delta | % | Time | Samples | Function | Location |
382
- | -----: | -------: | -----: | ----------------: | ------: | --------------------------- | ----------------------------------------------------------------------- |
383
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `park(boolean, long)` | `jdk.internal.misc.Unsafe` |
384
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `parkNanos(Object, long)` | `java.util.concurrent.locks.LockSupport` |
385
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `await(long, TimeUnit)` | `java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject` |
386
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `await(long)` | `java.lang.ref.ReferenceQueue` |
387
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `remove0(long)` | `java.lang.ref.ReferenceQueue` |
388
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `remove(long)` | `java.lang.ref.ReferenceQueue` |
389
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `run()` | `jdk.internal.ref.CleanerImpl` |
390
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `runWith(Object, Runnable)` | `java.lang.Thread` |
391
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `run()` | `java.lang.Thread` |
392
- | +10.7% | +52.05ms | 100.0% | 486.7ms → 538.7ms | 2 → 3 | `run()` | `jdk.internal.misc.InnocuousThread` |