profiler-md 0.6.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 (239) hide show
  1. package/dist/cli/index.mjs +12685 -4219
  2. package/dist/index.d.mts +1140 -432
  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 +2 -2
  11. package/docs/formats/jsc-heap-snapshot.md +10 -4
  12. package/docs/formats/memray.md +30 -0
  13. package/docs/formats/perf.md +74 -0
  14. package/docs/formats/pprof.md +4 -2
  15. package/docs/formats/speedscope.md +3 -2
  16. package/docs/formats/systing.md +17 -15
  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 +8 -3
  20. package/docs/formats/webkit-timeline-recording.md +6 -0
  21. package/docs/languages/c.md +119 -32
  22. package/docs/languages/csharp.md +5 -3
  23. package/docs/languages/elixir.md +19 -11
  24. package/docs/languages/fortran.md +141 -0
  25. package/docs/languages/go.md +33 -10
  26. package/docs/languages/haskell.md +134 -0
  27. package/docs/languages/java.md +81 -26
  28. package/docs/languages/javascript.md +33 -27
  29. package/docs/languages/julia.md +21 -18
  30. package/docs/languages/php.md +7 -0
  31. package/docs/languages/python.md +105 -14
  32. package/docs/languages/ruby.md +15 -16
  33. package/docs/languages/rust.md +11 -10
  34. package/docs/languages/swift.md +135 -0
  35. package/docs/languages/zig.md +155 -0
  36. package/package.json +42 -42
  37. package/readme.md +301 -259
  38. package/skills/profile-optimize/SKILL.md +4 -2
  39. package/examples/output/c.gperftools.cpu.base.pprof.md +0 -324
  40. package/examples/output/c.gperftools.cpu.current.pprof.md +0 -271
  41. package/examples/output/c.gperftools.cpu.diff.pprof.md +0 -98
  42. package/examples/output/c.gperftools.heap.base.pprof.md +0 -362
  43. package/examples/output/c.gperftools.heap.current.pprof.md +0 -362
  44. package/examples/output/c.gperftools.heap.diff.pprof.md +0 -28
  45. package/examples/output/c.systing.cpu.base.systing.md +0 -824
  46. package/examples/output/c.systing.cpu.current.systing.md +0 -825
  47. package/examples/output/c.systing.cpu.diff.systing.md +0 -238
  48. package/examples/output/cpp.gperftools.cpu.base.pprof.md +0 -557
  49. package/examples/output/cpp.gperftools.cpu.current.pprof.md +0 -573
  50. package/examples/output/cpp.gperftools.cpu.diff.pprof.md +0 -122
  51. package/examples/output/cpp.gperftools.heap.base.pprof.md +0 -67
  52. package/examples/output/cpp.gperftools.heap.current.pprof.md +0 -67
  53. package/examples/output/cpp.gperftools.heap.diff.pprof.md +0 -19
  54. package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +0 -411
  55. package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +0 -412
  56. package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +0 -122
  57. package/examples/output/elixir.eflambe.cpu.base.collapsed.md +0 -399
  58. package/examples/output/elixir.eflambe.cpu.current.collapsed.md +0 -398
  59. package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +0 -92
  60. package/examples/output/erlang.eflambe.cpu.base.collapsed.md +0 -147
  61. package/examples/output/erlang.eflambe.cpu.current.collapsed.md +0 -147
  62. package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +0 -18
  63. package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +0 -324
  64. package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +0 -314
  65. package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +0 -119
  66. package/examples/output/go.pprof.block.base.pprof.md +0 -86
  67. package/examples/output/go.pprof.block.current.pprof.md +0 -83
  68. package/examples/output/go.pprof.block.diff.pprof.md +0 -42
  69. package/examples/output/go.pprof.cpu.base.pprof.md +0 -81
  70. package/examples/output/go.pprof.cpu.current.pprof.md +0 -70
  71. package/examples/output/go.pprof.cpu.diff.pprof.md +0 -52
  72. package/examples/output/go.pprof.goroutine.base.pprof.md +0 -43
  73. package/examples/output/go.pprof.goroutine.current.pprof.md +0 -43
  74. package/examples/output/go.pprof.goroutine.diff.pprof.md +0 -13
  75. package/examples/output/go.pprof.heap-alloc.base.pprof.md +0 -154
  76. package/examples/output/go.pprof.heap-alloc.current.pprof.md +0 -146
  77. package/examples/output/go.pprof.heap-alloc.diff.pprof.md +0 -67
  78. package/examples/output/go.pprof.heap.base.pprof.md +0 -154
  79. package/examples/output/go.pprof.heap.current.pprof.md +0 -146
  80. package/examples/output/go.pprof.heap.diff.pprof.md +0 -67
  81. package/examples/output/go.pprof.mutex.base.pprof.md +0 -55
  82. package/examples/output/go.pprof.mutex.current.pprof.md +0 -41
  83. package/examples/output/go.pprof.mutex.diff.pprof.md +0 -31
  84. package/examples/output/go.pprof.threadcreate.base.pprof.md +0 -55
  85. package/examples/output/go.pprof.threadcreate.current.pprof.md +0 -55
  86. package/examples/output/go.pprof.threadcreate.diff.pprof.md +0 -19
  87. package/examples/output/java.async-profiler.all.base.jfr.md +0 -1071
  88. package/examples/output/java.async-profiler.all.current.jfr.md +0 -1007
  89. package/examples/output/java.async-profiler.all.diff.jfr.md +0 -268
  90. package/examples/output/java.async-profiler.alloc.base.jfr.md +0 -425
  91. package/examples/output/java.async-profiler.alloc.current.jfr.md +0 -413
  92. package/examples/output/java.async-profiler.alloc.diff.jfr.md +0 -99
  93. package/examples/output/java.async-profiler.cpu.base.collapsed.md +0 -367
  94. package/examples/output/java.async-profiler.cpu.base.jfr.md +0 -485
  95. package/examples/output/java.async-profiler.cpu.current.collapsed.md +0 -355
  96. package/examples/output/java.async-profiler.cpu.current.jfr.md +0 -488
  97. package/examples/output/java.async-profiler.cpu.diff.collapsed.md +0 -117
  98. package/examples/output/java.async-profiler.cpu.diff.jfr.md +0 -118
  99. package/examples/output/java.async-profiler.live.base.jfr.md +0 -697
  100. package/examples/output/java.async-profiler.live.current.jfr.md +0 -684
  101. package/examples/output/java.async-profiler.live.diff.jfr.md +0 -191
  102. package/examples/output/java.async-profiler.lock.base.jfr.md +0 -140
  103. package/examples/output/java.async-profiler.lock.current.jfr.md +0 -108
  104. package/examples/output/java.async-profiler.lock.diff.jfr.md +0 -44
  105. package/examples/output/java.async-profiler.nativemem.base.jfr.md +0 -222
  106. package/examples/output/java.async-profiler.nativemem.current.jfr.md +0 -222
  107. package/examples/output/java.async-profiler.nativemem.diff.jfr.md +0 -65
  108. package/examples/output/java.async-profiler.wall.base.jfr.md +0 -400
  109. package/examples/output/java.async-profiler.wall.current.jfr.md +0 -420
  110. package/examples/output/java.async-profiler.wall.diff.jfr.md +0 -94
  111. package/examples/output/java.jdk.all.base.jfr.md +0 -1024
  112. package/examples/output/java.jdk.all.current.jfr.md +0 -1010
  113. package/examples/output/java.jdk.all.diff.jfr.md +0 -311
  114. package/examples/output/java.jdk.alloc.base.jfr.md +0 -1024
  115. package/examples/output/java.jdk.alloc.current.jfr.md +0 -1046
  116. package/examples/output/java.jdk.alloc.diff.jfr.md +0 -312
  117. package/examples/output/java.jdk.cpu.base.jfr.md +0 -1023
  118. package/examples/output/java.jdk.cpu.current.jfr.md +0 -1039
  119. package/examples/output/java.jdk.cpu.diff.jfr.md +0 -285
  120. package/examples/output/java.jdk.live.base.jfr.md +0 -1029
  121. package/examples/output/java.jdk.live.current.jfr.md +0 -1035
  122. package/examples/output/java.jdk.live.diff.jfr.md +0 -289
  123. package/examples/output/java.jdk.lock.base.jfr.md +0 -1040
  124. package/examples/output/java.jdk.lock.current.jfr.md +0 -1051
  125. package/examples/output/java.jdk.lock.diff.jfr.md +0 -339
  126. package/examples/output/javascript.bun.base.cpuprofile.md +0 -73
  127. package/examples/output/javascript.bun.base.heapsnapshot.md +0 -608
  128. package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +0 -480
  129. package/examples/output/javascript.bun.current.cpuprofile.md +0 -73
  130. package/examples/output/javascript.bun.current.heapsnapshot.md +0 -608
  131. package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +0 -480
  132. package/examples/output/javascript.bun.diff.cpuprofile.md +0 -54
  133. package/examples/output/javascript.bun.diff.heapsnapshot.md +0 -48
  134. package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +0 -62
  135. package/examples/output/javascript.chrome.base.cpuprofile.md +0 -163
  136. package/examples/output/javascript.chrome.base.heapprofile.md +0 -32
  137. package/examples/output/javascript.chrome.base.heapsnapshot.md +0 -649
  138. package/examples/output/javascript.chrome.current.cpuprofile.md +0 -149
  139. package/examples/output/javascript.chrome.current.heapprofile.md +0 -32
  140. package/examples/output/javascript.chrome.current.heapsnapshot.md +0 -647
  141. package/examples/output/javascript.chrome.diff.cpuprofile.md +0 -65
  142. package/examples/output/javascript.chrome.diff.heapprofile.md +0 -50
  143. package/examples/output/javascript.chrome.diff.heapsnapshot.md +0 -73
  144. package/examples/output/javascript.deno.base.cpuprofile.md +0 -122
  145. package/examples/output/javascript.deno.current.cpuprofile.md +0 -114
  146. package/examples/output/javascript.deno.diff.cpuprofile.md +0 -66
  147. package/examples/output/javascript.node.base.cpuprofile.md +0 -136
  148. package/examples/output/javascript.node.base.heapprofile.md +0 -56
  149. package/examples/output/javascript.node.base.heapsnapshot.md +0 -660
  150. package/examples/output/javascript.node.current.cpuprofile.md +0 -119
  151. package/examples/output/javascript.node.current.heapprofile.md +0 -52
  152. package/examples/output/javascript.node.current.heapsnapshot.md +0 -660
  153. package/examples/output/javascript.node.diff.cpuprofile.md +0 -70
  154. package/examples/output/javascript.node.diff.heapprofile.md +0 -34
  155. package/examples/output/javascript.node.diff.heapsnapshot.md +0 -39
  156. package/examples/output/javascript.pprof.cpu.base.pprof.md +0 -104
  157. package/examples/output/javascript.pprof.cpu.current.pprof.md +0 -120
  158. package/examples/output/javascript.pprof.cpu.diff.pprof.md +0 -63
  159. package/examples/output/javascript.pprof.heap.base.pprof.md +0 -86
  160. package/examples/output/javascript.pprof.heap.current.pprof.md +0 -57
  161. package/examples/output/javascript.pprof.heap.diff.pprof.md +0 -42
  162. package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +0 -388
  163. package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +0 -378
  164. package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +0 -122
  165. package/examples/output/julia.pprof-jl.alloc.base.pprof.md +0 -124
  166. package/examples/output/julia.pprof-jl.alloc.current.pprof.md +0 -126
  167. package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +0 -30
  168. package/examples/output/julia.pprof-jl.cpu.base.pprof.md +0 -177
  169. package/examples/output/julia.pprof-jl.cpu.current.pprof.md +0 -179
  170. package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +0 -64
  171. package/examples/output/julia.pprof-jl.wall.base.pprof.md +0 -181
  172. package/examples/output/julia.pprof-jl.wall.current.pprof.md +0 -193
  173. package/examples/output/julia.pprof-jl.wall.diff.pprof.md +0 -64
  174. package/examples/output/julia.profile.base.heapsnapshot.md +0 -590
  175. package/examples/output/julia.profile.current.heapsnapshot.md +0 -590
  176. package/examples/output/julia.profile.diff.heapsnapshot.md +0 -288
  177. package/examples/output/kotlin.async-profiler.all.base.jfr.md +0 -920
  178. package/examples/output/kotlin.async-profiler.all.current.jfr.md +0 -925
  179. package/examples/output/kotlin.async-profiler.all.diff.jfr.md +0 -247
  180. package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +0 -467
  181. package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +0 -473
  182. package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +0 -122
  183. package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +0 -371
  184. package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +0 -472
  185. package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +0 -370
  186. package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +0 -445
  187. package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +0 -124
  188. package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +0 -125
  189. package/examples/output/kotlin.async-profiler.live.base.jfr.md +0 -934
  190. package/examples/output/kotlin.async-profiler.live.current.jfr.md +0 -917
  191. package/examples/output/kotlin.async-profiler.live.diff.jfr.md +0 -245
  192. package/examples/output/kotlin.async-profiler.lock.base.jfr.md +0 -1
  193. package/examples/output/kotlin.async-profiler.lock.current.jfr.md +0 -1
  194. package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +0 -1
  195. package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +0 -234
  196. package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +0 -234
  197. package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +0 -65
  198. package/examples/output/kotlin.async-profiler.wall.base.jfr.md +0 -452
  199. package/examples/output/kotlin.async-profiler.wall.current.jfr.md +0 -457
  200. package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +0 -125
  201. package/examples/output/kotlin.jdk.all.base.jfr.md +0 -1442
  202. package/examples/output/kotlin.jdk.all.current.jfr.md +0 -1343
  203. package/examples/output/kotlin.jdk.all.diff.jfr.md +0 -392
  204. package/examples/output/kotlin.jdk.alloc.base.jfr.md +0 -1418
  205. package/examples/output/kotlin.jdk.alloc.current.jfr.md +0 -1389
  206. package/examples/output/kotlin.jdk.alloc.diff.jfr.md +0 -383
  207. package/examples/output/kotlin.jdk.cpu.base.jfr.md +0 -1406
  208. package/examples/output/kotlin.jdk.cpu.current.jfr.md +0 -1374
  209. package/examples/output/kotlin.jdk.cpu.diff.jfr.md +0 -380
  210. package/examples/output/kotlin.jdk.live.base.jfr.md +0 -1378
  211. package/examples/output/kotlin.jdk.live.current.jfr.md +0 -1311
  212. package/examples/output/kotlin.jdk.live.diff.jfr.md +0 -381
  213. package/examples/output/kotlin.jdk.lock.base.jfr.md +0 -1427
  214. package/examples/output/kotlin.jdk.lock.current.jfr.md +0 -1374
  215. package/examples/output/kotlin.jdk.lock.diff.jfr.md +0 -386
  216. package/examples/output/php.excimer.wall.base.speedscope.json.md +0 -25
  217. package/examples/output/php.excimer.wall.current.speedscope.json.md +0 -25
  218. package/examples/output/php.excimer.wall.diff.speedscope.json.md +0 -29
  219. package/examples/output/python.py-spy.cpu.base.collapsed.md +0 -526
  220. package/examples/output/python.py-spy.cpu.base.speedscope.json.md +0 -37
  221. package/examples/output/python.py-spy.cpu.current.collapsed.md +0 -514
  222. package/examples/output/python.py-spy.cpu.current.speedscope.json.md +0 -37
  223. package/examples/output/python.py-spy.cpu.diff.collapsed.md +0 -122
  224. package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +0 -31
  225. package/examples/output/python.py-spy.wall.base.collapsed.md +0 -527
  226. package/examples/output/python.py-spy.wall.current.collapsed.md +0 -518
  227. package/examples/output/python.py-spy.wall.diff.collapsed.md +0 -122
  228. package/examples/output/ruby.rbspy.cpu.base.collapsed.md +0 -90
  229. package/examples/output/ruby.rbspy.cpu.base.pprof.md +0 -105
  230. package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +0 -105
  231. package/examples/output/ruby.rbspy.cpu.current.collapsed.md +0 -90
  232. package/examples/output/ruby.rbspy.cpu.current.pprof.md +0 -115
  233. package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +0 -115
  234. package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +0 -32
  235. package/examples/output/ruby.rbspy.cpu.diff.pprof.md +0 -44
  236. package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +0 -44
  237. package/examples/output/rust.pprof-rs.cpu.base.pprof.md +0 -60
  238. package/examples/output/rust.pprof-rs.cpu.current.pprof.md +0 -60
  239. package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +0 -24
@@ -1,122 +0,0 @@
1
- # Sampling profile diff
2
-
3
- Took 4.44s → 4.73s (+291.47ms, +6.6%) over 4,849 samples → 4,961 samples (917.1µs → 955.1µs per sample).
4
-
5
- | Category | Change | Delta | % | Time | Samples |
6
- | -------- | -----: | --------: | ------------: | ------------: | ------------: |
7
- | ours | +3.6% | +122.26ms | 76.1% → 74.0% | 3.38s → 3.50s | 4,092 → 4,120 |
8
- | stdlib | +15.9% | +169.22ms | 23.9% → 26.0% | 1.06s → 1.23s | 757 → 841 |
9
-
10
- ## Hottest functions
11
-
12
- ### Self time
13
-
14
- #### Regressions
15
-
16
- Functions with the largest increase in time spent directly in the function body, excluding callees.
17
-
18
- | Change | Delta | % | Time | Samples | Function | Location |
19
- | ------: | --------: | ------------: | ----------------: | --------: | ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
20
- | +33.1% | +386.26ms | 26.2% → 32.8% | 1.16s → 1.55s | 788 → 981 | `ReadForType(JsonContract, bool)` | `Newtonsoft.Json.JsonReader` |
21
- | +32.5% | +191.97ms | 13.3% → 16.5% | 591.3ms → 783.3ms | 405 → 514 | `CopyTo(Array, int32)` | ``System.Collections.Generic.List`1[System.__Canon].System.Collections.ICollection`` |
22
- | +25.9% | +20.23ms | 1.8% → 2.1% | 78.1ms → 98.3ms | 162 → 157 | `PopulateList(IList, JsonReader, JsonArrayContract, JsonProperty, String)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
23
- | +41.9% | +19.70ms | 1.1% → 1.4% | 47.0ms → 66.7ms | 70 → 76 | `SerializeValue(JsonWriter, Object, JsonContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
24
- | +20.7% | +19.40ms | 2.1% → 2.4% | 93.6ms → 113.0ms | 64 → 75 | `UNMANAGED_CODE_TIME` | `<unknown>` |
25
- | +30.5% | +12.67ms | 0.9% → 1.1% | 41.6ms → 54.3ms | 29 → 39 | `ParsePostValue(bool)` | `Newtonsoft.Json.JsonTextReader` |
26
- | +398.5% | +10.82ms | 0.1% → 0.3% | 2.7ms → 13.5ms | 2 → 10 | `ChkCastInterface(void*, Object)` | `System.Runtime.CompilerServices.CastHelpers` |
27
- | +31.6% | +8.94ms | 0.6% → 0.8% | 28.2ms → 37.2ms | 20 → 27 | `Memmove(unsigned int8&, unsigned int8&, unsigned int)` | `System.Buffer` |
28
- | +101.3% | +6.87ms | 0.2% → 0.3% | 6.8ms → 13.7ms | 5 → 10 | `TryGetValueInternal(Tables<!0, !1>, !0, int32, !1&)` | ``System.Collections.Concurrent.ConcurrentDictionary`2[System.__Canon,System.__Canon]`` |
29
- | +43.3% | +5.88ms | 0.3% → 0.4% | 13.6ms → 19.5ms | 10 → 14 | `ReadAsDouble()` | `Newtonsoft.Json.JsonTextReader` |
30
- | +60.8% | +5.67ms | 0.2% → 0.3% | 9.3ms → 15.0ms | 14 → 13 | `CreateValueInternal(JsonReader, Type, JsonContract, JsonProperty, JsonContainerContract, JsonProperty, Object)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
31
- | +69.4% | +5.60ms | 0.2% → 0.3% | 8.1ms → 13.7ms | 6 → 10 | `SetStateBasedOnCurrent()` | `Newtonsoft.Json.JsonReader` |
32
- | +409.1% | +5.56ms | <0.1% → 0.1% | 1.4ms → 6.9ms | 1 → 5 | `Get(wchar[], int32, int32)` | `Newtonsoft.Json.DefaultJsonNameTable` |
33
- | +41.2% | +5.55ms | 0.3% → 0.4% | 13.5ms → 19.0ms | 10 → 14 | `WriteValue(float64)` | `Newtonsoft.Json.JsonTextWriter` |
34
- | new | +4.17ms | 0.0% → 0.1% | 0ms → 4.2ms | 0 → 3 | `IndexOf(!!0[], !!0, int32, int32)` | `System.Array` |
35
- | +44.0% | +4.10ms | 0.2% → 0.3% | 9.3ms → 13.4ms | 7 → 10 | `StelemRef(Array, int, Object)` | `System.Runtime.CompilerServices.CastHelpers` |
36
- | new | +4.04ms | 0.0% → 0.1% | 0ms → 4.0ms | 0 → 2 | `WriteIntegerValue(int32)` | `Newtonsoft.Json.JsonTextWriter` |
37
- | new | +2.76ms | 0.0% → 0.1% | 0ms → 2.8ms | 0 → 2 | `AddWithResize(!0)` | ``System.Collections.Generic.List`1[Newtonsoft.Json.JsonPosition]`` |
38
- | new | +2.75ms | 0.0% → 0.1% | 0ms → 2.7ms | 0 → 2 | `.ctor(JsonSerializer)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
39
- | +101.2% | +2.72ms | 0.1% | 2.7ms → 5.4ms | 2 → 4 | `ValidateEnd(JsonToken)` | `Newtonsoft.Json.JsonReader` |
40
-
41
- #### Improvements
42
-
43
- Functions with the largest decrease in time spent directly in the function body, excluding callees.
44
-
45
- | Change | Delta | % | Time | Samples | Function | Location |
46
- | ------: | -------: | ----------: | ----------------: | ----------: | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
47
- | -30.2% | -61.35ms | 4.6% → 3.0% | 203.0ms → 141.6ms | 146 → 100 | `ReadStringIntoBuffer(wchar)` | `Newtonsoft.Json.JsonTextReader` |
48
- | -26.8% | -40.30ms | 3.4% → 2.3% | 150.4ms → 110.1ms | 109 → 79 | `ParseProperty()` | `Newtonsoft.Json.JsonTextReader` |
49
- | -42.4% | -39.38ms | 2.1% → 1.1% | 92.9ms → 53.6ms | 68 → 38 | ``WriteEscapedJavaScriptString(TextWriter, String, wchar, bool, bool[], StringEscapeHandling, IArrayPool`1<wchar>, wchar[]&)`` | `Newtonsoft.Json.Utilities.JavaScriptUtils` |
50
- | -13.8% | -34.82ms | 5.7% → 4.6% | 252.4ms → 217.6ms | 983 → 1,008 | `PopulateObject(Object, JsonReader, JsonObjectContract, JsonProperty, String)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
51
- | -18.2% | -33.64ms | 4.2% → 3.2% | 185.3ms → 151.7ms | 160 → 133 | `SerializeList(JsonWriter, IEnumerable, JsonArrayContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
52
- | -8.9% | -28.91ms | 7.3% → 6.3% | 325.5ms → 296.6ms | 296 → 246 | `SerializeObject(JsonWriter, Object, JsonObjectContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
53
- | -39.7% | -21.30ms | 1.2% → 0.7% | 53.7ms → 32.4ms | 38 → 24 | `ReadStringValue(ReadType)` | `Newtonsoft.Json.JsonTextReader` |
54
- | -66.4% | -13.44ms | 0.5% → 0.1% | 20.3ms → 6.8ms | 15 → 5 | `Append(wchar&, int32)` | `System.Text.StringBuilder` |
55
- | -12.6% | -13.42ms | 2.4% → 2.0% | 106.5ms → 93.0ms | 68 → 59 | `ReadAsInt32()` | `Newtonsoft.Json.JsonTextReader` |
56
- | -38.1% | -12.82ms | 0.8% → 0.4% | 33.6ms → 20.8ms | 25 → 15 | `Add(Object)` | ``System.Collections.Generic.List`1[System.__Canon].System.Collections.IList`` |
57
- | -16.9% | -12.71ms | 1.7% → 1.3% | 75.4ms → 62.7ms | 57 → 45 | `ParseValue()` | `Newtonsoft.Json.JsonTextReader` |
58
- | -57.3% | -9.26ms | 0.4% → 0.1% | 16.2ms → 6.9ms | 12 → 5 | `MatchValueWithTrailingSeparator(String)` | `Newtonsoft.Json.JsonTextReader` |
59
- | -52.7% | -9.22ms | 0.4% → 0.2% | 17.5ms → 8.3ms | 13 → 6 | `EnsureType(JsonReader, Object, CultureInfo, JsonContract, Type)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
60
- | -10.5% | -7.04ms | 1.5% → 1.3% | 67.2ms → 60.2ms | 49 → 43 | `SetToken(JsonToken, Object, bool)` | `Newtonsoft.Json.JsonReader` |
61
- | -9.3% | -6.84ms | 1.7% → 1.4% | 73.9ms → 67.1ms | 59 → 49 | `ParseReadNumber(ReadType, wchar, int32)` | `Newtonsoft.Json.JsonTextReader` |
62
- | removed | -6.74ms | 0.2% → 0.0% | 6.7ms → 0ms | 5 → 0 | `<GetInstance>g__GetProviderNonNull\|58_0(IFormatProvider)` | `System.Globalization.NumberFormatInfo` |
63
- | -44.5% | -6.57ms | 0.3% → 0.2% | 14.8ms → 8.2ms | 11 → 6 | `CheckForCircularReference(JsonWriter, Object, JsonProperty, JsonContract, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
64
- | -43.3% | -6.40ms | 0.3% → 0.2% | 14.8ms → 8.4ms | 16 → 6 | `SerializeObjectInternal(Object, Type, JsonSerializer)` | `Newtonsoft.Json.JsonConvert` |
65
- | -22.4% | -5.47ms | 0.5% → 0.4% | 24.4ms → 18.9ms | 18 → 13 | `IsInstanceOfInterface(void*, Object)` | `System.Runtime.CompilerServices.CastHelpers` |
66
- | -56.4% | -5.31ms | 0.2% → 0.1% | 9.4ms → 4.1ms | 20 → 10 | `DeserializeObject(String, Type, JsonSerializerSettings)` | `Newtonsoft.Json.JsonConvert` |
67
-
68
- ### Total time
69
-
70
- #### Regressions
71
-
72
- Functions with the largest increase in total time spent in the function and all its callees.
73
-
74
- | Change | Delta | % | Time | Samples | Function | Location |
75
- | ------: | --------: | ------------: | ----------------: | ------------: | ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
76
- | +11.6% | +392.42ms | 76.0% → 79.6% | 3.38s → 3.77s | 3,488 → 3,753 | `DeserializeInternal(JsonReader, Type)` | `Newtonsoft.Json.JsonSerializer` |
77
- | +11.5% | +390.70ms | 76.3% → 79.9% | 3.39s → 3.78s | 3,511 → 3,768 | `DeserializeObject(String, Type, JsonSerializerSettings)` | `Newtonsoft.Json.JsonConvert` |
78
- | +11.7% | +388.68ms | 75.0% → 78.6% | 3.33s → 3.72s | 3,414 → 3,675 | `CreateValueInternal(JsonReader, Type, JsonContract, JsonProperty, JsonContainerContract, JsonProperty, Object)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
79
- | +11.6% | +387.33ms | 74.9% → 78.5% | 3.33s → 3.71s | 3,411 → 3,673 | `CreateObject(JsonReader, Type, JsonContract, JsonProperty, JsonContainerContract, JsonProperty, Object)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
80
- | +11.5% | +386.97ms | 75.8% → 79.3% | 3.37s → 3.75s | 3,474 → 3,733 | `Deserialize(JsonReader, Type, bool)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
81
- | +11.6% | +385.68ms | 74.5% → 78.0% | 3.31s → 3.69s | 3,384 → 3,643 | `PopulateObject(Object, JsonReader, JsonObjectContract, JsonProperty, String)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
82
- | +6.6% | +291.11ms | 99.6% → 99.7% | 4.43s → 4.72s | 4,834 → 4,945 | `Main()` | `Profile.Program` |
83
- | +14.3% | +273.71ms | 43.0% → 46.1% | 1.91s → 2.18s | 1,330 → 1,433 | `ReadForType(JsonContract, bool)` | `Newtonsoft.Json.JsonReader` |
84
- | +32.3% | +192.00ms | 13.4% → 16.6% | 594.0ms → 786.0ms | 407 → 516 | `CopyTo(Array, int32)` | ``System.Collections.Generic.List`1[System.__Canon].System.Collections.ICollection`` |
85
- | +6.0% | +122.98ms | 46.2% → 45.9% | 2.05s → 2.17s | 1,950 → 2,014 | `CreateList(JsonReader, Type, JsonContract, JsonProperty, Object, String)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
86
- | +10.0% | +19.87ms | 4.5% → 4.6% | 198.3ms → 218.1ms | 216 → 234 | `DeserializeObject(String, JsonSerializerSettings)` | `Newtonsoft.Json.JsonConvert` |
87
- | +10.0% | +19.87ms | 4.5% → 4.6% | 198.3ms → 218.1ms | 216 → 234 | `DeserializeObject(String)` | `Newtonsoft.Json.JsonConvert` |
88
- | +20.7% | +19.40ms | 2.1% → 2.4% | 93.6ms → 113.0ms | 64 → 75 | `UNMANAGED_CODE_TIME` | `<unknown>` |
89
- | +20.5% | +12.95ms | 1.4% → 1.6% | 63.1ms → 76.0ms | 45 → 55 | `ParsePostValue(bool)` | `Newtonsoft.Json.JsonTextReader` |
90
- | +398.5% | +10.82ms | 0.1% → 0.3% | 2.7ms → 13.5ms | 2 → 10 | `ChkCastInterface(void*, Object)` | `System.Runtime.CompilerServices.CastHelpers` |
91
- | +3.4% | +10.78ms | 7.2% → 7.0% | 321.4ms → 332.2ms | 340 → 333 | `Deserialize(JsonReader, Type)` | `Newtonsoft.Json.JsonSerializer` |
92
- | +11.4% | +10.10ms | 2.0% → 2.1% | 88.7ms → 98.8ms | 65 → 69 | `Read()` | `Newtonsoft.Json.JsonTextReader` |
93
- | +701.8% | +9.55ms | <0.1% → 0.2% | 1.4ms → 10.9ms | 1 → 8 | `CreateTemporaryCollection()` | `Newtonsoft.Json.Serialization.JsonArrayContract` |
94
- | +31.6% | +8.94ms | 0.6% → 0.8% | 28.2ms → 37.2ms | 20 → 27 | `Memmove(unsigned int8&, unsigned int8&, unsigned int)` | `System.Buffer` |
95
- | +62.3% | +8.38ms | 0.3% → 0.5% | 13.4ms → 21.8ms | 10 → 16 | `IndexOf(!!0[], !!0, int32, int32)` | `System.Array` |
96
-
97
- #### Improvements
98
-
99
- Functions with the largest decrease in total time spent in the function and all its callees.
100
-
101
- | Change | Delta | % | Time | Samples | Function | Location |
102
- | -----: | -------: | ------------: | ----------------: | ------------: | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------ |
103
- | -10.4% | -99.72ms | 21.6% → 18.2% | 962.7ms → 863.0ms | 826 → 714 | `SerializeObject(JsonWriter, Object, JsonObjectContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
104
- | -10.3% | -99.71ms | 21.7% → 18.2% | 964.0ms → 864.3ms | 827 → 715 | `SerializeValue(JsonWriter, Object, JsonContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
105
- | -9.3% | -94.55ms | 22.9% → 19.5% | 1.02s → 925.9ms | 888 → 774 | `SerializeObjectInternal(Object, Type, JsonSerializer)` | `Newtonsoft.Json.JsonConvert` |
106
- | -9.4% | -92.67ms | 22.3% → 18.9% | 989.6ms → 896.9ms | 856 → 748 | `Serialize(JsonWriter, Object, Type)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
107
- | -9.3% | -92.65ms | 22.3% → 19.0% | 992.2ms → 899.6ms | 859 → 751 | `SerializeInternal(JsonWriter, Object, Type)` | `Newtonsoft.Json.JsonSerializer` |
108
- | -12.0% | -89.21ms | 16.7% → 13.8% | 742.1ms → 652.9ms | 606 → 510 | `SerializeList(JsonWriter, IEnumerable, JsonArrayContract, JsonProperty, JsonContainerContract, JsonProperty)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalWriter` |
109
- | -30.7% | -62.67ms | 4.6% → 3.0% | 204.3ms → 141.6ms | 147 → 100 | `ReadStringIntoBuffer(wchar)` | `Newtonsoft.Json.JsonTextReader` |
110
- | -24.5% | -62.34ms | 5.7% → 4.0% | 254.1ms → 191.7ms | 186 → 140 | `WriteValue(JsonWriter, PrimitiveTypeCode, Object)` | `Newtonsoft.Json.JsonWriter` |
111
- | -22.9% | -59.97ms | 5.9% → 4.3% | 261.9ms → 201.9ms | 189 → 145 | `ParseProperty()` | `Newtonsoft.Json.JsonTextReader` |
112
- | -21.1% | -59.69ms | 6.4% → 4.7% | 283.4ms → 223.7ms | 206 → 160 | `ParseObject()` | `Newtonsoft.Json.JsonTextReader` |
113
- | -43.4% | -43.25ms | 2.2% → 1.2% | 99.7ms → 56.4ms | 73 → 40 | ``WriteEscapedJavaScriptString(TextWriter, String, wchar, bool, bool[], StringEscapeHandling, IArrayPool`1<wchar>, wchar[]&)`` | `Newtonsoft.Json.Utilities.JavaScriptUtils` |
114
- | -18.9% | -42.41ms | 5.0% → 3.8% | 224.3ms → 181.9ms | 161 → 130 | `ReadStringValue(ReadType)` | `Newtonsoft.Json.JsonTextReader` |
115
- | -25.2% | -32.19ms | 2.9% → 2.0% | 128.0ms → 95.8ms | 96 → 69 | `ParseValue()` | `Newtonsoft.Json.JsonTextReader` |
116
- | -17.9% | -30.01ms | 3.8% → 2.9% | 167.7ms → 137.7ms | 129 → 102 | `ParseReadNumber(ReadType, wchar, int32)` | `Newtonsoft.Json.JsonTextReader` |
117
- | -10.2% | -26.17ms | 5.8% → 4.9% | 257.3ms → 231.1ms | 195 → 172 | `ReadNumberValue(ReadType)` | `Newtonsoft.Json.JsonTextReader` |
118
- | -26.6% | -20.70ms | 1.7% → 1.2% | 77.8ms → 57.1ms | 58 → 41 | ``TryParseFloat(ReadOnlySpan`1<!!0>, NumberStyles, NumberFormatInfo, !!1&)`` | `System.Number` |
119
- | -27.6% | -20.41ms | 1.7% → 1.1% | 74.0ms → 53.6ms | 54 → 39 | `FormatDouble(float64, String, NumberFormatInfo)` | `System.Number` |
120
- | -18.7% | -18.67ms | 2.2% → 1.7% | 99.6ms → 80.9ms | 73 → 59 | `WriteValue(float64)` | `Newtonsoft.Json.JsonTextWriter` |
121
- | -9.4% | -16.34ms | 3.9% → 3.3% | 174.5ms → 158.2ms | 167 → 142 | `SetPropertyValue(JsonProperty, JsonConverter, JsonContainerContract, JsonProperty, JsonReader, Object)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
122
- | -0.8% | -13.99ms | 38.6% → 35.9% | 1.71s → 1.70s | 1,592 → 1,513 | `PopulateList(IList, JsonReader, JsonArrayContract, JsonProperty, String)` | `Newtonsoft.Json.Serialization.JsonSerializerInternalReader` |
@@ -1,399 +0,0 @@
1
- # Sampling profile
2
-
3
- Collected 25,768 samples.
4
-
5
- | Category | % | Samples |
6
- | -------- | ----: | ------: |
7
- | ours | 91.9% | 23,677 |
8
- | stdlib | 8.1% | 2,091 |
9
-
10
- ## Hottest functions
11
-
12
- ### Self samples
13
-
14
- Functions ranked by samples taken directly in the function body, excluding callees.
15
-
16
- | % | Samples | Function | Location |
17
- | ----: | ------: | ------------------------------------ | ----------------- |
18
- | 32.8% | 8,450 | `escape_json_chunk/5` | `Jason.Encode` |
19
- | 27.5% | 7,091 | `string/6` | `Jason.Decoder` |
20
- | 4.2% | 1,076 | `map_naive_loop/3` | `Jason.Encode` |
21
- | 3.2% | 824 | `string/7` | `Jason.Decoder` |
22
- | 2.6% | 677 | `object/6` | `Jason.Decoder` |
23
- | 2.3% | 595 | `escape_json/4` | `Jason.Encode` |
24
- | 2.2% | 570 | `sleep` | `<unknown>` |
25
- | 2.0% | 525 | `escape_json/3` | `Jason.Encode` |
26
- | 1.9% | 500 | `value/3` | `Jason.Encode` |
27
- | 1.8% | 461 | `map_naive/3` | `Jason.Encode` |
28
- | 1.7% | 438 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
29
- | 1.5% | 380 | `key/2` | `Jason.Encode` |
30
- | 1.4% | 363 | `value/5` | `Jason.Decoder` |
31
- | 1.3% | 324 | `key/5` | `Jason.Decoder` |
32
- | 1.3% | 324 | `key/6` | `Jason.Decoder` |
33
- | 1.3% | 324 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
34
- | 1.2% | 307 | `number/6` | `Jason.Decoder` |
35
- | 1.1% | 290 | `encode_string/2` | `Jason.Encode` |
36
- | 0.5% | 137 | `archive_split/3` | `erl_prim_loader` |
37
- | 0.5% | 125 | `encode_atom/2` | `Jason.Encode` |
38
-
39
- #### Callers
40
-
41
- Callers ranked by contribution to each function's self samples. Inlining can make caller attribution imprecise.
42
-
43
- ##### `escape_json_chunk/5` (`Jason.Encode`)
44
-
45
- | % | Samples | Caller | Location |
46
- | ----: | ------: | ------------------ | -------------- |
47
- | 52.1% | 4,405 | `map_naive_loop/3` | `Jason.Encode` |
48
- | 43.6% | 3,680 | `encode_string/2` | `Jason.Encode` |
49
- | 4.3% | 365 | `map_naive/3` | `Jason.Encode` |
50
-
51
- ##### `string/6` (`Jason.Decoder`)
52
-
53
- | % | Samples | Caller | Location |
54
- | -----: | ------: | --------- | --------------- |
55
- | 100.0% | 7,091 | `parse/2` | `Jason.Decoder` |
56
-
57
- ##### `map_naive_loop/3` (`Jason.Encode`)
58
-
59
- | % | Samples | Caller | Location |
60
- | -----: | ------: | ------------- | -------------- |
61
- | 100.0% | 1,076 | `map_naive/3` | `Jason.Encode` |
62
-
63
- ##### `string/7` (`Jason.Decoder`)
64
-
65
- | % | Samples | Caller | Location |
66
- | -----: | ------: | --------- | --------------- |
67
- | 100.0% | 824 | `parse/2` | `Jason.Decoder` |
68
-
69
- ##### `object/6` (`Jason.Decoder`)
70
-
71
- | % | Samples | Caller | Location |
72
- | -----: | ------: | --------- | --------------- |
73
- | 100.0% | 677 | `parse/2` | `Jason.Decoder` |
74
-
75
- ##### `escape_json/4` (`Jason.Encode`)
76
-
77
- | % | Samples | Caller | Location |
78
- | ----: | ------: | ------------------ | -------------- |
79
- | 58.0% | 345 | `map_naive_loop/3` | `Jason.Encode` |
80
- | 36.1% | 215 | `encode_string/2` | `Jason.Encode` |
81
- | 5.9% | 35 | `map_naive/3` | `Jason.Encode` |
82
-
83
- ##### `sleep` (`<unknown>`)
84
-
85
- | % | Samples | Caller | Location |
86
- | ----: | ------: | --------------------- | --------------- |
87
- | 92.1% | 525 | `call/1` | `code_server` |
88
- | 3.5% | 20 | `map_naive_loop/3` | `Jason.Encode` |
89
- | 1.6% | 9 | `sleep` | `<unknown>` |
90
- | 0.7% | 4 | `string/6` | `Jason.Decoder` |
91
- | 0.7% | 4 | `escape_json_chunk/5` | `Jason.Encode` |
92
-
93
- ##### `escape_json/3` (`Jason.Encode`)
94
-
95
- | % | Samples | Caller | Location |
96
- | ----: | ------: | ------------------ | -------------- |
97
- | 65.7% | 345 | `map_naive_loop/3` | `Jason.Encode` |
98
- | 27.6% | 145 | `encode_string/2` | `Jason.Encode` |
99
- | 6.7% | 35 | `map_naive/3` | `Jason.Encode` |
100
-
101
- ##### `value/3` (`Jason.Encode`)
102
-
103
- | % | Samples | Caller | Location |
104
- | ----: | ------: | ------------------ | -------------- |
105
- | 83.0% | 415 | `map_naive_loop/3` | `Jason.Encode` |
106
- | 9.0% | 45 | `map_naive/3` | `Jason.Encode` |
107
- | 4.0% | 20 | `list/3` | `Jason.Encode` |
108
- | 2.0% | 10 | `encode/2` | `Jason.Encode` |
109
- | 2.0% | 10 | `list_loop/3` | `Jason.Encode` |
110
-
111
- ##### `map_naive/3` (`Jason.Encode`)
112
-
113
- | % | Samples | Caller | Location |
114
- | ----: | ------: | ------------------ | -------------- |
115
- | 63.1% | 291 | `map_naive_loop/3` | `Jason.Encode` |
116
- | 28.2% | 130 | `encode/2` | `Jason.Encode` |
117
- | 8.7% | 40 | `list/3` | `Jason.Encode` |
118
-
119
- ##### `-string_decode_function/1-fun-0-/1` (`Jason.Decoder`)
120
-
121
- | % | Samples | Caller | Location |
122
- | -----: | ------: | ---------- | --------------- |
123
- | 100.0% | 438 | `string/6` | `Jason.Decoder` |
124
-
125
- ##### `key/2` (`Jason.Encode`)
126
-
127
- | % | Samples | Caller | Location |
128
- | ----: | ------: | ------------------ | -------------- |
129
- | 90.8% | 345 | `map_naive_loop/3` | `Jason.Encode` |
130
- | 9.2% | 35 | `map_naive/3` | `Jason.Encode` |
131
-
132
- ##### `value/5` (`Jason.Decoder`)
133
-
134
- | % | Samples | Caller | Location |
135
- | -----: | ------: | --------- | --------------- |
136
- | 100.0% | 363 | `parse/2` | `Jason.Decoder` |
137
-
138
- ##### `key/5` (`Jason.Decoder`)
139
-
140
- | % | Samples | Caller | Location |
141
- | -----: | ------: | --------- | --------------- |
142
- | 100.0% | 324 | `parse/2` | `Jason.Decoder` |
143
-
144
- ##### `key/6` (`Jason.Decoder`)
145
-
146
- | % | Samples | Caller | Location |
147
- | -----: | ------: | --------- | --------------- |
148
- | 100.0% | 324 | `parse/2` | `Jason.Decoder` |
149
-
150
- ##### `-key_decode_function/1-fun-0-/1` (`Jason.Decoder`)
151
-
152
- | % | Samples | Caller | Location |
153
- | -----: | ------: | ---------- | --------------- |
154
- | 100.0% | 324 | `object/6` | `Jason.Decoder` |
155
-
156
- ##### `number/6` (`Jason.Decoder`)
157
-
158
- | % | Samples | Caller | Location |
159
- | -----: | ------: | --------- | --------------- |
160
- | 100.0% | 307 | `parse/2` | `Jason.Decoder` |
161
-
162
- ##### `encode_string/2` (`Jason.Encode`)
163
-
164
- | % | Samples | Caller | Location |
165
- | ----: | ------: | ------------------ | -------------- |
166
- | 96.6% | 280 | `map_naive_loop/3` | `Jason.Encode` |
167
- | 3.4% | 10 | `map_naive/3` | `Jason.Encode` |
168
-
169
- ##### `archive_split/3` (`erl_prim_loader`)
170
-
171
- | % | Samples | Caller | Location |
172
- | -----: | ------: | -------------- | ----------------- |
173
- | 100.0% | 137 | `name_split/2` | `erl_prim_loader` |
174
-
175
- ##### `encode_atom/2` (`Jason.Encode`)
176
-
177
- | % | Samples | Caller | Location |
178
- | ----: | ------: | ------------------ | -------------- |
179
- | 92.0% | 115 | `map_naive_loop/3` | `Jason.Encode` |
180
- | 8.0% | 10 | `map_naive/3` | `Jason.Encode` |
181
-
182
- ### Total samples
183
-
184
- Functions ranked by total samples taken in the function and all its callees.
185
-
186
- | % | Samples | Function | Location |
187
- | ----: | ------: | ---------------------- | --------------- |
188
- | 56.4% | 14,546 | `-run/1-fun-0-/2` | `Profile` |
189
- | 56.4% | 14,530 | `encode!/2` | `Jason` |
190
- | 49.8% | 12,820 | `encode/2` | `Jason.Encode` |
191
- | 49.5% | 12,760 | `map_naive/3` | `Jason.Encode` |
192
- | 48.7% | 12,545 | `map_naive_loop/3` | `Jason.Encode` |
193
- | 43.5% | 11,208 | `decode!/2` | `Jason` |
194
- | 43.2% | 11,144 | `parse/2` | `Jason.Decoder` |
195
- | 33.0% | 8,514 | `escape_json_chunk/5` | `Jason.Encode` |
196
- | 29.2% | 7,533 | `string/6` | `Jason.Decoder` |
197
- | 17.1% | 4,397 | `encode_string/2` | `Jason.Encode` |
198
- | 6.4% | 1,645 | `undefined_function/3` | `error_handler` |
199
- | 4.5% | 1,163 | `ensure_loaded/1` | `code` |
200
- | 4.0% | 1,031 | `object/6` | `Jason.Decoder` |
201
- | 3.3% | 838 | `string/7` | `Jason.Decoder` |
202
- | 2.8% | 722 | `value/3` | `Jason.Encode` |
203
- | 2.6% | 670 | `list/3` | `Jason.Encode` |
204
- | 2.3% | 602 | `escape_json/4` | `Jason.Encode` |
205
- | 2.2% | 570 | `sleep` | `<unknown>` |
206
- | 2.1% | 554 | `number/6` | `Jason.Decoder` |
207
- | 2.1% | 536 | `call/1` | `code_server` |
208
-
209
- #### Callees
210
-
211
- Callees ranked by contribution to each function's total samples. Inlining can make callee attribution imprecise, and percentages can sum past 100% when callees recurse.
212
-
213
- ##### `-run/1-fun-0-/2` (`Profile`)
214
-
215
- | % | Samples | Callee | Location |
216
- | ----: | ------: | ----------- | -------- |
217
- | 99.9% | 14,530 | `encode!/2` | `Jason` |
218
- | <0.1% | 5 | `encode!/1` | `Jason` |
219
-
220
- ##### `encode!/2` (`Jason`)
221
-
222
- | % | Samples | Callee | Location |
223
- | ----: | ------: | ---------------------- | --------------- |
224
- | 88.2% | 12,820 | `encode/2` | `Jason.Encode` |
225
- | 11.3% | 1,645 | `undefined_function/3` | `error_handler` |
226
- | 0.2% | 25 | `into_map/2` | `Enum` |
227
- | <0.1% | 5 | `format_encode_opts/1` | `Jason` |
228
- | <0.1% | 5 | `into/2` | `Enum` |
229
-
230
- ##### `encode/2` (`Jason.Encode`)
231
-
232
- | % | Samples | Callee | Location |
233
- | ----: | ------: | ----------------------- | -------------- |
234
- | 99.5% | 12,760 | `map_naive/3` | `Jason.Encode` |
235
- | 0.2% | 30 | `value/3` | `Jason.Encode` |
236
- | <0.1% | 5 | `escape_function/1` | `Jason.Encode` |
237
- | <0.1% | 5 | `encode_map_function/1` | `Jason.Encode` |
238
-
239
- ##### `map_naive/3` (`Jason.Encode`)
240
-
241
- | % | Samples | Callee | Location |
242
- | ----: | ------: | --------------------- | -------------- |
243
- | 98.3% | 12,545 | `map_naive_loop/3` | `Jason.Encode` |
244
- | 2.9% | 365 | `escape_json_chunk/5` | `Jason.Encode` |
245
- | 0.5% | 70 | `value/3` | `Jason.Encode` |
246
- | 0.3% | 35 | `key/2` | `Jason.Encode` |
247
- | 0.3% | 35 | `escape_json/3` | `Jason.Encode` |
248
-
249
- ##### `map_naive_loop/3` (`Jason.Encode`)
250
-
251
- | % | Samples | Callee | Location |
252
- | ----: | ------: | --------------------- | -------------- |
253
- | 69.4% | 8,703 | `map_naive/3` | `Jason.Encode` |
254
- | 35.1% | 4,407 | `escape_json_chunk/5` | `Jason.Encode` |
255
- | 34.8% | 4,367 | `encode_string/2` | `Jason.Encode` |
256
- | 5.3% | 660 | `list/3` | `Jason.Encode` |
257
- | 4.5% | 562 | `value/3` | `Jason.Encode` |
258
-
259
- ##### `decode!/2` (`Jason`)
260
-
261
- | % | Samples | Callee | Location |
262
- | ----: | ------: | ---------- | --------------- |
263
- | 99.4% | 11,144 | `parse/2` | `Jason.Decoder` |
264
- | 0.5% | 55 | `decode/2` | `Jason` |
265
-
266
- ##### `parse/2` (`Jason.Decoder`)
267
-
268
- | % | Samples | Callee | Location |
269
- | ----: | ------: | ---------- | --------------- |
270
- | 67.6% | 7,533 | `string/6` | `Jason.Decoder` |
271
- | 9.3% | 1,031 | `object/6` | `Jason.Decoder` |
272
- | 7.5% | 838 | `string/7` | `Jason.Decoder` |
273
- | 5.0% | 554 | `number/6` | `Jason.Decoder` |
274
- | 3.3% | 363 | `value/5` | `Jason.Decoder` |
275
-
276
- ##### `escape_json_chunk/5` (`Jason.Encode`)
277
-
278
- | % | Samples | Callee | Location |
279
- | ----: | ------: | ---------- | -------------- |
280
- | 0.7% | 60 | `escape/1` | `Jason.Encode` |
281
- | <0.1% | 4 | `sleep` | `<unknown>` |
282
-
283
- ##### `string/6` (`Jason.Decoder`)
284
-
285
- | % | Samples | Callee | Location |
286
- | ---: | ------: | ------------------------------------ | --------------- |
287
- | 5.8% | 438 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
288
- | 0.1% | 4 | `sleep` | `<unknown>` |
289
-
290
- ##### `encode_string/2` (`Jason.Encode`)
291
-
292
- | % | Samples | Callee | Location |
293
- | ----: | ------: | --------------------- | -------------- |
294
- | 85.1% | 3,742 | `escape_json_chunk/5` | `Jason.Encode` |
295
- | 5.0% | 220 | `escape_json/4` | `Jason.Encode` |
296
- | 3.3% | 145 | `escape_json/3` | `Jason.Encode` |
297
-
298
- ##### `undefined_function/3` (`error_handler`)
299
-
300
- | % | Samples | Callee | Location |
301
- | ----: | ------: | --------------------- | --------------- |
302
- | 70.7% | 1,163 | `ensure_loaded/1` | `code` |
303
- | 28.8% | 473 | `call/1` | `code_server` |
304
- | 0.2% | 3 | `ensure_loaded/1` | `error_handler` |
305
- | 0.1% | 2 | `function_exported/3` | `erlang` |
306
- | 0.1% | 1 | `call/1` | `code` |
307
-
308
- ##### `ensure_loaded/1` (`code`)
309
-
310
- | % | Samples | Callee | Location |
311
- | ---: | ------: | ------------ | ------------- |
312
- | 5.4% | 63 | `call/1` | `code_server` |
313
- | 0.3% | 3 | `get_mode/0` | `code_server` |
314
- | 0.1% | 1 | `call/1` | `code` |
315
-
316
- ##### `object/6` (`Jason.Decoder`)
317
-
318
- | % | Samples | Callee | Location |
319
- | ----: | ------: | --------------------------------- | --------------- |
320
- | 31.4% | 324 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
321
- | 2.9% | 30 | `from_list/1` | `maps` |
322
-
323
- ##### `string/7` (`Jason.Decoder`)
324
-
325
- | % | Samples | Callee | Location |
326
- | ---: | ------: | -------------------- | ----------- |
327
- | 1.0% | 8 | `iolist_to_binary/1` | `erlang` |
328
- | 0.7% | 6 | `sleep` | `<unknown>` |
329
-
330
- ##### `value/3` (`Jason.Encode`)
331
-
332
- | % | Samples | Callee | Location |
333
- | ----: | ------: | --------------------- | ----------- |
334
- | 14.5% | 105 | `to_list/1` | `maps` |
335
- | 9.0% | 65 | `integer_to_binary/1` | `erlang` |
336
- | 6.9% | 50 | `to_list_internal/1` | `maps` |
337
- | 0.3% | 2 | `sleep` | `<unknown>` |
338
-
339
- ##### `list/3` (`Jason.Encode`)
340
-
341
- | % | Samples | Callee | Location |
342
- | ----: | ------: | ------------- | -------------- |
343
- | 89.6% | 600 | `map_naive/3` | `Jason.Encode` |
344
- | 6.7% | 45 | `value/3` | `Jason.Encode` |
345
- | 5.2% | 35 | `list_loop/3` | `Jason.Encode` |
346
-
347
- ##### `escape_json/4` (`Jason.Encode`)
348
-
349
- | % | Samples | Callee | Location |
350
- | ---: | ------: | ---------- | -------------- |
351
- | 0.8% | 5 | `escape/1` | `Jason.Encode` |
352
- | 0.3% | 2 | `sleep` | `<unknown>` |
353
-
354
- ##### `sleep` (`<unknown>`)
355
-
356
- | % | Samples | Callee | Location |
357
- | ---: | ------: | ------- | ----------- |
358
- | 1.6% | 9 | `sleep` | `<unknown>` |
359
-
360
- ##### `number/6` (`Jason.Decoder`)
361
-
362
- | % | Samples | Callee | Location |
363
- | ----: | ------: | --------------------- | -------- |
364
- | 44.6% | 247 | `binary_to_integer/1` | `erlang` |
365
-
366
- ##### `call/1` (`code_server`)
367
-
368
- | % | Samples | Callee | Location |
369
- | ----: | ------: | ------------- | ----------- |
370
- | 97.9% | 525 | `sleep` | `<unknown>` |
371
- | 0.6% | 3 | `demonitor/2` | `erlang` |
372
- | 0.4% | 2 | `monitor/2` | `erlang` |
373
-
374
- ## Hottest call stacks
375
-
376
- Call stacks ranked by samples taken in their leaf frame.
377
-
378
- | % | Samples | Call stack |
379
- | ----: | ------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
380
- | 27.5% | 7,091 | `string/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
381
- | 12.0% | 3,085 | `escape_json_chunk/5` (`Jason.Encode`) ← `map_naive_loop/3` ← `map_naive/3` ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
382
- | 8.2% | 2,120 | `escape_json_chunk/5` (`Jason.Encode`) ← `encode_string/2` ← `map_naive_loop/3` ← `map_naive/3` ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
383
- | 5.6% | 1,440 | `escape_json_chunk/5` (`Jason.Encode`) ← `encode_string/2` ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
384
- | 4.6% | 1,180 | `escape_json_chunk/5` (`Jason.Encode`) ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
385
- | 3.6% | 916 | `ensure_loaded/1` (`code`) ← `undefined_function/3` (`error_handler`) ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
386
- | 3.2% | 824 | `string/7` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
387
- | 2.6% | 677 | `object/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
388
- | 2.6% | 661 | `map_naive_loop/3` (`Jason.Encode`) ← `map_naive/3` ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
389
- | 1.8% | 468 | `sleep` ← `call/1` (`code_server`) ← `undefined_function/3` (`error_handler`) ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
390
- | 1.7% | 438 | `-string_decode_function/1-fun-0-/1` (`Jason.Decoder`) ← `string/6` ← `parse/2` ← `decode!/2` (`Jason`) |
391
- | 1.4% | 363 | `value/5` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
392
- | 1.3% | 335 | `map_naive_loop/3` (`Jason.Encode`) ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
393
- | 1.3% | 324 | `key/5` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
394
- | 1.3% | 324 | `key/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
395
- | 1.3% | 324 | `-key_decode_function/1-fun-0-/1` (`Jason.Decoder`) ← `object/6` ← `parse/2` ← `decode!/2` (`Jason`) |
396
- | 1.2% | 307 | `number/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
397
- | 1.0% | 256 | `map_naive/3` (`Jason.Encode`) ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
398
- | 1.0% | 250 | `value/3` (`Jason.Encode`) ← `map_naive_loop/3` ← `map_naive/3` ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
399
- | 1.0% | 247 | `binary_to_integer/1` (`erlang`) ← `number/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |