profiler-md 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.mjs +14155 -5081
- package/dist/index.d.mts +1312 -263
- package/dist/index.js +2 -2
- package/docs/api.md +138 -0
- package/docs/formats/callgrind.md +25 -0
- package/docs/formats/collapsed.md +5 -3
- package/docs/formats/ghc-eventlog.md +20 -0
- package/docs/formats/ghc-json-profile.md +23 -0
- package/docs/formats/hprof.md +21 -0
- package/docs/formats/jfr.md +3 -3
- package/docs/formats/jsc-heap-snapshot.md +11 -5
- package/docs/formats/memray.md +30 -0
- package/docs/formats/perf.md +74 -0
- package/docs/formats/pprof.md +10 -6
- package/docs/formats/speedscope.md +7 -5
- package/docs/formats/systing.md +27 -0
- package/docs/formats/v8-cpu-profile.md +4 -3
- package/docs/formats/v8-heap-profile.md +8 -5
- package/docs/formats/v8-heap-snapshot.md +10 -5
- package/docs/formats/webkit-timeline-recording.md +6 -0
- package/docs/languages/c.md +138 -18
- package/docs/languages/csharp.md +7 -7
- package/docs/languages/elixir.md +22 -15
- package/docs/languages/fortran.md +141 -0
- package/docs/languages/go.md +36 -13
- package/docs/languages/haskell.md +134 -0
- package/docs/languages/java.md +89 -34
- package/docs/languages/javascript.md +37 -31
- package/docs/languages/julia.md +96 -14
- package/docs/languages/php.md +10 -4
- package/docs/languages/python.md +121 -15
- package/docs/languages/ruby.md +19 -22
- package/docs/languages/rust.md +40 -10
- package/docs/languages/swift.md +135 -0
- package/docs/languages/zig.md +155 -0
- package/package.json +47 -46
- package/readme.md +306 -242
- package/skills/profile-optimize/SKILL.md +162 -0
- package/docs/languages/cpp.md +0 -160
- package/docs/languages/erlang.md +0 -46
- package/docs/languages/fsharp.md +0 -52
- package/docs/languages/kotlin.md +0 -170
- package/docs/languages/typescript.md +0 -276
- package/examples/output/c.gperftools.cpu.base.pprof.md +0 -324
- package/examples/output/c.gperftools.cpu.current.pprof.md +0 -271
- package/examples/output/c.gperftools.cpu.diff.pprof.md +0 -98
- package/examples/output/c.gperftools.heap.base.pprof.md +0 -362
- package/examples/output/c.gperftools.heap.current.pprof.md +0 -362
- package/examples/output/c.gperftools.heap.diff.pprof.md +0 -28
- package/examples/output/cpp.gperftools.cpu.base.pprof.md +0 -557
- package/examples/output/cpp.gperftools.cpu.current.pprof.md +0 -573
- package/examples/output/cpp.gperftools.cpu.diff.pprof.md +0 -122
- package/examples/output/cpp.gperftools.heap.base.pprof.md +0 -67
- package/examples/output/cpp.gperftools.heap.current.pprof.md +0 -67
- package/examples/output/cpp.gperftools.heap.diff.pprof.md +0 -19
- package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +0 -411
- package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +0 -412
- package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +0 -122
- package/examples/output/elixir.eflambe.cpu.base.collapsed.md +0 -399
- package/examples/output/elixir.eflambe.cpu.current.collapsed.md +0 -398
- package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +0 -92
- package/examples/output/erlang.eflambe.cpu.base.collapsed.md +0 -147
- package/examples/output/erlang.eflambe.cpu.current.collapsed.md +0 -147
- package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +0 -18
- package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +0 -324
- package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +0 -314
- package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +0 -119
- package/examples/output/go.pprof.block.base.pprof.md +0 -86
- package/examples/output/go.pprof.block.current.pprof.md +0 -83
- package/examples/output/go.pprof.block.diff.pprof.md +0 -42
- package/examples/output/go.pprof.cpu.base.pprof.md +0 -81
- package/examples/output/go.pprof.cpu.current.pprof.md +0 -70
- package/examples/output/go.pprof.cpu.diff.pprof.md +0 -52
- package/examples/output/go.pprof.goroutine.base.pprof.md +0 -43
- package/examples/output/go.pprof.goroutine.current.pprof.md +0 -43
- package/examples/output/go.pprof.goroutine.diff.pprof.md +0 -13
- package/examples/output/go.pprof.heap-alloc.base.pprof.md +0 -154
- package/examples/output/go.pprof.heap-alloc.current.pprof.md +0 -146
- package/examples/output/go.pprof.heap-alloc.diff.pprof.md +0 -67
- package/examples/output/go.pprof.heap.base.pprof.md +0 -154
- package/examples/output/go.pprof.heap.current.pprof.md +0 -146
- package/examples/output/go.pprof.heap.diff.pprof.md +0 -67
- package/examples/output/go.pprof.mutex.base.pprof.md +0 -55
- package/examples/output/go.pprof.mutex.current.pprof.md +0 -41
- package/examples/output/go.pprof.mutex.diff.pprof.md +0 -31
- package/examples/output/go.pprof.threadcreate.base.pprof.md +0 -55
- package/examples/output/go.pprof.threadcreate.current.pprof.md +0 -55
- package/examples/output/go.pprof.threadcreate.diff.pprof.md +0 -19
- package/examples/output/java.async-profiler.all.base.jfr.md +0 -1071
- package/examples/output/java.async-profiler.all.current.jfr.md +0 -1007
- package/examples/output/java.async-profiler.all.diff.jfr.md +0 -268
- package/examples/output/java.async-profiler.alloc.base.jfr.md +0 -425
- package/examples/output/java.async-profiler.alloc.current.jfr.md +0 -413
- package/examples/output/java.async-profiler.alloc.diff.jfr.md +0 -99
- package/examples/output/java.async-profiler.cpu.base.collapsed.md +0 -367
- package/examples/output/java.async-profiler.cpu.base.jfr.md +0 -485
- package/examples/output/java.async-profiler.cpu.current.collapsed.md +0 -355
- package/examples/output/java.async-profiler.cpu.current.jfr.md +0 -488
- package/examples/output/java.async-profiler.cpu.diff.collapsed.md +0 -117
- package/examples/output/java.async-profiler.cpu.diff.jfr.md +0 -118
- package/examples/output/java.async-profiler.live.base.jfr.md +0 -697
- package/examples/output/java.async-profiler.live.current.jfr.md +0 -684
- package/examples/output/java.async-profiler.live.diff.jfr.md +0 -191
- package/examples/output/java.async-profiler.lock.base.jfr.md +0 -140
- package/examples/output/java.async-profiler.lock.current.jfr.md +0 -108
- package/examples/output/java.async-profiler.lock.diff.jfr.md +0 -44
- package/examples/output/java.async-profiler.nativemem.base.jfr.md +0 -222
- package/examples/output/java.async-profiler.nativemem.current.jfr.md +0 -222
- package/examples/output/java.async-profiler.nativemem.diff.jfr.md +0 -65
- package/examples/output/java.async-profiler.wall.base.jfr.md +0 -400
- package/examples/output/java.async-profiler.wall.current.jfr.md +0 -420
- package/examples/output/java.async-profiler.wall.diff.jfr.md +0 -94
- package/examples/output/java.jdk.all.base.jfr.md +0 -1024
- package/examples/output/java.jdk.all.current.jfr.md +0 -1010
- package/examples/output/java.jdk.all.diff.jfr.md +0 -311
- package/examples/output/java.jdk.alloc.base.jfr.md +0 -1024
- package/examples/output/java.jdk.alloc.current.jfr.md +0 -1046
- package/examples/output/java.jdk.alloc.diff.jfr.md +0 -312
- package/examples/output/java.jdk.cpu.base.jfr.md +0 -1023
- package/examples/output/java.jdk.cpu.current.jfr.md +0 -1039
- package/examples/output/java.jdk.cpu.diff.jfr.md +0 -285
- package/examples/output/java.jdk.live.base.jfr.md +0 -1029
- package/examples/output/java.jdk.live.current.jfr.md +0 -1035
- package/examples/output/java.jdk.live.diff.jfr.md +0 -289
- package/examples/output/java.jdk.lock.base.jfr.md +0 -1040
- package/examples/output/java.jdk.lock.current.jfr.md +0 -1051
- package/examples/output/java.jdk.lock.diff.jfr.md +0 -339
- package/examples/output/javascript.bun.base.cpuprofile.md +0 -73
- package/examples/output/javascript.bun.base.heapsnapshot.md +0 -608
- package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +0 -480
- package/examples/output/javascript.bun.current.cpuprofile.md +0 -73
- package/examples/output/javascript.bun.current.heapsnapshot.md +0 -608
- package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +0 -480
- package/examples/output/javascript.bun.diff.cpuprofile.md +0 -54
- package/examples/output/javascript.bun.diff.heapsnapshot.md +0 -48
- package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +0 -62
- package/examples/output/javascript.chrome.base.cpuprofile.md +0 -163
- package/examples/output/javascript.chrome.base.heapprofile.md +0 -32
- package/examples/output/javascript.chrome.base.heapsnapshot.md +0 -649
- package/examples/output/javascript.chrome.current.cpuprofile.md +0 -149
- package/examples/output/javascript.chrome.current.heapprofile.md +0 -32
- package/examples/output/javascript.chrome.current.heapsnapshot.md +0 -647
- package/examples/output/javascript.chrome.diff.cpuprofile.md +0 -65
- package/examples/output/javascript.chrome.diff.heapprofile.md +0 -50
- package/examples/output/javascript.chrome.diff.heapsnapshot.md +0 -73
- package/examples/output/javascript.deno.base.cpuprofile.md +0 -122
- package/examples/output/javascript.deno.current.cpuprofile.md +0 -114
- package/examples/output/javascript.deno.diff.cpuprofile.md +0 -66
- package/examples/output/javascript.node.base.cpuprofile.md +0 -136
- package/examples/output/javascript.node.base.heapprofile.md +0 -56
- package/examples/output/javascript.node.base.heapsnapshot.md +0 -660
- package/examples/output/javascript.node.current.cpuprofile.md +0 -119
- package/examples/output/javascript.node.current.heapprofile.md +0 -52
- package/examples/output/javascript.node.current.heapsnapshot.md +0 -660
- package/examples/output/javascript.node.diff.cpuprofile.md +0 -70
- package/examples/output/javascript.node.diff.heapprofile.md +0 -34
- package/examples/output/javascript.node.diff.heapsnapshot.md +0 -39
- package/examples/output/javascript.pprof.cpu.base.pprof.md +0 -104
- package/examples/output/javascript.pprof.cpu.current.pprof.md +0 -120
- package/examples/output/javascript.pprof.cpu.diff.pprof.md +0 -63
- package/examples/output/javascript.pprof.heap.base.pprof.md +0 -86
- package/examples/output/javascript.pprof.heap.current.pprof.md +0 -57
- package/examples/output/javascript.pprof.heap.diff.pprof.md +0 -42
- package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +0 -388
- package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +0 -378
- package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +0 -122
- package/examples/output/julia.pprof-jl.alloc.base.pprof.md +0 -124
- package/examples/output/julia.pprof-jl.alloc.current.pprof.md +0 -126
- package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +0 -30
- package/examples/output/julia.pprof-jl.cpu.base.pprof.md +0 -177
- package/examples/output/julia.pprof-jl.cpu.current.pprof.md +0 -179
- package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +0 -64
- package/examples/output/kotlin.async-profiler.all.base.jfr.md +0 -920
- package/examples/output/kotlin.async-profiler.all.current.jfr.md +0 -925
- package/examples/output/kotlin.async-profiler.all.diff.jfr.md +0 -247
- package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +0 -467
- package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +0 -473
- package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +0 -122
- package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +0 -371
- package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +0 -472
- package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +0 -370
- package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +0 -445
- package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +0 -124
- package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +0 -125
- package/examples/output/kotlin.async-profiler.live.base.jfr.md +0 -934
- package/examples/output/kotlin.async-profiler.live.current.jfr.md +0 -917
- package/examples/output/kotlin.async-profiler.live.diff.jfr.md +0 -245
- package/examples/output/kotlin.async-profiler.lock.base.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.lock.current.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +0 -234
- package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +0 -234
- package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +0 -65
- package/examples/output/kotlin.async-profiler.wall.base.jfr.md +0 -452
- package/examples/output/kotlin.async-profiler.wall.current.jfr.md +0 -457
- package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +0 -125
- package/examples/output/kotlin.jdk.all.base.jfr.md +0 -1442
- package/examples/output/kotlin.jdk.all.current.jfr.md +0 -1343
- package/examples/output/kotlin.jdk.all.diff.jfr.md +0 -392
- package/examples/output/kotlin.jdk.alloc.base.jfr.md +0 -1418
- package/examples/output/kotlin.jdk.alloc.current.jfr.md +0 -1389
- package/examples/output/kotlin.jdk.alloc.diff.jfr.md +0 -383
- package/examples/output/kotlin.jdk.cpu.base.jfr.md +0 -1406
- package/examples/output/kotlin.jdk.cpu.current.jfr.md +0 -1374
- package/examples/output/kotlin.jdk.cpu.diff.jfr.md +0 -380
- package/examples/output/kotlin.jdk.live.base.jfr.md +0 -1378
- package/examples/output/kotlin.jdk.live.current.jfr.md +0 -1311
- package/examples/output/kotlin.jdk.live.diff.jfr.md +0 -381
- package/examples/output/kotlin.jdk.lock.base.jfr.md +0 -1427
- package/examples/output/kotlin.jdk.lock.current.jfr.md +0 -1374
- package/examples/output/kotlin.jdk.lock.diff.jfr.md +0 -386
- package/examples/output/php.excimer.wall.base.speedscope.json.md +0 -25
- package/examples/output/php.excimer.wall.current.speedscope.json.md +0 -25
- package/examples/output/php.excimer.wall.diff.speedscope.json.md +0 -29
- package/examples/output/python.py-spy.cpu.base.collapsed.md +0 -526
- package/examples/output/python.py-spy.cpu.base.speedscope.json.md +0 -37
- package/examples/output/python.py-spy.cpu.current.collapsed.md +0 -514
- package/examples/output/python.py-spy.cpu.current.speedscope.json.md +0 -37
- package/examples/output/python.py-spy.cpu.diff.collapsed.md +0 -122
- package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +0 -31
- package/examples/output/python.py-spy.wall.base.collapsed.md +0 -527
- package/examples/output/python.py-spy.wall.current.collapsed.md +0 -518
- package/examples/output/python.py-spy.wall.diff.collapsed.md +0 -122
- package/examples/output/ruby.rbspy.cpu.base.collapsed.md +0 -90
- package/examples/output/ruby.rbspy.cpu.base.pprof.md +0 -105
- package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +0 -105
- package/examples/output/ruby.rbspy.cpu.current.collapsed.md +0 -90
- package/examples/output/ruby.rbspy.cpu.current.pprof.md +0 -115
- package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +0 -115
- package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +0 -32
- package/examples/output/ruby.rbspy.cpu.diff.pprof.md +0 -44
- package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +0 -44
- package/examples/output/rust.pprof-rs.cpu.base.pprof.md +0 -60
- package/examples/output/rust.pprof-rs.cpu.current.pprof.md +0 -60
- package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +0 -24
|
@@ -1,398 +0,0 @@
|
|
|
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`) |
|
|
@@ -1,92 +0,0 @@
|
|
|
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` |
|
|
@@ -1,147 +0,0 @@
|
|
|
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`) |
|