profiler-md 0.4.0 → 0.5.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 (232) hide show
  1. package/dist/cli/index.mjs +3327 -720
  2. package/dist/index.d.mts +596 -25
  3. package/dist/index.js +2 -2
  4. package/docs/formats/jfr.md +16 -0
  5. package/docs/formats/jsc-heap-snapshot.md +2 -2
  6. package/docs/languages/c.md +31 -7
  7. package/docs/languages/cpp.md +31 -7
  8. package/docs/languages/csharp.md +3 -0
  9. package/docs/languages/elixir.md +8 -4
  10. package/docs/languages/erlang.md +8 -4
  11. package/docs/languages/fsharp.md +3 -0
  12. package/docs/languages/go.md +11 -6
  13. package/docs/languages/java.md +109 -59
  14. package/docs/languages/javascript.md +34 -12
  15. package/docs/languages/julia.md +14 -2
  16. package/docs/languages/kotlin.md +109 -59
  17. package/docs/languages/php.md +64 -20
  18. package/docs/languages/python.md +11 -72
  19. package/docs/languages/ruby.md +17 -27
  20. package/docs/languages/typescript.md +34 -12
  21. package/examples/output/c.gperftools.cpu.base.pprof.md +324 -0
  22. package/examples/output/c.gperftools.cpu.current.pprof.md +271 -0
  23. package/examples/output/c.gperftools.cpu.diff.pprof.md +98 -0
  24. package/examples/output/c.gperftools.heap.base.pprof.md +362 -0
  25. package/examples/output/c.gperftools.heap.current.pprof.md +362 -0
  26. package/examples/output/c.gperftools.heap.diff.pprof.md +28 -0
  27. package/examples/output/cpp.gperftools.cpu.base.pprof.md +557 -0
  28. package/examples/output/cpp.gperftools.cpu.current.pprof.md +573 -0
  29. package/examples/output/cpp.gperftools.cpu.diff.pprof.md +122 -0
  30. package/examples/output/cpp.gperftools.heap.base.pprof.md +67 -0
  31. package/examples/output/cpp.gperftools.heap.current.pprof.md +67 -0
  32. package/examples/output/cpp.gperftools.heap.diff.pprof.md +19 -0
  33. package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +411 -0
  34. package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +412 -0
  35. package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +122 -0
  36. package/examples/output/elixir.eflambe.cpu.base.collapsed.md +399 -0
  37. package/examples/output/elixir.eflambe.cpu.current.collapsed.md +398 -0
  38. package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +92 -0
  39. package/examples/output/erlang.eflambe.cpu.base.collapsed.md +147 -0
  40. package/examples/output/erlang.eflambe.cpu.current.collapsed.md +147 -0
  41. package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +18 -0
  42. package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +324 -0
  43. package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +314 -0
  44. package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +119 -0
  45. package/examples/output/go.pprof.block.base.pprof.md +86 -0
  46. package/examples/output/go.pprof.block.current.pprof.md +83 -0
  47. package/examples/output/go.pprof.block.diff.pprof.md +42 -0
  48. package/examples/output/go.pprof.cpu.base.pprof.md +81 -0
  49. package/examples/output/go.pprof.cpu.current.pprof.md +70 -0
  50. package/examples/output/go.pprof.cpu.diff.pprof.md +52 -0
  51. package/examples/output/go.pprof.goroutine.base.pprof.md +43 -0
  52. package/examples/output/go.pprof.goroutine.current.pprof.md +43 -0
  53. package/examples/output/go.pprof.goroutine.diff.pprof.md +13 -0
  54. package/examples/output/go.pprof.heap-alloc.base.pprof.md +154 -0
  55. package/examples/output/go.pprof.heap-alloc.current.pprof.md +146 -0
  56. package/examples/output/go.pprof.heap-alloc.diff.pprof.md +67 -0
  57. package/examples/output/go.pprof.heap.base.pprof.md +154 -0
  58. package/examples/output/go.pprof.heap.current.pprof.md +146 -0
  59. package/examples/output/go.pprof.heap.diff.pprof.md +67 -0
  60. package/examples/output/go.pprof.mutex.base.pprof.md +55 -0
  61. package/examples/output/go.pprof.mutex.current.pprof.md +41 -0
  62. package/examples/output/go.pprof.mutex.diff.pprof.md +31 -0
  63. package/examples/output/go.pprof.threadcreate.base.pprof.md +55 -0
  64. package/examples/output/go.pprof.threadcreate.current.pprof.md +55 -0
  65. package/examples/output/go.pprof.threadcreate.diff.pprof.md +19 -0
  66. package/examples/output/java.async-profiler.all.base.jfr.md +1071 -0
  67. package/examples/output/java.async-profiler.all.current.jfr.md +1007 -0
  68. package/examples/output/java.async-profiler.all.diff.jfr.md +268 -0
  69. package/examples/output/java.async-profiler.alloc.base.jfr.md +425 -0
  70. package/examples/output/java.async-profiler.alloc.current.jfr.md +413 -0
  71. package/examples/output/java.async-profiler.alloc.diff.jfr.md +99 -0
  72. package/examples/output/java.async-profiler.cpu.base.collapsed.md +367 -0
  73. package/examples/output/java.async-profiler.cpu.base.jfr.md +485 -0
  74. package/examples/output/java.async-profiler.cpu.current.collapsed.md +355 -0
  75. package/examples/output/java.async-profiler.cpu.current.jfr.md +488 -0
  76. package/examples/output/java.async-profiler.cpu.diff.collapsed.md +117 -0
  77. package/examples/output/java.async-profiler.cpu.diff.jfr.md +118 -0
  78. package/examples/output/java.async-profiler.live.base.jfr.md +697 -0
  79. package/examples/output/java.async-profiler.live.current.jfr.md +684 -0
  80. package/examples/output/java.async-profiler.live.diff.jfr.md +191 -0
  81. package/examples/output/java.async-profiler.lock.base.jfr.md +140 -0
  82. package/examples/output/java.async-profiler.lock.current.jfr.md +108 -0
  83. package/examples/output/java.async-profiler.lock.diff.jfr.md +44 -0
  84. package/examples/output/java.async-profiler.nativemem.base.jfr.md +222 -0
  85. package/examples/output/java.async-profiler.nativemem.current.jfr.md +222 -0
  86. package/examples/output/java.async-profiler.nativemem.diff.jfr.md +65 -0
  87. package/examples/output/java.async-profiler.wall.base.jfr.md +400 -0
  88. package/examples/output/java.async-profiler.wall.current.jfr.md +420 -0
  89. package/examples/output/java.async-profiler.wall.diff.jfr.md +94 -0
  90. package/examples/output/java.jdk.all.base.jfr.md +1024 -0
  91. package/examples/output/java.jdk.all.current.jfr.md +1010 -0
  92. package/examples/output/java.jdk.all.diff.jfr.md +311 -0
  93. package/examples/output/java.jdk.alloc.base.jfr.md +1024 -0
  94. package/examples/output/java.jdk.alloc.current.jfr.md +1046 -0
  95. package/examples/output/java.jdk.alloc.diff.jfr.md +312 -0
  96. package/examples/output/java.jdk.cpu.base.jfr.md +1023 -0
  97. package/examples/output/java.jdk.cpu.current.jfr.md +1039 -0
  98. package/examples/output/java.jdk.cpu.diff.jfr.md +285 -0
  99. package/examples/output/java.jdk.live.base.jfr.md +1029 -0
  100. package/examples/output/java.jdk.live.current.jfr.md +1035 -0
  101. package/examples/output/java.jdk.live.diff.jfr.md +289 -0
  102. package/examples/output/java.jdk.lock.base.jfr.md +1040 -0
  103. package/examples/output/java.jdk.lock.current.jfr.md +1051 -0
  104. package/examples/output/java.jdk.lock.diff.jfr.md +339 -0
  105. package/examples/output/javascript.bun.base.cpuprofile.md +73 -0
  106. package/examples/output/javascript.bun.base.heapsnapshot.md +608 -0
  107. package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +480 -0
  108. package/examples/output/javascript.bun.current.cpuprofile.md +73 -0
  109. package/examples/output/javascript.bun.current.heapsnapshot.md +608 -0
  110. package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +480 -0
  111. package/examples/output/javascript.bun.diff.cpuprofile.md +54 -0
  112. package/examples/output/javascript.bun.diff.heapsnapshot.md +48 -0
  113. package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +62 -0
  114. package/examples/output/javascript.chrome.base.cpuprofile.md +163 -0
  115. package/examples/output/javascript.chrome.base.heapprofile.md +32 -0
  116. package/examples/output/javascript.chrome.base.heapsnapshot.md +649 -0
  117. package/examples/output/javascript.chrome.current.cpuprofile.md +149 -0
  118. package/examples/output/javascript.chrome.current.heapprofile.md +32 -0
  119. package/examples/output/javascript.chrome.current.heapsnapshot.md +647 -0
  120. package/examples/output/javascript.chrome.diff.cpuprofile.md +65 -0
  121. package/examples/output/javascript.chrome.diff.heapprofile.md +50 -0
  122. package/examples/output/javascript.chrome.diff.heapsnapshot.md +73 -0
  123. package/examples/output/javascript.deno.base.cpuprofile.md +122 -0
  124. package/examples/output/javascript.deno.current.cpuprofile.md +114 -0
  125. package/examples/output/javascript.deno.diff.cpuprofile.md +66 -0
  126. package/examples/output/javascript.node.base.cpuprofile.md +136 -0
  127. package/examples/output/javascript.node.base.heapprofile.md +56 -0
  128. package/examples/output/javascript.node.base.heapsnapshot.md +660 -0
  129. package/examples/output/javascript.node.current.cpuprofile.md +119 -0
  130. package/examples/output/javascript.node.current.heapprofile.md +52 -0
  131. package/examples/output/javascript.node.current.heapsnapshot.md +660 -0
  132. package/examples/output/javascript.node.diff.cpuprofile.md +70 -0
  133. package/examples/output/javascript.node.diff.heapprofile.md +34 -0
  134. package/examples/output/javascript.node.diff.heapsnapshot.md +39 -0
  135. package/examples/output/javascript.pprof.cpu.base.pprof.md +104 -0
  136. package/examples/output/javascript.pprof.cpu.current.pprof.md +120 -0
  137. package/examples/output/javascript.pprof.cpu.diff.pprof.md +63 -0
  138. package/examples/output/javascript.pprof.heap.base.pprof.md +86 -0
  139. package/examples/output/javascript.pprof.heap.current.pprof.md +57 -0
  140. package/examples/output/javascript.pprof.heap.diff.pprof.md +42 -0
  141. package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +388 -0
  142. package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +378 -0
  143. package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +122 -0
  144. package/examples/output/julia.pprof-jl.alloc.base.pprof.md +124 -0
  145. package/examples/output/julia.pprof-jl.alloc.current.pprof.md +126 -0
  146. package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +30 -0
  147. package/examples/output/julia.pprof-jl.cpu.base.pprof.md +177 -0
  148. package/examples/output/julia.pprof-jl.cpu.current.pprof.md +179 -0
  149. package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +64 -0
  150. package/examples/output/kotlin.async-profiler.all.base.jfr.md +920 -0
  151. package/examples/output/kotlin.async-profiler.all.current.jfr.md +925 -0
  152. package/examples/output/kotlin.async-profiler.all.diff.jfr.md +247 -0
  153. package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +467 -0
  154. package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +473 -0
  155. package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +122 -0
  156. package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +371 -0
  157. package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +472 -0
  158. package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +370 -0
  159. package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +445 -0
  160. package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +124 -0
  161. package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +125 -0
  162. package/examples/output/kotlin.async-profiler.live.base.jfr.md +934 -0
  163. package/examples/output/kotlin.async-profiler.live.current.jfr.md +917 -0
  164. package/examples/output/kotlin.async-profiler.live.diff.jfr.md +245 -0
  165. package/examples/output/kotlin.async-profiler.lock.base.jfr.md +1 -0
  166. package/examples/output/kotlin.async-profiler.lock.current.jfr.md +1 -0
  167. package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +1 -0
  168. package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +234 -0
  169. package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +234 -0
  170. package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +65 -0
  171. package/examples/output/kotlin.async-profiler.wall.base.jfr.md +452 -0
  172. package/examples/output/kotlin.async-profiler.wall.current.jfr.md +457 -0
  173. package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +125 -0
  174. package/examples/output/kotlin.jdk.all.base.jfr.md +1442 -0
  175. package/examples/output/kotlin.jdk.all.current.jfr.md +1343 -0
  176. package/examples/output/kotlin.jdk.all.diff.jfr.md +392 -0
  177. package/examples/output/kotlin.jdk.alloc.base.jfr.md +1418 -0
  178. package/examples/output/kotlin.jdk.alloc.current.jfr.md +1389 -0
  179. package/examples/output/kotlin.jdk.alloc.diff.jfr.md +383 -0
  180. package/examples/output/kotlin.jdk.cpu.base.jfr.md +1406 -0
  181. package/examples/output/kotlin.jdk.cpu.current.jfr.md +1374 -0
  182. package/examples/output/kotlin.jdk.cpu.diff.jfr.md +380 -0
  183. package/examples/output/kotlin.jdk.live.base.jfr.md +1378 -0
  184. package/examples/output/kotlin.jdk.live.current.jfr.md +1311 -0
  185. package/examples/output/kotlin.jdk.live.diff.jfr.md +381 -0
  186. package/examples/output/kotlin.jdk.lock.base.jfr.md +1427 -0
  187. package/examples/output/kotlin.jdk.lock.current.jfr.md +1374 -0
  188. package/examples/output/kotlin.jdk.lock.diff.jfr.md +386 -0
  189. package/examples/output/php.excimer.wall.base.speedscope.json.md +25 -0
  190. package/examples/output/php.excimer.wall.current.speedscope.json.md +25 -0
  191. package/examples/output/php.excimer.wall.diff.speedscope.json.md +29 -0
  192. package/examples/output/python.py-spy.cpu.base.collapsed.md +526 -0
  193. package/examples/output/python.py-spy.cpu.base.speedscope.json.md +37 -0
  194. package/examples/output/python.py-spy.cpu.current.collapsed.md +514 -0
  195. package/examples/output/python.py-spy.cpu.current.speedscope.json.md +37 -0
  196. package/examples/output/python.py-spy.cpu.diff.collapsed.md +122 -0
  197. package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +31 -0
  198. package/examples/output/python.py-spy.wall.base.collapsed.md +527 -0
  199. package/examples/output/python.py-spy.wall.current.collapsed.md +518 -0
  200. package/examples/output/python.py-spy.wall.diff.collapsed.md +122 -0
  201. package/examples/output/ruby.rbspy.cpu.base.collapsed.md +90 -0
  202. package/examples/output/ruby.rbspy.cpu.base.pprof.md +105 -0
  203. package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +105 -0
  204. package/examples/output/ruby.rbspy.cpu.current.collapsed.md +90 -0
  205. package/examples/output/ruby.rbspy.cpu.current.pprof.md +115 -0
  206. package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +115 -0
  207. package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +32 -0
  208. package/examples/output/ruby.rbspy.cpu.diff.pprof.md +44 -0
  209. package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +44 -0
  210. package/examples/output/rust.pprof-rs.cpu.base.pprof.md +60 -0
  211. package/examples/output/rust.pprof-rs.cpu.current.pprof.md +60 -0
  212. package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +24 -0
  213. package/package.json +7 -3
  214. package/readme.md +115 -27
  215. package/examples/bun.cpuprofile.md +0 -475
  216. package/examples/deno.cpuprofile.md +0 -481
  217. package/examples/jsc-heap-snapshot.base.json.md +0 -507
  218. package/examples/jsc-heap-snapshot.current.json.md +0 -504
  219. package/examples/jsc-heap-snapshot.diff.json.md +0 -119
  220. package/examples/node.base.cpuprofile.md +0 -451
  221. package/examples/node.current.cpuprofile.md +0 -449
  222. package/examples/node.diff.cpuprofile.md +0 -82
  223. package/examples/node.heapprofile.md +0 -281
  224. package/examples/node.heapsnapshot.md +0 -694
  225. package/examples/node.pprof.md +0 -441
  226. package/examples/python.base.collapsed.md +0 -116
  227. package/examples/python.current.collapsed.md +0 -125
  228. package/examples/python.diff.collapsed.md +0 -51
  229. package/examples/rust.base.pprof.md +0 -477
  230. package/examples/rust.current.pprof.md +0 -480
  231. package/examples/rust.diff.pprof.md +0 -117
  232. package/examples/webkit-timeline-recording.json.md +0 -434
@@ -0,0 +1,398 @@
1
+ # Sampling profile
2
+
3
+ Collected 27,936 samples.
4
+
5
+ | Category | % | Samples |
6
+ | -------- | ----: | ------: |
7
+ | ours | 92.3% | 25,794 |
8
+ | stdlib | 7.7% | 2,142 |
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
+ | 30.3% | 8,475 | `string/6` | `Jason.Decoder` |
19
+ | 30.2% | 8,450 | `escape_json_chunk/5` | `Jason.Encode` |
20
+ | 3.8% | 1,075 | `map_naive_loop/3` | `Jason.Encode` |
21
+ | 3.7% | 1,029 | `string/7` | `Jason.Decoder` |
22
+ | 2.9% | 804 | `object/6` | `Jason.Decoder` |
23
+ | 2.1% | 595 | `escape_json/4` | `Jason.Encode` |
24
+ | 2.1% | 575 | `sleep` | `<unknown>` |
25
+ | 1.9% | 525 | `escape_json/3` | `Jason.Encode` |
26
+ | 1.8% | 515 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
27
+ | 1.8% | 500 | `value/3` | `Jason.Encode` |
28
+ | 1.7% | 480 | `map_naive/3` | `Jason.Encode` |
29
+ | 1.5% | 420 | `value/5` | `Jason.Decoder` |
30
+ | 1.4% | 382 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
31
+ | 1.4% | 380 | `key/2` | `Jason.Encode` |
32
+ | 1.4% | 380 | `key/5` | `Jason.Decoder` |
33
+ | 1.4% | 380 | `key/6` | `Jason.Decoder` |
34
+ | 1.2% | 345 | `number/6` | `Jason.Decoder` |
35
+ | 1.0% | 290 | `encode_string/2` | `Jason.Encode` |
36
+ | 0.5% | 137 | `archive_split/3` | `erl_prim_loader` |
37
+ | 0.4% | 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
+ ##### `string/6` (`Jason.Decoder`)
44
+
45
+ | % | Samples | Caller | Location |
46
+ | -----: | ------: | --------- | --------------- |
47
+ | 100.0% | 8,475 | `parse/2` | `Jason.Decoder` |
48
+
49
+ ##### `escape_json_chunk/5` (`Jason.Encode`)
50
+
51
+ | % | Samples | Caller | Location |
52
+ | ----: | ------: | ------------------ | -------------- |
53
+ | 52.1% | 4,405 | `map_naive_loop/3` | `Jason.Encode` |
54
+ | 43.6% | 3,680 | `encode_string/2` | `Jason.Encode` |
55
+ | 4.3% | 365 | `map_naive/3` | `Jason.Encode` |
56
+
57
+ ##### `map_naive_loop/3` (`Jason.Encode`)
58
+
59
+ | % | Samples | Caller | Location |
60
+ | -----: | ------: | ------------- | -------------- |
61
+ | 100.0% | 1,075 | `map_naive/3` | `Jason.Encode` |
62
+
63
+ ##### `string/7` (`Jason.Decoder`)
64
+
65
+ | % | Samples | Caller | Location |
66
+ | -----: | ------: | --------- | --------------- |
67
+ | 100.0% | 1,029 | `parse/2` | `Jason.Decoder` |
68
+
69
+ ##### `object/6` (`Jason.Decoder`)
70
+
71
+ | % | Samples | Caller | Location |
72
+ | -----: | ------: | --------- | --------------- |
73
+ | 100.0% | 804 | `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
+ | 93.6% | 538 | `call/1` | `code_server` |
88
+ | 3.0% | 17 | `sleep` | `<unknown>` |
89
+ | 1.0% | 6 | `escape_json_chunk/5` | `Jason.Encode` |
90
+ | 0.7% | 4 | `string/6` | `Jason.Decoder` |
91
+ | 0.3% | 2 | `read_file_nif/1` | `prim_file` |
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
+ ##### `-string_decode_function/1-fun-0-/1` (`Jason.Decoder`)
102
+
103
+ | % | Samples | Caller | Location |
104
+ | -----: | ------: | ---------- | --------------- |
105
+ | 100.0% | 515 | `string/6` | `Jason.Decoder` |
106
+
107
+ ##### `value/3` (`Jason.Encode`)
108
+
109
+ | % | Samples | Caller | Location |
110
+ | ----: | ------: | ------------------ | -------------- |
111
+ | 83.0% | 415 | `map_naive_loop/3` | `Jason.Encode` |
112
+ | 9.0% | 45 | `map_naive/3` | `Jason.Encode` |
113
+ | 4.0% | 20 | `list/3` | `Jason.Encode` |
114
+ | 2.0% | 10 | `encode/2` | `Jason.Encode` |
115
+ | 2.0% | 10 | `list_loop/3` | `Jason.Encode` |
116
+
117
+ ##### `map_naive/3` (`Jason.Encode`)
118
+
119
+ | % | Samples | Caller | Location |
120
+ | ----: | ------: | ------------------ | -------------- |
121
+ | 64.6% | 310 | `map_naive_loop/3` | `Jason.Encode` |
122
+ | 27.1% | 130 | `encode/2` | `Jason.Encode` |
123
+ | 8.3% | 40 | `list/3` | `Jason.Encode` |
124
+
125
+ ##### `value/5` (`Jason.Decoder`)
126
+
127
+ | % | Samples | Caller | Location |
128
+ | -----: | ------: | --------- | --------------- |
129
+ | 100.0% | 420 | `parse/2` | `Jason.Decoder` |
130
+
131
+ ##### `-key_decode_function/1-fun-0-/1` (`Jason.Decoder`)
132
+
133
+ | % | Samples | Caller | Location |
134
+ | -----: | ------: | ---------- | --------------- |
135
+ | 100.0% | 382 | `object/6` | `Jason.Decoder` |
136
+
137
+ ##### `key/2` (`Jason.Encode`)
138
+
139
+ | % | Samples | Caller | Location |
140
+ | ----: | ------: | ------------------ | -------------- |
141
+ | 90.8% | 345 | `map_naive_loop/3` | `Jason.Encode` |
142
+ | 9.2% | 35 | `map_naive/3` | `Jason.Encode` |
143
+
144
+ ##### `key/5` (`Jason.Decoder`)
145
+
146
+ | % | Samples | Caller | Location |
147
+ | -----: | ------: | --------- | --------------- |
148
+ | 100.0% | 380 | `parse/2` | `Jason.Decoder` |
149
+
150
+ ##### `key/6` (`Jason.Decoder`)
151
+
152
+ | % | Samples | Caller | Location |
153
+ | -----: | ------: | --------- | --------------- |
154
+ | 100.0% | 380 | `parse/2` | `Jason.Decoder` |
155
+
156
+ ##### `number/6` (`Jason.Decoder`)
157
+
158
+ | % | Samples | Caller | Location |
159
+ | -----: | ------: | --------- | --------------- |
160
+ | 100.0% | 345 | `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
+ | 52.2% | 14,591 | `-run/1-fun-0-/2` | `Profile` |
189
+ | 52.1% | 14,557 | `encode!/2` | `Jason` |
190
+ | 47.7% | 13,314 | `decode!/2` | `Jason` |
191
+ | 47.4% | 13,249 | `parse/2` | `Jason.Decoder` |
192
+ | 45.9% | 12,816 | `encode/2` | `Jason.Encode` |
193
+ | 45.7% | 12,756 | `map_naive/3` | `Jason.Encode` |
194
+ | 44.9% | 12,541 | `map_naive_loop/3` | `Jason.Encode` |
195
+ | 32.2% | 8,994 | `string/6` | `Jason.Decoder` |
196
+ | 30.5% | 8,516 | `escape_json_chunk/5` | `Jason.Encode` |
197
+ | 15.7% | 4,397 | `encode_string/2` | `Jason.Encode` |
198
+ | 6.0% | 1,667 | `undefined_function/3` | `error_handler` |
199
+ | 4.4% | 1,223 | `object/6` | `Jason.Decoder` |
200
+ | 4.2% | 1,181 | `ensure_loaded/1` | `code` |
201
+ | 3.7% | 1,047 | `string/7` | `Jason.Decoder` |
202
+ | 2.6% | 720 | `value/3` | `Jason.Encode` |
203
+ | 2.4% | 672 | `list/3` | `Jason.Encode` |
204
+ | 2.2% | 610 | `number/6` | `Jason.Decoder` |
205
+ | 2.1% | 600 | `escape_json/4` | `Jason.Encode` |
206
+ | 2.1% | 575 | `sleep` | `<unknown>` |
207
+ | 2.0% | 548 | `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.8% | 14,557 | `encode!/2` | `Jason` |
218
+ | 0.2% | 22 | `encode!/1` | `Jason` |
219
+
220
+ ##### `encode!/2` (`Jason`)
221
+
222
+ | % | Samples | Callee | Location |
223
+ | ----: | ------: | ---------------------- | --------------- |
224
+ | 88.0% | 12,816 | `encode/2` | `Jason.Encode` |
225
+ | 11.5% | 1,667 | `undefined_function/3` | `error_handler` |
226
+ | 0.2% | 29 | `into_map/2` | `Enum` |
227
+ | <0.1% | 5 | `format_encode_opts/1` | `Jason` |
228
+ | <0.1% | 5 | `into/2` | `Enum` |
229
+
230
+ ##### `decode!/2` (`Jason`)
231
+
232
+ | % | Samples | Callee | Location |
233
+ | ----: | ------: | ---------- | --------------- |
234
+ | 99.5% | 13,249 | `parse/2` | `Jason.Decoder` |
235
+ | 0.4% | 55 | `decode/2` | `Jason` |
236
+
237
+ ##### `parse/2` (`Jason.Decoder`)
238
+
239
+ | % | Samples | Callee | Location |
240
+ | ----: | ------: | ---------- | --------------- |
241
+ | 67.9% | 8,994 | `string/6` | `Jason.Decoder` |
242
+ | 9.2% | 1,223 | `object/6` | `Jason.Decoder` |
243
+ | 7.9% | 1,047 | `string/7` | `Jason.Decoder` |
244
+ | 4.6% | 610 | `number/6` | `Jason.Decoder` |
245
+ | 3.2% | 420 | `value/5` | `Jason.Decoder` |
246
+
247
+ ##### `encode/2` (`Jason.Encode`)
248
+
249
+ | % | Samples | Callee | Location |
250
+ | ----: | ------: | ----------------------- | -------------- |
251
+ | 99.5% | 12,756 | `map_naive/3` | `Jason.Encode` |
252
+ | 0.2% | 30 | `value/3` | `Jason.Encode` |
253
+ | <0.1% | 5 | `escape_function/1` | `Jason.Encode` |
254
+ | <0.1% | 5 | `encode_map_function/1` | `Jason.Encode` |
255
+
256
+ ##### `map_naive/3` (`Jason.Encode`)
257
+
258
+ | % | Samples | Callee | Location |
259
+ | ----: | ------: | --------------------- | -------------- |
260
+ | 98.3% | 12,541 | `map_naive_loop/3` | `Jason.Encode` |
261
+ | 2.9% | 365 | `escape_json_chunk/5` | `Jason.Encode` |
262
+ | 0.5% | 70 | `value/3` | `Jason.Encode` |
263
+ | 0.3% | 35 | `key/2` | `Jason.Encode` |
264
+ | 0.3% | 35 | `escape_json/3` | `Jason.Encode` |
265
+
266
+ ##### `map_naive_loop/3` (`Jason.Encode`)
267
+
268
+ | % | Samples | Callee | Location |
269
+ | ----: | ------: | --------------------- | -------------- |
270
+ | 69.4% | 8,701 | `map_naive/3` | `Jason.Encode` |
271
+ | 35.2% | 4,409 | `escape_json_chunk/5` | `Jason.Encode` |
272
+ | 34.8% | 4,367 | `encode_string/2` | `Jason.Encode` |
273
+ | 5.3% | 662 | `list/3` | `Jason.Encode` |
274
+ | 4.5% | 560 | `value/3` | `Jason.Encode` |
275
+
276
+ ##### `string/6` (`Jason.Decoder`)
277
+
278
+ | % | Samples | Callee | Location |
279
+ | ----: | ------: | ------------------------------------ | --------------- |
280
+ | 5.7% | 515 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
281
+ | <0.1% | 4 | `sleep` | `<unknown>` |
282
+
283
+ ##### `escape_json_chunk/5` (`Jason.Encode`)
284
+
285
+ | % | Samples | Callee | Location |
286
+ | ---: | ------: | ---------- | -------------- |
287
+ | 0.7% | 60 | `escape/1` | `Jason.Encode` |
288
+ | 0.1% | 6 | `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.8% | 1,181 | `ensure_loaded/1` | `code` |
303
+ | 28.7% | 478 | `call/1` | `code_server` |
304
+ | 0.2% | 3 | `ensure_loaded/1` | `error_handler` |
305
+ | 0.1% | 1 | `call/1` | `code` |
306
+ | 0.1% | 1 | `function_exported/3` | `erlang` |
307
+
308
+ ##### `object/6` (`Jason.Decoder`)
309
+
310
+ | % | Samples | Callee | Location |
311
+ | ----: | ------: | --------------------------------- | --------------- |
312
+ | 31.2% | 382 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
313
+ | 2.9% | 35 | `from_list/1` | `maps` |
314
+ | 0.2% | 2 | `sleep` | `<unknown>` |
315
+
316
+ ##### `ensure_loaded/1` (`code`)
317
+
318
+ | % | Samples | Callee | Location |
319
+ | ---: | ------: | ------------ | ------------- |
320
+ | 5.9% | 70 | `call/1` | `code_server` |
321
+ | 0.3% | 3 | `get_mode/0` | `code_server` |
322
+ | 0.1% | 1 | `call/1` | `code` |
323
+
324
+ ##### `string/7` (`Jason.Decoder`)
325
+
326
+ | % | Samples | Callee | Location |
327
+ | ---: | ------: | -------------------- | ----------- |
328
+ | 1.1% | 12 | `iolist_to_binary/1` | `erlang` |
329
+ | 0.6% | 6 | `sleep` | `<unknown>` |
330
+
331
+ ##### `value/3` (`Jason.Encode`)
332
+
333
+ | % | Samples | Callee | Location |
334
+ | ----: | ------: | --------------------- | -------- |
335
+ | 14.6% | 105 | `to_list/1` | `maps` |
336
+ | 9.0% | 65 | `integer_to_binary/1` | `erlang` |
337
+ | 6.9% | 50 | `to_list_internal/1` | `maps` |
338
+
339
+ ##### `list/3` (`Jason.Encode`)
340
+
341
+ | % | Samples | Callee | Location |
342
+ | ----: | ------: | ------------- | -------------- |
343
+ | 89.6% | 602 | `map_naive/3` | `Jason.Encode` |
344
+ | 6.7% | 45 | `value/3` | `Jason.Encode` |
345
+ | 5.2% | 35 | `list_loop/3` | `Jason.Encode` |
346
+
347
+ ##### `number/6` (`Jason.Decoder`)
348
+
349
+ | % | Samples | Callee | Location |
350
+ | ----: | ------: | --------------------- | -------- |
351
+ | 43.4% | 265 | `binary_to_integer/1` | `erlang` |
352
+
353
+ ##### `escape_json/4` (`Jason.Encode`)
354
+
355
+ | % | Samples | Callee | Location |
356
+ | ---: | ------: | ---------- | -------------- |
357
+ | 0.8% | 5 | `escape/1` | `Jason.Encode` |
358
+
359
+ ##### `sleep` (`<unknown>`)
360
+
361
+ | % | Samples | Callee | Location |
362
+ | ---: | ------: | ------- | ----------- |
363
+ | 3.0% | 17 | `sleep` | `<unknown>` |
364
+
365
+ ##### `call/1` (`code_server`)
366
+
367
+ | % | Samples | Callee | Location |
368
+ | ----: | ------: | ------------- | ----------- |
369
+ | 98.2% | 538 | `sleep` | `<unknown>` |
370
+ | 0.4% | 2 | `monitor/2` | `erlang` |
371
+ | 0.4% | 2 | `demonitor/2` | `erlang` |
372
+
373
+ ## Hottest call stacks
374
+
375
+ Call stacks ranked by samples taken in their leaf frame.
376
+
377
+ | % | Samples | Call stack |
378
+ | ----: | ------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
379
+ | 30.3% | 8,475 | `string/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
380
+ | 11.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`) |
381
+ | 7.6% | 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`) |
382
+ | 5.2% | 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`) |
383
+ | 4.2% | 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`) |
384
+ | 3.7% | 1,029 | `string/7` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
385
+ | 3.3% | 919 | `ensure_loaded/1` (`code`) ← `undefined_function/3` (`error_handler`) ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
386
+ | 2.9% | 804 | `object/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
387
+ | 2.4% | 660 | `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`) |
388
+ | 1.8% | 515 | `-string_decode_function/1-fun-0-/1` (`Jason.Decoder`) ← `string/6` ← `parse/2` ← `decode!/2` (`Jason`) |
389
+ | 1.7% | 473 | `sleep` ← `call/1` (`code_server`) ← `undefined_function/3` (`error_handler`) ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
390
+ | 1.5% | 420 | `value/5` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
391
+ | 1.4% | 382 | `-key_decode_function/1-fun-0-/1` (`Jason.Decoder`) ← `object/6` ← `parse/2` ← `decode!/2` (`Jason`) |
392
+ | 1.4% | 380 | `key/5` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
393
+ | 1.4% | 380 | `key/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
394
+ | 1.2% | 345 | `number/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
395
+ | 1.2% | 335 | `map_naive_loop/3` (`Jason.Encode`) ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
396
+ | 1.0% | 275 | `map_naive/3` (`Jason.Encode`) ← `map_naive_loop/3` ← `map_naive/3` ← `encode/2` ← `encode!/2` (`Jason`) ← `-run/1-fun-0-/2` (`Profile`) |
397
+ | 0.9% | 265 | `binary_to_integer/1` (`erlang`) ← `number/6` (`Jason.Decoder`) ← `parse/2` ← `decode!/2` (`Jason`) |
398
+ | 0.9% | 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`) |
@@ -0,0 +1,92 @@
1
+ # Sampling profile diff
2
+
3
+ 25,768 samples → 27,936 samples (+2,168 samples, +8.4%).
4
+
5
+ | Category | Change | Delta | % | Samples |
6
+ | -------- | -----: | -----: | ------------: | --------------: |
7
+ | ours | +8.9% | +2,117 | 91.9% → 92.3% | 23,677 → 25,794 |
8
+ | stdlib | +2.4% | +51 | 8.1% → 7.7% | 2,091 → 2,142 |
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
+ | +19.5% | +1,384 | 27.5% → 30.3% | 7,091 → 8,475 | `string/6` | `Jason.Decoder` |
21
+ | +24.9% | +205 | 3.2% → 3.7% | 824 → 1,029 | `string/7` | `Jason.Decoder` |
22
+ | +18.8% | +127 | 2.6% → 2.9% | 677 → 804 | `object/6` | `Jason.Decoder` |
23
+ | +17.6% | +77 | 1.7% → 1.8% | 438 → 515 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
24
+ | +17.9% | +58 | 1.3% → 1.4% | 324 → 382 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
25
+ | +15.7% | +57 | 1.4% → 1.5% | 363 → 420 | `value/5` | `Jason.Decoder` |
26
+ | +17.3% | +56 | 1.3% → 1.4% | 324 → 380 | `key/5` | `Jason.Decoder` |
27
+ | +17.3% | +56 | 1.3% → 1.4% | 324 → 380 | `key/6` | `Jason.Decoder` |
28
+ | +12.4% | +38 | 1.2% | 307 → 345 | `number/6` | `Jason.Decoder` |
29
+ | +4.1% | +19 | 1.8% → 1.7% | 461 → 480 | `map_naive/3` | `Jason.Encode` |
30
+ | +340.0% | +17 | <0.1% → 0.1% | 5 → 22 | `encode!/1` | `Jason` |
31
+ | +25.0% | +13 | 0.2% | 52 → 65 | `escape/6` | `Jason.Decoder` |
32
+ | +14.5% | +12 | 0.3% | 83 → 95 | `binary_to_integer/1` | `erlang` |
33
+ | +12.5% | +5 | 0.2% | 40 → 45 | `from_list/1` | `maps` |
34
+ | +0.9% | +5 | 2.2% → 2.1% | 570 → 575 | `sleep` | `<unknown>` |
35
+ | +13.3% | +4 | 0.1% | 30 → 34 | `into_map/2` | `Enum` |
36
+ | +15.0% | +3 | 0.1% | 20 → 23 | `encode!/2` | `Jason` |
37
+ | +11.1% | +2 | 0.1% | 18 → 20 | `iolist_to_binary/1` | `erlang` |
38
+ | +11.1% | +2 | 0.1% | 18 → 20 | `number_zero/6` | `Jason.Decoder` |
39
+ | +9.1% | +1 | <0.1% | 11 → 12 | `-run/1-fun-0-/2` | `Profile` |
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
+ | -33.3% | -1 | <0.1% | 3 → 2 | `demonitor/2` | `erlang` |
48
+ | -50.0% | -1 | <0.1% | 2 → 1 | `function_exported/3` | `erlang` |
49
+ | -0.1% | -1 | 4.2% → 3.8% | 1,076 → 1,075 | `map_naive_loop/3` | `Jason.Encode` |
50
+
51
+ ### Total samples
52
+
53
+ #### Regressions
54
+
55
+ Functions with the largest increase in total samples taken in the function and all its callees.
56
+
57
+ | Change | Delta | % | Samples | Function | Location |
58
+ | ------: | -----: | ------------: | --------------: | ------------------------------------ | ----------------- |
59
+ | +18.8% | +2,106 | 43.5% → 47.7% | 11,208 → 13,314 | `decode!/2` | `Jason` |
60
+ | +18.9% | +2,105 | 43.2% → 47.4% | 11,144 → 13,249 | `parse/2` | `Jason.Decoder` |
61
+ | +19.4% | +1,461 | 29.2% → 32.2% | 7,533 → 8,994 | `string/6` | `Jason.Decoder` |
62
+ | +24.9% | +209 | 3.3% → 3.7% | 838 → 1,047 | `string/7` | `Jason.Decoder` |
63
+ | +18.6% | +192 | 4.0% → 4.4% | 1,031 → 1,223 | `object/6` | `Jason.Decoder` |
64
+ | +17.6% | +77 | 1.7% → 1.8% | 438 → 515 | `-string_decode_function/1-fun-0-/1` | `Jason.Decoder` |
65
+ | +17.9% | +58 | 1.3% → 1.4% | 324 → 382 | `-key_decode_function/1-fun-0-/1` | `Jason.Decoder` |
66
+ | +15.7% | +57 | 1.4% → 1.5% | 363 → 420 | `value/5` | `Jason.Decoder` |
67
+ | +17.3% | +56 | 1.3% → 1.4% | 324 → 380 | `key/5` | `Jason.Decoder` |
68
+ | +17.3% | +56 | 1.3% → 1.4% | 324 → 380 | `key/6` | `Jason.Decoder` |
69
+ | +10.1% | +56 | 2.1% → 2.2% | 554 → 610 | `number/6` | `Jason.Decoder` |
70
+ | +0.3% | +45 | 56.4% → 52.2% | 14,546 → 14,591 | `-run/1-fun-0-/2` | `Profile` |
71
+ | +0.2% | +27 | 56.4% → 52.1% | 14,530 → 14,557 | `encode!/2` | `Jason` |
72
+ | +1.3% | +22 | 6.4% → 6.0% | 1,645 → 1,667 | `undefined_function/3` | `error_handler` |
73
+ | +1.5% | +18 | 4.5% → 4.2% | 1,163 → 1,181 | `ensure_loaded/1` | `code` |
74
+ | +7.3% | +18 | 1.0% → 0.9% | 247 → 265 | `binary_to_integer/1` | `erlang` |
75
+ | +340.0% | +17 | <0.1% → 0.1% | 5 → 22 | `encode!/1` | `Jason` |
76
+ | +25.0% | +13 | 0.2% | 52 → 65 | `escape/6` | `Jason.Decoder` |
77
+ | +2.2% | +12 | 2.1% → 2.0% | 536 → 548 | `call/1` | `code_server` |
78
+ | +4.5% | +8 | 0.7% | 177 → 185 | `read_file/1` | `erl_prim_loader` |
79
+
80
+ #### Improvements
81
+
82
+ Functions with the largest decrease in total samples taken in the function and all its callees.
83
+
84
+ | Change | Delta | % | Samples | Function | Location |
85
+ | -----: | ----: | ------------: | --------------: | --------------------- | -------------- |
86
+ | ~0% | -4 | 49.8% → 45.9% | 12,820 → 12,816 | `encode/2` | `Jason.Encode` |
87
+ | ~0% | -4 | 49.5% → 45.7% | 12,760 → 12,756 | `map_naive/3` | `Jason.Encode` |
88
+ | ~0% | -4 | 48.7% → 44.9% | 12,545 → 12,541 | `map_naive_loop/3` | `Jason.Encode` |
89
+ | -0.3% | -2 | 2.8% → 2.6% | 722 → 720 | `value/3` | `Jason.Encode` |
90
+ | -0.3% | -2 | 2.3% → 2.1% | 602 → 600 | `escape_json/4` | `Jason.Encode` |
91
+ | -33.3% | -1 | <0.1% | 3 → 2 | `demonitor/2` | `erlang` |
92
+ | -50.0% | -1 | <0.1% | 2 → 1 | `function_exported/3` | `erlang` |
@@ -0,0 +1,147 @@
1
+ # Sampling profile
2
+
3
+ Collected 19,789 samples.
4
+
5
+ | Category | % | Samples |
6
+ | -------- | ----: | ------: |
7
+ | stdlib | 99.8% | 19,758 |
8
+ | ours | 0.2% | 31 |
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
+ | 4.3% | 855 | `do_encode/2` | `json` |
19
+ | 2.5% | 485 | `do_encode_map/2` | `json` |
20
+ | 0.1% | 15 | `encode/1` | `profile` |
21
+ | 0.1% | 10 | `-run/1-fun-0-/2` | `profile` |
22
+ | <0.1% | 5 | `encode/1` | `json` |
23
+ | <0.1% | 5 | `encode/2` | `json` |
24
+ | <0.1% | 5 | `iolist_to_binary/1` | `erlang` |
25
+ | <0.1% | 5 | `decode/1` | `profile` |
26
+ | <0.1% | 2 | `seq/2` | `lists` |
27
+ | <0.1% | 2 | `seq_loop/3` | `lists` |
28
+ | <0.1% | 1 | `run/1` | `profile` |
29
+
30
+ #### Callers
31
+
32
+ Callers ranked by contribution to each function's self samples. Inlining can make caller attribution imprecise.
33
+
34
+ ##### `do_encode/2` (`json`)
35
+
36
+ | % | Samples | Caller | Location |
37
+ | ---: | ------: | ---------- | --------- |
38
+ | 0.6% | 5 | `encode/1` | `profile` |
39
+
40
+ ##### `do_encode_map/2` (`json`)
41
+
42
+ | % | Samples | Caller | Location |
43
+ | ----: | ------: | ---------- | --------- |
44
+ | 26.8% | 130 | `encode/1` | `profile` |
45
+
46
+ ##### `encode/1` (`profile`)
47
+
48
+ | % | Samples | Caller | Location |
49
+ | -----: | ------: | ----------------- | --------- |
50
+ | 100.0% | 15 | `-run/1-fun-0-/2` | `profile` |
51
+
52
+ ##### `encode/1` (`json`)
53
+
54
+ | % | Samples | Caller | Location |
55
+ | -----: | ------: | ---------- | --------- |
56
+ | 100.0% | 5 | `encode/1` | `profile` |
57
+
58
+ ##### `encode/2` (`json`)
59
+
60
+ | % | Samples | Caller | Location |
61
+ | -----: | ------: | ---------- | --------- |
62
+ | 100.0% | 5 | `encode/1` | `profile` |
63
+
64
+ ##### `iolist_to_binary/1` (`erlang`)
65
+
66
+ | % | Samples | Caller | Location |
67
+ | -----: | ------: | ---------- | --------- |
68
+ | 100.0% | 5 | `encode/1` | `profile` |
69
+
70
+ ##### `seq/2` (`lists`)
71
+
72
+ | % | Samples | Caller | Location |
73
+ | -----: | ------: | ------- | --------- |
74
+ | 100.0% | 2 | `run/1` | `profile` |
75
+
76
+ ##### `seq_loop/3` (`lists`)
77
+
78
+ | % | Samples | Caller | Location |
79
+ | -----: | ------: | ------- | --------- |
80
+ | 100.0% | 2 | `run/1` | `profile` |
81
+
82
+ ### Total samples
83
+
84
+ Functions ranked by total samples taken in the function and all its callees.
85
+
86
+ | % | Samples | Function | Location |
87
+ | ----: | ------: | -------------------- | --------- |
88
+ | 49.5% | 9,794 | `-run/1-fun-0-/2` | `profile` |
89
+ | 49.4% | 9,784 | `encode/1` | `profile` |
90
+ | 49.3% | 9,749 | `do_encode_map/2` | `json` |
91
+ | 4.6% | 920 | `do_encode/2` | `json` |
92
+ | <0.1% | 5 | `run/1` | `profile` |
93
+ | <0.1% | 5 | `encode/1` | `json` |
94
+ | <0.1% | 5 | `encode/2` | `json` |
95
+ | <0.1% | 5 | `iolist_to_binary/1` | `erlang` |
96
+ | <0.1% | 5 | `decode/1` | `profile` |
97
+ | <0.1% | 2 | `seq/2` | `lists` |
98
+ | <0.1% | 2 | `seq_loop/3` | `lists` |
99
+
100
+ #### Callees
101
+
102
+ 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.
103
+
104
+ ##### `-run/1-fun-0-/2` (`profile`)
105
+
106
+ | % | Samples | Callee | Location |
107
+ | ----: | ------: | ---------- | --------- |
108
+ | 99.9% | 9,784 | `encode/1` | `profile` |
109
+
110
+ ##### `encode/1` (`profile`)
111
+
112
+ | % | Samples | Callee | Location |
113
+ | ----: | ------: | -------------------- | -------- |
114
+ | 99.6% | 9,749 | `do_encode_map/2` | `json` |
115
+ | 0.1% | 5 | `encode/1` | `json` |
116
+ | 0.1% | 5 | `encode/2` | `json` |
117
+ | 0.1% | 5 | `do_encode/2` | `json` |
118
+ | 0.1% | 5 | `iolist_to_binary/1` | `erlang` |
119
+
120
+ ##### `run/1` (`profile`)
121
+
122
+ | % | Samples | Callee | Location |
123
+ | ----: | ------: | ------------ | -------- |
124
+ | 40.0% | 2 | `seq/2` | `lists` |
125
+ | 40.0% | 2 | `seq_loop/3` | `lists` |
126
+
127
+ ## Hottest call stacks
128
+
129
+ Call stacks ranked by samples taken in their leaf frame.
130
+
131
+ | % | Samples | Call stack |
132
+ | ----: | ------: | --------------------------------------------------------------------------------------------------------------------------------------------------- |
133
+ | 20.7% | 4,105 | `do_encode_map/2` (`json`) ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
134
+ | 20.3% | 4,027 | `do_encode_map/2` (`json`) ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
135
+ | 3.1% | 607 | `do_encode_map/2` (`json`) ← `do_encode_map/2` ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
136
+ | 2.7% | 530 | `do_encode/2` (`json`) ← `do_encode_map/2` ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
137
+ | 1.4% | 273 | `do_encode/2` (`json`) ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
138
+ | 0.5% | 102 | `do_encode/2` (`json`) ← `do_encode_map/2` ← `do_encode_map/2` ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
139
+ | 0.5% | 95 | `do_encode_map/2` (`json`) ← `do_encode_map/2` ← `do_encode_map/2` ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
140
+ | 0.1% | 15 | `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
141
+ | 0.1% | 10 | `do_encode/2` (`json`) ← `do_encode_map/2` ← `do_encode_map/2` ← `do_encode_map/2` ← `do_encode_map/2` ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
142
+ | <0.1% | 5 | `encode/1` (`json`) ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
143
+ | <0.1% | 5 | `encode/2` (`json`) ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
144
+ | <0.1% | 5 | `do_encode/2` (`json`) ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
145
+ | <0.1% | 5 | `iolist_to_binary/1` (`erlang`) ← `encode/1` (`profile`) ← `-run/1-fun-0-/2` |
146
+ | <0.1% | 2 | `seq/2` (`lists`) ← `run/1` (`profile`) |
147
+ | <0.1% | 2 | `seq_loop/3` (`lists`) ← `run/1` (`profile`) |