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