profiler-md 0.5.0 → 0.6.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 +5789 -5181
- package/dist/index.d.mts +478 -137
- package/dist/index.js +2 -2
- package/docs/formats/jfr.md +1 -1
- package/docs/formats/jsc-heap-snapshot.md +1 -1
- package/docs/formats/pprof.md +8 -6
- package/docs/formats/speedscope.md +5 -4
- package/docs/formats/systing.md +25 -0
- package/docs/formats/v8-heap-snapshot.md +2 -2
- package/docs/languages/c.md +35 -2
- package/docs/languages/csharp.md +2 -4
- package/docs/languages/elixir.md +4 -5
- package/docs/languages/go.md +6 -6
- package/docs/languages/java.md +13 -13
- package/docs/languages/javascript.md +7 -7
- package/docs/languages/julia.md +92 -13
- package/docs/languages/php.md +3 -4
- package/docs/languages/python.md +28 -13
- package/docs/languages/ruby.md +4 -6
- package/docs/languages/rust.md +37 -8
- package/examples/output/c.gperftools.heap.base.pprof.md +151 -151
- package/examples/output/c.gperftools.heap.current.pprof.md +151 -151
- package/examples/output/c.gperftools.heap.diff.pprof.md +3 -3
- package/examples/output/c.systing.cpu.base.systing.md +824 -0
- package/examples/output/c.systing.cpu.current.systing.md +825 -0
- package/examples/output/c.systing.cpu.diff.systing.md +238 -0
- package/examples/output/cpp.gperftools.heap.base.pprof.md +24 -24
- package/examples/output/cpp.gperftools.heap.current.pprof.md +24 -24
- package/examples/output/cpp.gperftools.heap.diff.pprof.md +2 -2
- package/examples/output/go.pprof.block.base.pprof.md +40 -40
- package/examples/output/go.pprof.block.current.pprof.md +37 -37
- package/examples/output/go.pprof.block.diff.pprof.md +14 -14
- package/examples/output/go.pprof.goroutine.base.pprof.md +16 -16
- package/examples/output/go.pprof.goroutine.current.pprof.md +16 -16
- package/examples/output/go.pprof.heap-alloc.base.pprof.md +79 -79
- package/examples/output/go.pprof.heap-alloc.current.pprof.md +72 -72
- package/examples/output/go.pprof.heap-alloc.diff.pprof.md +25 -25
- package/examples/output/go.pprof.heap.base.pprof.md +79 -79
- package/examples/output/go.pprof.heap.current.pprof.md +72 -72
- package/examples/output/go.pprof.heap.diff.pprof.md +25 -25
- package/examples/output/go.pprof.mutex.base.pprof.md +26 -26
- package/examples/output/go.pprof.mutex.current.pprof.md +15 -15
- package/examples/output/go.pprof.mutex.diff.pprof.md +10 -10
- package/examples/output/java.async-profiler.all.base.jfr.md +192 -192
- package/examples/output/java.async-profiler.all.current.jfr.md +181 -181
- package/examples/output/java.async-profiler.all.diff.jfr.md +72 -72
- package/examples/output/java.async-profiler.alloc.base.jfr.md +189 -189
- package/examples/output/java.async-profiler.alloc.current.jfr.md +183 -183
- package/examples/output/java.async-profiler.alloc.diff.jfr.md +70 -70
- package/examples/output/java.async-profiler.live.base.jfr.md +303 -303
- package/examples/output/java.async-profiler.live.current.jfr.md +313 -313
- package/examples/output/java.async-profiler.live.diff.jfr.md +132 -132
- package/examples/output/java.async-profiler.nativemem.base.jfr.md +141 -141
- package/examples/output/java.async-profiler.nativemem.current.jfr.md +141 -141
- package/examples/output/java.async-profiler.nativemem.diff.jfr.md +48 -48
- package/examples/output/java.jdk.all.base.jfr.md +281 -281
- package/examples/output/java.jdk.all.current.jfr.md +267 -267
- package/examples/output/java.jdk.all.diff.jfr.md +103 -103
- package/examples/output/java.jdk.alloc.base.jfr.md +254 -254
- package/examples/output/java.jdk.alloc.current.jfr.md +293 -293
- package/examples/output/java.jdk.alloc.diff.jfr.md +102 -102
- package/examples/output/java.jdk.cpu.base.jfr.md +256 -256
- package/examples/output/java.jdk.cpu.current.jfr.md +276 -276
- package/examples/output/java.jdk.cpu.diff.jfr.md +93 -93
- package/examples/output/java.jdk.live.base.jfr.md +256 -256
- package/examples/output/java.jdk.live.current.jfr.md +250 -250
- package/examples/output/java.jdk.live.diff.jfr.md +78 -78
- package/examples/output/java.jdk.lock.base.jfr.md +285 -285
- package/examples/output/java.jdk.lock.current.jfr.md +285 -285
- package/examples/output/java.jdk.lock.diff.jfr.md +121 -121
- package/examples/output/javascript.bun.base.cpuprofile.md +36 -36
- package/examples/output/javascript.bun.base.heapsnapshot.md +215 -215
- package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +218 -218
- package/examples/output/javascript.bun.current.cpuprofile.md +34 -34
- package/examples/output/javascript.bun.current.heapsnapshot.md +215 -215
- package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +220 -220
- package/examples/output/javascript.bun.diff.cpuprofile.md +19 -19
- package/examples/output/javascript.bun.diff.heapsnapshot.md +23 -23
- package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +35 -35
- package/examples/output/javascript.chrome.base.heapprofile.md +17 -17
- package/examples/output/javascript.chrome.base.heapsnapshot.md +202 -202
- package/examples/output/javascript.chrome.current.heapprofile.md +17 -17
- package/examples/output/javascript.chrome.current.heapsnapshot.md +200 -200
- package/examples/output/javascript.chrome.diff.heapprofile.md +21 -21
- package/examples/output/javascript.chrome.diff.heapsnapshot.md +27 -27
- package/examples/output/javascript.deno.base.cpuprofile.md +63 -63
- package/examples/output/javascript.deno.current.cpuprofile.md +56 -56
- package/examples/output/javascript.deno.diff.cpuprofile.md +28 -28
- package/examples/output/javascript.node.base.cpuprofile.md +73 -73
- package/examples/output/javascript.node.base.heapprofile.md +32 -32
- package/examples/output/javascript.node.base.heapsnapshot.md +269 -269
- package/examples/output/javascript.node.current.cpuprofile.md +61 -61
- package/examples/output/javascript.node.current.heapprofile.md +28 -28
- package/examples/output/javascript.node.current.heapsnapshot.md +269 -269
- package/examples/output/javascript.node.diff.cpuprofile.md +32 -32
- package/examples/output/javascript.node.diff.heapprofile.md +17 -17
- package/examples/output/javascript.node.diff.heapsnapshot.md +19 -19
- package/examples/output/javascript.pprof.cpu.base.pprof.md +50 -50
- package/examples/output/javascript.pprof.cpu.current.pprof.md +66 -66
- package/examples/output/javascript.pprof.cpu.diff.pprof.md +28 -28
- package/examples/output/javascript.pprof.heap.base.pprof.md +46 -46
- package/examples/output/javascript.pprof.heap.current.pprof.md +34 -34
- package/examples/output/javascript.pprof.heap.diff.pprof.md +18 -18
- package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +1 -1
- package/examples/output/julia.pprof-jl.alloc.base.pprof.md +83 -83
- package/examples/output/julia.pprof-jl.alloc.current.pprof.md +85 -85
- package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +18 -18
- package/examples/output/julia.pprof-jl.cpu.base.pprof.md +107 -107
- package/examples/output/julia.pprof-jl.cpu.current.pprof.md +109 -109
- package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +29 -29
- package/examples/output/julia.pprof-jl.wall.base.pprof.md +181 -0
- package/examples/output/julia.pprof-jl.wall.current.pprof.md +193 -0
- package/examples/output/julia.pprof-jl.wall.diff.pprof.md +64 -0
- package/examples/output/julia.profile.base.heapsnapshot.md +590 -0
- package/examples/output/julia.profile.current.heapsnapshot.md +590 -0
- package/examples/output/julia.profile.diff.heapsnapshot.md +288 -0
- package/examples/output/kotlin.async-profiler.all.base.jfr.md +193 -193
- package/examples/output/kotlin.async-profiler.all.current.jfr.md +218 -218
- package/examples/output/kotlin.async-profiler.all.diff.jfr.md +93 -93
- package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +212 -212
- package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +183 -183
- package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +93 -93
- package/examples/output/kotlin.async-profiler.live.base.jfr.md +343 -343
- package/examples/output/kotlin.async-profiler.live.current.jfr.md +336 -336
- package/examples/output/kotlin.async-profiler.live.diff.jfr.md +186 -186
- package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +150 -150
- package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +150 -150
- package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +48 -48
- package/examples/output/kotlin.jdk.all.base.jfr.md +402 -402
- package/examples/output/kotlin.jdk.all.current.jfr.md +413 -413
- package/examples/output/kotlin.jdk.all.diff.jfr.md +169 -169
- package/examples/output/kotlin.jdk.alloc.base.jfr.md +418 -418
- package/examples/output/kotlin.jdk.alloc.current.jfr.md +405 -405
- package/examples/output/kotlin.jdk.alloc.diff.jfr.md +160 -160
- package/examples/output/kotlin.jdk.cpu.base.jfr.md +418 -418
- package/examples/output/kotlin.jdk.cpu.current.jfr.md +413 -413
- package/examples/output/kotlin.jdk.cpu.diff.jfr.md +148 -148
- package/examples/output/kotlin.jdk.live.base.jfr.md +420 -420
- package/examples/output/kotlin.jdk.live.current.jfr.md +411 -411
- package/examples/output/kotlin.jdk.live.diff.jfr.md +148 -148
- package/examples/output/kotlin.jdk.lock.base.jfr.md +417 -417
- package/examples/output/kotlin.jdk.lock.current.jfr.md +398 -398
- package/examples/output/kotlin.jdk.lock.diff.jfr.md +156 -156
- package/examples/output/php.excimer.wall.base.speedscope.json.md +6 -6
- package/examples/output/php.excimer.wall.current.speedscope.json.md +6 -6
- package/examples/output/php.excimer.wall.diff.speedscope.json.md +6 -6
- package/examples/output/ruby.rbspy.cpu.base.collapsed.md +14 -14
- package/examples/output/ruby.rbspy.cpu.base.pprof.md +14 -14
- package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +14 -14
- package/examples/output/ruby.rbspy.cpu.current.collapsed.md +12 -12
- package/examples/output/ruby.rbspy.cpu.current.pprof.md +21 -21
- package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +21 -21
- package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +5 -5
- package/examples/output/ruby.rbspy.cpu.diff.pprof.md +12 -12
- package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +12 -12
- package/examples/output/rust.pprof-rs.cpu.base.pprof.md +32 -32
- package/examples/output/rust.pprof-rs.cpu.current.pprof.md +32 -32
- package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +7 -7
- package/package.json +11 -10
- package/readme.md +53 -31
- package/skills/profile-optimize/SKILL.md +160 -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
|
@@ -13,48 +13,48 @@ Took 4.27s over 4,275 samples (1.0ms per sample).
|
|
|
13
13
|
|
|
14
14
|
Functions ranked by total time spent in the function and all its callees.
|
|
15
15
|
|
|
16
|
-
| % | Time | Samples | Function | Location
|
|
17
|
-
| -----: | ------: | ------: | ---------------------------------------------------- |
|
|
18
|
-
| 100.0% | 4.27s | 4,275 | `json_bench::workload` | `
|
|
19
|
-
| 100.0% | 4.27s | 4,275 | `json_bench::main` | `
|
|
20
|
-
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` |
|
|
21
|
-
| 46.2% | 1.97s | 1,973 | `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
22
|
-
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` |
|
|
16
|
+
| % | Time | Samples | Function | Location |
|
|
17
|
+
| -----: | ------: | ------: | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
18
|
+
| 100.0% | 4.27s | 4,275 | `json_bench::workload` | `profile.rs` |
|
|
19
|
+
| 100.0% | 4.27s | 4,275 | `json_bench::main` | `profile.rs` |
|
|
20
|
+
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs` |
|
|
21
|
+
| 46.2% | 1.97s | 1,973 | `core::ptr::drop_in_place<serde_json::value::Value>` | `/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs` |
|
|
22
|
+
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs` |
|
|
23
23
|
|
|
24
24
|
#### Callees
|
|
25
25
|
|
|
26
26
|
Callees ranked by contribution to each function's total time. Inlining can make callee attribution imprecise, and percentages can sum past 100% when callees recurse.
|
|
27
27
|
|
|
28
|
-
##### `json_bench::workload` (`
|
|
28
|
+
##### `json_bench::workload` (`profile.rs`)
|
|
29
29
|
|
|
30
|
-
| % | Time | Samples | Callee | Location
|
|
31
|
-
| ----: | ------: | ------: | ---------------------------------------------------- |
|
|
32
|
-
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` |
|
|
33
|
-
| 46.2% | 1.97s | 1,973 | `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
34
|
-
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` |
|
|
30
|
+
| % | Time | Samples | Callee | Location |
|
|
31
|
+
| ----: | ------: | ------: | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
32
|
+
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs` |
|
|
33
|
+
| 46.2% | 1.97s | 1,973 | `core::ptr::drop_in_place<serde_json::value::Value>` | `/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs` |
|
|
34
|
+
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs` |
|
|
35
35
|
|
|
36
|
-
##### `json_bench::main` (`
|
|
36
|
+
##### `json_bench::main` (`profile.rs`)
|
|
37
37
|
|
|
38
|
-
| % | Time | Samples | Callee | Location
|
|
39
|
-
| -----: | ----: | ------: | ---------------------- |
|
|
40
|
-
| 100.0% | 4.27s | 4,275 | `json_bench::workload` | `
|
|
38
|
+
| % | Time | Samples | Callee | Location |
|
|
39
|
+
| -----: | ----: | ------: | ---------------------- | ------------ |
|
|
40
|
+
| 100.0% | 4.27s | 4,275 | `json_bench::workload` | `profile.rs` |
|
|
41
41
|
|
|
42
42
|
## Hottest call stacks
|
|
43
43
|
|
|
44
44
|
Call stacks ranked by time spent in their leaf frame.
|
|
45
45
|
|
|
46
|
-
Common call stack: `json_bench::workload` (`
|
|
47
|
-
|
|
48
|
-
| % | Time | Samples | Call stack
|
|
49
|
-
| ----: | ------: | ------: |
|
|
50
|
-
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` (
|
|
51
|
-
| 24.4% | 1.04s | 1,041 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
52
|
-
| 12.3% | 525.0ms | 525 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
53
|
-
| 5.6% | 240.0ms | 240 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
54
|
-
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` (
|
|
55
|
-
| 3.5% | 148.0ms | 148 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
56
|
-
| 0.2% | 9.0ms | 9 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
57
|
-
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
58
|
-
| 0.1% | 3.0ms | 3 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
59
|
-
| <0.1% | 2.0ms | 2 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
60
|
-
| <0.1% | 1.0ms | 1 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
46
|
+
Common call stack: `json_bench::workload` (`profile.rs`) ← `json_bench::main`
|
|
47
|
+
|
|
48
|
+
| % | Time | Samples | Call stack |
|
|
49
|
+
| ----: | ------: | ------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
|
+
| 49.8% | 2.13s | 2,130 | `serde_json::de::from_str` (`/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs`) |
|
|
51
|
+
| 24.4% | 1.04s | 1,041 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
52
|
+
| 12.3% | 525.0ms | 525 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
53
|
+
| 5.6% | 240.0ms | 240 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
54
|
+
| 4.0% | 172.0ms | 172 | `serde_json::ser::to_string` (`/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs`) |
|
|
55
|
+
| 3.5% | 148.0ms | 148 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
56
|
+
| 0.2% | 9.0ms | 9 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
57
|
+
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
58
|
+
| 0.1% | 3.0ms | 3 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
59
|
+
| <0.1% | 2.0ms | 2 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) |
|
|
60
|
+
| <0.1% | 1.0ms | 1 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
@@ -13,48 +13,48 @@ Took 4.36s over 4,363 samples (1.0ms per sample).
|
|
|
13
13
|
|
|
14
14
|
Functions ranked by total time spent in the function and all its callees.
|
|
15
15
|
|
|
16
|
-
| % | Time | Samples | Function | Location
|
|
17
|
-
| -----: | ------: | ------: | ---------------------------------------------------- |
|
|
18
|
-
| 100.0% | 4.36s | 4,363 | `json_bench::workload` | `
|
|
19
|
-
| 100.0% | 4.36s | 4,363 | `json_bench::main` | `
|
|
20
|
-
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` |
|
|
21
|
-
| 45.6% | 1.98s | 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
22
|
-
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` |
|
|
16
|
+
| % | Time | Samples | Function | Location |
|
|
17
|
+
| -----: | ------: | ------: | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
18
|
+
| 100.0% | 4.36s | 4,363 | `json_bench::workload` | `profile.rs` |
|
|
19
|
+
| 100.0% | 4.36s | 4,363 | `json_bench::main` | `profile.rs` |
|
|
20
|
+
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs` |
|
|
21
|
+
| 45.6% | 1.98s | 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` | `/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs` |
|
|
22
|
+
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs` |
|
|
23
23
|
|
|
24
24
|
#### Callees
|
|
25
25
|
|
|
26
26
|
Callees ranked by contribution to each function's total time. Inlining can make callee attribution imprecise, and percentages can sum past 100% when callees recurse.
|
|
27
27
|
|
|
28
|
-
##### `json_bench::workload` (`
|
|
28
|
+
##### `json_bench::workload` (`profile.rs`)
|
|
29
29
|
|
|
30
|
-
| % | Time | Samples | Callee | Location
|
|
31
|
-
| ----: | ------: | ------: | ---------------------------------------------------- |
|
|
32
|
-
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` |
|
|
33
|
-
| 45.6% | 1.98s | 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
34
|
-
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` |
|
|
30
|
+
| % | Time | Samples | Callee | Location |
|
|
31
|
+
| ----: | ------: | ------: | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
32
|
+
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs` |
|
|
33
|
+
| 45.6% | 1.98s | 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` | `/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs` |
|
|
34
|
+
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs` |
|
|
35
35
|
|
|
36
|
-
##### `json_bench::main` (`
|
|
36
|
+
##### `json_bench::main` (`profile.rs`)
|
|
37
37
|
|
|
38
|
-
| % | Time | Samples | Callee | Location
|
|
39
|
-
| -----: | ----: | ------: | ---------------------- |
|
|
40
|
-
| 100.0% | 4.36s | 4,363 | `json_bench::workload` | `
|
|
38
|
+
| % | Time | Samples | Callee | Location |
|
|
39
|
+
| -----: | ----: | ------: | ---------------------- | ------------ |
|
|
40
|
+
| 100.0% | 4.36s | 4,363 | `json_bench::workload` | `profile.rs` |
|
|
41
41
|
|
|
42
42
|
## Hottest call stacks
|
|
43
43
|
|
|
44
44
|
Call stacks ranked by time spent in their leaf frame.
|
|
45
45
|
|
|
46
|
-
Common call stack: `json_bench::workload` (`
|
|
47
|
-
|
|
48
|
-
| % | Time | Samples | Call stack
|
|
49
|
-
| ----: | ------: | ------: |
|
|
50
|
-
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` (
|
|
51
|
-
| 30.2% | 1.31s | 1,318 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
52
|
-
| 6.8% | 298.0ms | 298 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
53
|
-
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` (
|
|
54
|
-
| 4.0% | 173.0ms | 173 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
55
|
-
| 4.0% | 173.0ms | 173 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
56
|
-
| 0.2% | 8.0ms | 8 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
57
|
-
| 0.2% | 8.0ms | 8 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
58
|
-
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
59
|
-
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
60
|
-
| <0.1% | 2.0ms | 2 | `core::ptr::drop_in_place<serde_json::value::Value>` (
|
|
46
|
+
Common call stack: `json_bench::workload` (`profile.rs`) ← `json_bench::main`
|
|
47
|
+
|
|
48
|
+
| % | Time | Samples | Call stack |
|
|
49
|
+
| ----: | ------: | ------: | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
50
|
+
| 50.1% | 2.18s | 2,186 | `serde_json::de::from_str` (`/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs`) |
|
|
51
|
+
| 30.2% | 1.31s | 1,318 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
52
|
+
| 6.8% | 298.0ms | 298 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
53
|
+
| 4.3% | 189.0ms | 189 | `serde_json::ser::to_string` (`/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs`) |
|
|
54
|
+
| 4.0% | 173.0ms | 173 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
55
|
+
| 4.0% | 173.0ms | 173 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
56
|
+
| 0.2% | 8.0ms | 8 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
57
|
+
| 0.2% | 8.0ms | 8 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
58
|
+
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
59
|
+
| 0.1% | 4.0ms | 4 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) |
|
|
60
|
+
| <0.1% | 2.0ms | 2 | `core::ptr::drop_in_place<serde_json::value::Value>` (`/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs`) ← `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
@@ -15,10 +15,10 @@ Took 4.27s → 4.36s (+88.00ms, +2.1%) over 4,275 samples → 4,363 samples (1.0
|
|
|
15
15
|
|
|
16
16
|
Functions with the largest increase in total time spent in the function and all its callees.
|
|
17
17
|
|
|
18
|
-
| Change | Delta | % | Time | Samples | Function | Location
|
|
19
|
-
| -----: | -------: | ------------: | ----------------: | ------------: | ---------------------------------------------------- |
|
|
20
|
-
| +2.1% | +88.00ms | 100.0% | 4.27s → 4.36s | 4,275 → 4,363 | `json_bench::workload` | `
|
|
21
|
-
| +2.1% | +88.00ms | 100.0% | 4.27s → 4.36s | 4,275 → 4,363 | `json_bench::main` | `
|
|
22
|
-
| +2.6% | +56.00ms | 49.8% → 50.1% | 2.13s → 2.18s | 2,130 → 2,186 | `serde_json::de::from_str` |
|
|
23
|
-
| +9.9% | +17.00ms | 4.0% → 4.3% | 172.0ms → 189.0ms | 172 → 189 | `serde_json::ser::to_string` |
|
|
24
|
-
| +0.8% | +15.00ms | 46.2% → 45.6% | 1.97s → 1.98s | 1,973 → 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` |
|
|
18
|
+
| Change | Delta | % | Time | Samples | Function | Location |
|
|
19
|
+
| -----: | -------: | ------------: | ----------------: | ------------: | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
20
|
+
| +2.1% | +88.00ms | 100.0% | 4.27s → 4.36s | 4,275 → 4,363 | `json_bench::workload` | `profile.rs` |
|
|
21
|
+
| +2.1% | +88.00ms | 100.0% | 4.27s → 4.36s | 4,275 → 4,363 | `json_bench::main` | `profile.rs` |
|
|
22
|
+
| +2.6% | +56.00ms | 49.8% → 50.1% | 2.13s → 2.18s | 2,130 → 2,186 | `serde_json::de::from_str` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/de.rs` |
|
|
23
|
+
| +9.9% | +17.00ms | 4.0% → 4.3% | 172.0ms → 189.0ms | 172 → 189 | `serde_json::ser::to_string` | `/tmp/nix-shell.uf1Gw1/profiler-md-fixtures.nUom3J/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.140/src/ser.rs` |
|
|
24
|
+
| +0.8% | +15.00ms | 46.2% → 45.6% | 1.97s → 1.98s | 1,973 → 1,988 | `core::ptr::drop_in_place<serde_json::value::Value>` | `/rustc/59807616e1fa2540724bfbac14d7976d7e4a3860/library/core/src/ptr/mod.rs` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "profiler-md",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Tomer Aberbach",
|
|
6
6
|
"email": "tomer@aberba.ch",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"files": [
|
|
49
49
|
"examples/output",
|
|
50
50
|
"dist",
|
|
51
|
-
"docs"
|
|
51
|
+
"docs",
|
|
52
|
+
"skills"
|
|
52
53
|
],
|
|
53
54
|
"type": "module",
|
|
54
55
|
"sideEffects": false,
|
|
@@ -67,22 +68,23 @@
|
|
|
67
68
|
},
|
|
68
69
|
"prettier": "@tomer/prettier-config",
|
|
69
70
|
"dependencies": {
|
|
70
|
-
"@optique/core": "^1.1.
|
|
71
|
-
"@optique/run": "^1.1.
|
|
71
|
+
"@optique/core": "^1.1.1",
|
|
72
|
+
"@optique/run": "^1.1.1",
|
|
72
73
|
"@shikijs/core": "^4.2.0",
|
|
73
74
|
"@shikijs/engine-oniguruma": "^4.2.0",
|
|
74
75
|
"@shikijs/langs": "^4.2.0",
|
|
75
|
-
"@shikijs/themes": "^4.2.0",
|
|
76
76
|
"ansis": "^4.3.1",
|
|
77
77
|
"convert-source-map": "^2.0.0",
|
|
78
78
|
"globals": "^17.6.0",
|
|
79
79
|
"jumbo-json": "^0.2.0",
|
|
80
|
+
"mdast-util-from-markdown": "^2.0.3",
|
|
80
81
|
"mdast-util-gfm-table": "^2.0.0",
|
|
81
82
|
"mdast-util-to-markdown": "^2.1.2",
|
|
83
|
+
"micromark-extension-gfm-table": "^2.1.1",
|
|
82
84
|
"picomatch": "^4.0.4",
|
|
83
85
|
"plur": "^6.0.0",
|
|
84
86
|
"pprof-format": "^2.2.2",
|
|
85
|
-
"pretty-bytes": "^7.1.
|
|
87
|
+
"pretty-bytes": "^7.1.1",
|
|
86
88
|
"pretty-ms": "^9.3.0",
|
|
87
89
|
"source-map-js": "^1.2.1"
|
|
88
90
|
},
|
|
@@ -96,11 +98,10 @@
|
|
|
96
98
|
"@types/picomatch": "^4.0.3",
|
|
97
99
|
"@vitest/coverage-v8": "^4.1.9",
|
|
98
100
|
"dedent": "^1.7.2",
|
|
99
|
-
"diff": "^9.0.0",
|
|
100
101
|
"eslint": "^10.5.0",
|
|
101
102
|
"jsdom": "^29.1.1",
|
|
103
|
+
"knip": "^6.24.0",
|
|
102
104
|
"limit-concur": "^4.0.0",
|
|
103
|
-
"mdast-util-from-markdown": "^2.0.3",
|
|
104
105
|
"mdast-util-gfm": "^3.1.0",
|
|
105
106
|
"micromark-extension-gfm": "^3.0.0",
|
|
106
107
|
"prettier": "^3.8.4",
|
|
@@ -116,6 +117,7 @@
|
|
|
116
117
|
"lint:base": "eslint --cache --cache-location node_modules/.cache/eslint/ --fix",
|
|
117
118
|
"lint": "pnpm lint:base .",
|
|
118
119
|
"typecheck": "tsc --noEmit",
|
|
120
|
+
"knip": "knip",
|
|
119
121
|
"test": "vitest",
|
|
120
122
|
"coverage": "vitest --coverage",
|
|
121
123
|
"bench": "./scripts/bench",
|
|
@@ -124,7 +126,6 @@
|
|
|
124
126
|
"update-readme": "node scripts/update-readme.ts",
|
|
125
127
|
"check-readme": "node scripts/update-readme.ts --check",
|
|
126
128
|
"update-examples": "node scripts/update-examples.ts",
|
|
127
|
-
"check-examples": "node scripts/update-examples.ts --check"
|
|
128
|
-
"pub": "./scripts/publish"
|
|
129
|
+
"check-examples": "node scripts/update-examples.ts --check"
|
|
129
130
|
}
|
|
130
131
|
}
|
package/readme.md
CHANGED
|
@@ -30,18 +30,35 @@
|
|
|
30
30
|
|
|
31
31
|
- **Polyglot:** supports many profile and heap snapshot formats across many
|
|
32
32
|
languages
|
|
33
|
-
- **
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
- **Profile analysis:** summarizes sampling rates and category breakdowns, ranks
|
|
34
|
+
the hottest functions by self and total time (or allocations, locks, or
|
|
35
|
+
whatever else was sampled) with per-line, caller, and callee breakdowns, and
|
|
36
|
+
lists the hottest call stacks
|
|
37
|
+
- **Heap analysis:** reports self and retained size with
|
|
38
|
+
[dominator](<https://en.wikipedia.org/wiki/Dominator_(graph_theory)>)-based
|
|
39
|
+
retention, retainer paths, and the largest constructors, closures, and strings
|
|
40
|
+
- **Diffing:** compare two profiles or two heap snapshots to see ranked
|
|
41
|
+
regressions and improvements, with entry matching that ignores run-varying
|
|
42
|
+
identifiers like build hashes
|
|
36
43
|
- **Source maps:** resolves minified and transpiled locations back to original
|
|
37
|
-
sources
|
|
38
|
-
- **Zero config:** auto-detects the format
|
|
39
|
-
gzip/brotli, and reads from stdin
|
|
44
|
+
sources, from standalone or inline source maps
|
|
45
|
+
- **Zero config:** auto-detects the format and the profiler and runtime that
|
|
46
|
+
produced it, decompresses gzip/brotli, and reads from stdin
|
|
47
|
+
- **Fast:** parses and detects formats while streaming the input, and uses
|
|
48
|
+
specialized data structures so large profiles and snapshots convert quickly
|
|
49
|
+
- **Configurable:** control the number of top entries shown, the base URL or
|
|
50
|
+
directory that locations are shown relative to, entry categorization and
|
|
51
|
+
third-party detection, entry filtering, and diff matching; the defaults are
|
|
52
|
+
exported for custom hooks to build on
|
|
53
|
+
- **CLI and API:** use it from the command line or programmatically via a
|
|
54
|
+
fully-typed API with sync and async variants
|
|
40
55
|
- **Readable in the terminal:** ANSI syntax highlighting with heat-map coloring
|
|
41
56
|
and automatic paging
|
|
42
|
-
- **
|
|
43
|
-
|
|
44
|
-
|
|
57
|
+
- **Self-documenting:** `--help <language>` and `--help <format>` explain how to
|
|
58
|
+
generate and understand each profile type, and shell completions cover bash,
|
|
59
|
+
fish, zsh, and PowerShell
|
|
60
|
+
- **Agent-ready:** ships a [skill](./skills/profile-optimize/SKILL.md) that
|
|
61
|
+
guides an agent through profiling and optimizing your code
|
|
45
62
|
|
|
46
63
|
## Languages and formats
|
|
47
64
|
|
|
@@ -58,19 +75,20 @@ it. Third-party tools can often convert others, though.
|
|
|
58
75
|
</thead>
|
|
59
76
|
<tbody>
|
|
60
77
|
<tr>
|
|
61
|
-
<td><a href="docs/languages/c.md">C
|
|
78
|
+
<td><a href="docs/languages/c.md">C/C++</a></td>
|
|
62
79
|
<td>
|
|
63
80
|
<div><a href="docs/formats/pprof.md">pprof</a>:<ul><li>C CPU (<a href="examples/output/c.gperftools.cpu.base.pprof.md">base</a>, <a href="examples/output/c.gperftools.cpu.current.pprof.md">current</a>, <a href="examples/output/c.gperftools.cpu.diff.pprof.md">diff</a>)</li><li>C Heap (<a href="examples/output/c.gperftools.heap.base.pprof.md">base</a>, <a href="examples/output/c.gperftools.heap.current.pprof.md">current</a>, <a href="examples/output/c.gperftools.heap.diff.pprof.md">diff</a>)</li><li>C++ CPU (<a href="examples/output/cpp.gperftools.cpu.base.pprof.md">base</a>, <a href="examples/output/cpp.gperftools.cpu.current.pprof.md">current</a>, <a href="examples/output/cpp.gperftools.cpu.diff.pprof.md">diff</a>)</li><li>C++ Heap (<a href="examples/output/cpp.gperftools.heap.base.pprof.md">base</a>, <a href="examples/output/cpp.gperftools.heap.current.pprof.md">current</a>, <a href="examples/output/cpp.gperftools.heap.diff.pprof.md">diff</a>)</li></ul></div>
|
|
81
|
+
<div><a href="docs/formats/systing.md">systing profile export</a>: <a href="examples/output/c.systing.cpu.base.systing.md">base</a>, <a href="examples/output/c.systing.cpu.current.systing.md">current</a>, <a href="examples/output/c.systing.cpu.diff.systing.md">diff</a></div>
|
|
64
82
|
</td>
|
|
65
83
|
</tr>
|
|
66
84
|
<tr>
|
|
67
|
-
<td><a href="docs/languages/csharp.md">C
|
|
85
|
+
<td><a href="docs/languages/csharp.md">C#/F#</a></td>
|
|
68
86
|
<td>
|
|
69
87
|
<div><a href="docs/formats/speedscope.md">Speedscope</a>:<ul><li>C# (<a href="examples/output/csharp.dotnet-trace.base.speedscope.json.md">base</a>, <a href="examples/output/csharp.dotnet-trace.current.speedscope.json.md">current</a>, <a href="examples/output/csharp.dotnet-trace.diff.speedscope.json.md">diff</a>)</li><li>F# (<a href="examples/output/fsharp.dotnet-trace.base.speedscope.json.md">base</a>, <a href="examples/output/fsharp.dotnet-trace.current.speedscope.json.md">current</a>, <a href="examples/output/fsharp.dotnet-trace.diff.speedscope.json.md">diff</a>)</li></ul></div>
|
|
70
88
|
</td>
|
|
71
89
|
</tr>
|
|
72
90
|
<tr>
|
|
73
|
-
<td><a href="docs/languages/elixir.md">Elixir
|
|
91
|
+
<td><a href="docs/languages/elixir.md">Elixir/Erlang</a></td>
|
|
74
92
|
<td>
|
|
75
93
|
<div><a href="docs/formats/collapsed.md">Collapsed stacks</a>:<ul><li>Elixir (<a href="examples/output/elixir.eflambe.cpu.base.collapsed.md">base</a>, <a href="examples/output/elixir.eflambe.cpu.current.collapsed.md">current</a>, <a href="examples/output/elixir.eflambe.cpu.diff.collapsed.md">diff</a>)</li><li>Erlang (<a href="examples/output/erlang.eflambe.cpu.base.collapsed.md">base</a>, <a href="examples/output/erlang.eflambe.cpu.current.collapsed.md">current</a>, <a href="examples/output/erlang.eflambe.cpu.diff.collapsed.md">diff</a>)</li></ul></div>
|
|
76
94
|
</td>
|
|
@@ -82,14 +100,14 @@ it. Third-party tools can often convert others, though.
|
|
|
82
100
|
</td>
|
|
83
101
|
</tr>
|
|
84
102
|
<tr>
|
|
85
|
-
<td><a href="docs/languages/java.md">Java
|
|
103
|
+
<td><a href="docs/languages/java.md">Java/Kotlin</a></td>
|
|
86
104
|
<td>
|
|
87
|
-
<div><a href="docs/formats/jfr.md">JFR</a>:<ul><li>Java async-profiler All (<a href="examples/output/java.async-profiler.all.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.all.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.all.diff.jfr.md">diff</a>)</li><li>Java async-profiler Allocations (<a href="examples/output/java.async-profiler.alloc.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.alloc.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.alloc.diff.jfr.md">diff</a>)</li><li>Java async-profiler CPU (<a href="examples/output/java.async-profiler.cpu.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.cpu.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.cpu.diff.jfr.md">diff</a>)</li><li>Java async-profiler Live (<a href="examples/output/java.async-profiler.live.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.live.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.live.diff.jfr.md">diff</a>)</li><li>Java async-profiler Lock (<a href="examples/output/java.async-profiler.lock.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.lock.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.lock.diff.jfr.md">diff</a>)</li><li>Java async-profiler Native memory (<a href="examples/output/java.async-profiler.nativemem.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.nativemem.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.nativemem.diff.jfr.md">diff</a>)</li><li>Java async-profiler Wall (<a href="examples/output/java.async-profiler.wall.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.wall.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.wall.diff.jfr.md">diff</a>)</li><li>Java JDK All (<a href="examples/output/java.jdk.all.base.jfr.md">base</a>, <a href="examples/output/java.jdk.all.current.jfr.md">current</a>, <a href="examples/output/java.jdk.all.diff.jfr.md">diff</a>)</li><li>Java JDK Allocations (<a href="examples/output/java.jdk.alloc.base.jfr.md">base</a>, <a href="examples/output/java.jdk.alloc.current.jfr.md">current</a>, <a href="examples/output/java.jdk.alloc.diff.jfr.md">diff</a>)</li><li>Java JDK CPU (<a href="examples/output/java.jdk.cpu.base.jfr.md">base</a>, <a href="examples/output/java.jdk.cpu.current.jfr.md">current</a>, <a href="examples/output/java.jdk.cpu.diff.jfr.md">diff</a>)</li><li>Java JDK Live (<a href="examples/output/java.jdk.live.base.jfr.md">base</a>, <a href="examples/output/java.jdk.live.current.jfr.md">current</a>, <a href="examples/output/java.jdk.live.diff.jfr.md">diff</a>)</li><li>Java JDK Lock (<a href="examples/output/java.jdk.lock.base.jfr.md">base</a>, <a href="examples/output/java.jdk.lock.current.jfr.md">current</a>, <a href="examples/output/java.jdk.lock.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler All (<a href="examples/output/kotlin.async-profiler.all.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.all.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.all.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Allocations (<a href="examples/output/kotlin.async-profiler.alloc.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.alloc.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.alloc.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler CPU (<a href="examples/output/kotlin.async-profiler.cpu.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.cpu.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.cpu.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Live (<a href="examples/output/kotlin.async-profiler.live.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.live.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.live.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Lock (<a href="examples/output/kotlin.async-profiler.lock.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.lock.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.lock.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Native memory (<a href="examples/output/kotlin.async-profiler.nativemem.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.nativemem.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.nativemem.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Wall (<a href="examples/output/kotlin.async-profiler.wall.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.wall.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.wall.diff.jfr.md">diff</a>)</li><li>Kotlin JDK All (<a href="examples/output/kotlin.jdk.all.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.all.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.all.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Allocations (<a href="examples/output/kotlin.jdk.alloc.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.alloc.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.alloc.diff.jfr.md">diff</a>)</li><li>Kotlin JDK CPU (<a href="examples/output/kotlin.jdk.cpu.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.cpu.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.cpu.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Live (<a href="examples/output/kotlin.jdk.live.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.live.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.live.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Lock (<a href="examples/output/kotlin.jdk.lock.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.lock.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.lock.diff.jfr.md">diff</a>)</li></ul></div>
|
|
88
105
|
<div><a href="docs/formats/collapsed.md">Collapsed stacks</a>:<ul><li>Java (<a href="examples/output/java.async-profiler.cpu.base.collapsed.md">base</a>, <a href="examples/output/java.async-profiler.cpu.current.collapsed.md">current</a>, <a href="examples/output/java.async-profiler.cpu.diff.collapsed.md">diff</a>)</li><li>Kotlin (<a href="examples/output/kotlin.async-profiler.cpu.base.collapsed.md">base</a>, <a href="examples/output/kotlin.async-profiler.cpu.current.collapsed.md">current</a>, <a href="examples/output/kotlin.async-profiler.cpu.diff.collapsed.md">diff</a>)</li></ul></div>
|
|
106
|
+
<div><a href="docs/formats/jfr.md">JFR</a>:<ul><li>Java async-profiler All (<a href="examples/output/java.async-profiler.all.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.all.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.all.diff.jfr.md">diff</a>)</li><li>Java async-profiler Allocations (<a href="examples/output/java.async-profiler.alloc.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.alloc.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.alloc.diff.jfr.md">diff</a>)</li><li>Java async-profiler CPU (<a href="examples/output/java.async-profiler.cpu.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.cpu.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.cpu.diff.jfr.md">diff</a>)</li><li>Java async-profiler Live (<a href="examples/output/java.async-profiler.live.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.live.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.live.diff.jfr.md">diff</a>)</li><li>Java async-profiler Lock (<a href="examples/output/java.async-profiler.lock.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.lock.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.lock.diff.jfr.md">diff</a>)</li><li>Java async-profiler Native memory (<a href="examples/output/java.async-profiler.nativemem.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.nativemem.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.nativemem.diff.jfr.md">diff</a>)</li><li>Java async-profiler Wall (<a href="examples/output/java.async-profiler.wall.base.jfr.md">base</a>, <a href="examples/output/java.async-profiler.wall.current.jfr.md">current</a>, <a href="examples/output/java.async-profiler.wall.diff.jfr.md">diff</a>)</li><li>Java JDK All (<a href="examples/output/java.jdk.all.base.jfr.md">base</a>, <a href="examples/output/java.jdk.all.current.jfr.md">current</a>, <a href="examples/output/java.jdk.all.diff.jfr.md">diff</a>)</li><li>Java JDK Allocations (<a href="examples/output/java.jdk.alloc.base.jfr.md">base</a>, <a href="examples/output/java.jdk.alloc.current.jfr.md">current</a>, <a href="examples/output/java.jdk.alloc.diff.jfr.md">diff</a>)</li><li>Java JDK CPU (<a href="examples/output/java.jdk.cpu.base.jfr.md">base</a>, <a href="examples/output/java.jdk.cpu.current.jfr.md">current</a>, <a href="examples/output/java.jdk.cpu.diff.jfr.md">diff</a>)</li><li>Java JDK Live (<a href="examples/output/java.jdk.live.base.jfr.md">base</a>, <a href="examples/output/java.jdk.live.current.jfr.md">current</a>, <a href="examples/output/java.jdk.live.diff.jfr.md">diff</a>)</li><li>Java JDK Lock (<a href="examples/output/java.jdk.lock.base.jfr.md">base</a>, <a href="examples/output/java.jdk.lock.current.jfr.md">current</a>, <a href="examples/output/java.jdk.lock.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler All (<a href="examples/output/kotlin.async-profiler.all.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.all.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.all.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Allocations (<a href="examples/output/kotlin.async-profiler.alloc.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.alloc.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.alloc.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler CPU (<a href="examples/output/kotlin.async-profiler.cpu.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.cpu.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.cpu.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Live (<a href="examples/output/kotlin.async-profiler.live.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.live.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.live.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Lock (<a href="examples/output/kotlin.async-profiler.lock.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.lock.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.lock.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Native memory (<a href="examples/output/kotlin.async-profiler.nativemem.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.nativemem.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.nativemem.diff.jfr.md">diff</a>)</li><li>Kotlin async-profiler Wall (<a href="examples/output/kotlin.async-profiler.wall.base.jfr.md">base</a>, <a href="examples/output/kotlin.async-profiler.wall.current.jfr.md">current</a>, <a href="examples/output/kotlin.async-profiler.wall.diff.jfr.md">diff</a>)</li><li>Kotlin JDK All (<a href="examples/output/kotlin.jdk.all.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.all.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.all.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Allocations (<a href="examples/output/kotlin.jdk.alloc.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.alloc.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.alloc.diff.jfr.md">diff</a>)</li><li>Kotlin JDK CPU (<a href="examples/output/kotlin.jdk.cpu.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.cpu.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.cpu.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Live (<a href="examples/output/kotlin.jdk.live.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.live.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.live.diff.jfr.md">diff</a>)</li><li>Kotlin JDK Lock (<a href="examples/output/kotlin.jdk.lock.base.jfr.md">base</a>, <a href="examples/output/kotlin.jdk.lock.current.jfr.md">current</a>, <a href="examples/output/kotlin.jdk.lock.diff.jfr.md">diff</a>)</li></ul></div>
|
|
89
107
|
</td>
|
|
90
108
|
</tr>
|
|
91
109
|
<tr>
|
|
92
|
-
<td><a href="docs/languages/javascript.md">JavaScript
|
|
110
|
+
<td><a href="docs/languages/javascript.md">JavaScript/TypeScript</a></td>
|
|
93
111
|
<td>
|
|
94
112
|
<div><a href="docs/formats/jsc-heap-snapshot.md">JSC heap snapshot</a>: <a href="examples/output/javascript.bun.base.jsc-heap-snapshot.json.md">base</a>, <a href="examples/output/javascript.bun.current.jsc-heap-snapshot.json.md">current</a>, <a href="examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md">diff</a></div>
|
|
95
113
|
<div><a href="docs/formats/pprof.md">pprof</a>:<ul><li>CPU (<a href="examples/output/javascript.pprof.cpu.base.pprof.md">base</a>, <a href="examples/output/javascript.pprof.cpu.current.pprof.md">current</a>, <a href="examples/output/javascript.pprof.cpu.diff.pprof.md">diff</a>)</li><li>Heap (<a href="examples/output/javascript.pprof.heap.base.pprof.md">base</a>, <a href="examples/output/javascript.pprof.heap.current.pprof.md">current</a>, <a href="examples/output/javascript.pprof.heap.diff.pprof.md">diff</a>)</li></ul></div>
|
|
@@ -102,7 +120,8 @@ it. Third-party tools can often convert others, though.
|
|
|
102
120
|
<tr>
|
|
103
121
|
<td><a href="docs/languages/julia.md">Julia</a></td>
|
|
104
122
|
<td>
|
|
105
|
-
<div><a href="docs/formats/pprof.md">pprof</a>:<ul><li>Allocations (<a href="examples/output/julia.pprof-jl.alloc.base.pprof.md">base</a>, <a href="examples/output/julia.pprof-jl.alloc.current.pprof.md">current</a>, <a href="examples/output/julia.pprof-jl.alloc.diff.pprof.md">diff</a>)</li><li>CPU (<a href="examples/output/julia.pprof-jl.cpu.base.pprof.md">base</a>, <a href="examples/output/julia.pprof-jl.cpu.current.pprof.md">current</a>, <a href="examples/output/julia.pprof-jl.cpu.diff.pprof.md">diff</a>)</li></ul></div>
|
|
123
|
+
<div><a href="docs/formats/pprof.md">pprof</a>:<ul><li>Allocations (<a href="examples/output/julia.pprof-jl.alloc.base.pprof.md">base</a>, <a href="examples/output/julia.pprof-jl.alloc.current.pprof.md">current</a>, <a href="examples/output/julia.pprof-jl.alloc.diff.pprof.md">diff</a>)</li><li>CPU (<a href="examples/output/julia.pprof-jl.cpu.base.pprof.md">base</a>, <a href="examples/output/julia.pprof-jl.cpu.current.pprof.md">current</a>, <a href="examples/output/julia.pprof-jl.cpu.diff.pprof.md">diff</a>)</li><li>Wall (<a href="examples/output/julia.pprof-jl.wall.base.pprof.md">base</a>, <a href="examples/output/julia.pprof-jl.wall.current.pprof.md">current</a>, <a href="examples/output/julia.pprof-jl.wall.diff.pprof.md">diff</a>)</li></ul></div>
|
|
124
|
+
<div><a href="docs/formats/v8-heap-snapshot.md">V8 heap snapshot</a>: <a href="examples/output/julia.profile.base.heapsnapshot.md">base</a>, <a href="examples/output/julia.profile.current.heapsnapshot.md">current</a>, <a href="examples/output/julia.profile.diff.heapsnapshot.md">diff</a></div>
|
|
106
125
|
</td>
|
|
107
126
|
</tr>
|
|
108
127
|
<tr>
|
|
@@ -116,6 +135,7 @@ it. Third-party tools can often convert others, though.
|
|
|
116
135
|
<td>
|
|
117
136
|
<div><a href="docs/formats/collapsed.md">Collapsed stacks</a>:<ul><li>CPU (<a href="examples/output/python.py-spy.cpu.base.collapsed.md">base</a>, <a href="examples/output/python.py-spy.cpu.current.collapsed.md">current</a>, <a href="examples/output/python.py-spy.cpu.diff.collapsed.md">diff</a>)</li><li>Wall (<a href="examples/output/python.py-spy.wall.base.collapsed.md">base</a>, <a href="examples/output/python.py-spy.wall.current.collapsed.md">current</a>, <a href="examples/output/python.py-spy.wall.diff.collapsed.md">diff</a>)</li></ul></div>
|
|
118
137
|
<div><a href="docs/formats/speedscope.md">Speedscope</a>: <a href="examples/output/python.py-spy.cpu.base.speedscope.json.md">base</a>, <a href="examples/output/python.py-spy.cpu.current.speedscope.json.md">current</a>, <a href="examples/output/python.py-spy.cpu.diff.speedscope.json.md">diff</a></div>
|
|
138
|
+
<div><a href="docs/formats/systing.md">systing profile export</a></div>
|
|
119
139
|
</td>
|
|
120
140
|
</tr>
|
|
121
141
|
<tr>
|
|
@@ -130,6 +150,7 @@ it. Third-party tools can often convert others, though.
|
|
|
130
150
|
<td><a href="docs/languages/rust.md">Rust</a></td>
|
|
131
151
|
<td>
|
|
132
152
|
<div><a href="docs/formats/pprof.md">pprof</a>: <a href="examples/output/rust.pprof-rs.cpu.base.pprof.md">base</a>, <a href="examples/output/rust.pprof-rs.cpu.current.pprof.md">current</a>, <a href="examples/output/rust.pprof-rs.cpu.diff.pprof.md">diff</a></div>
|
|
153
|
+
<div><a href="docs/formats/systing.md">systing profile export</a></div>
|
|
133
154
|
</td>
|
|
134
155
|
</tr>
|
|
135
156
|
</tbody>
|
|
@@ -158,7 +179,7 @@ $ profiler-md --help
|
|
|
158
179
|
Usage: profiler-md [(-h/--help [TOPIC])] [-f/--format FORMAT] [-r/--origin
|
|
159
180
|
ORIGIN] [-o/--output FILE] [--top-n N] [--base-url STRING] [--source-maps
|
|
160
181
|
GLOB...] [--match REGEX=REPLACEMENT...] [--third-party GLOB...] [
|
|
161
|
-
--no-pager] [
|
|
182
|
+
--no-pager] [--color/--no-color] ([FILE] | BASE CURRENT)
|
|
162
183
|
|
|
163
184
|
Converts performance profiles to human and LLM friendly Markdown.
|
|
164
185
|
|
|
@@ -166,8 +187,9 @@ Converts performance profiles to human and LLM friendly Markdown.
|
|
|
166
187
|
-f, --format FORMAT Input profile format (default: auto)
|
|
167
188
|
-r, --origin ORIGIN Input profile origin (default: auto)
|
|
168
189
|
-o, --output FILE Output file (default: - for stdout)
|
|
169
|
-
--top-n N
|
|
170
|
-
--base-url STRING Base URL or path to show paths relative to
|
|
190
|
+
--top-n N Top entries to show (default: 20)
|
|
191
|
+
--base-url STRING Base URL or path to show paths relative to, or
|
|
192
|
+
"auto" to infer the common ancestor directory
|
|
171
193
|
(default: cwd)
|
|
172
194
|
--source-maps GLOB Source maps (JSON or inline) to apply to profile
|
|
173
195
|
locations (repeatable)
|
|
@@ -176,17 +198,16 @@ Converts performance profiles to human and LLM friendly Markdown.
|
|
|
176
198
|
(repeatable)
|
|
177
199
|
--third-party GLOB Additional URLs or paths to consider third-party
|
|
178
200
|
(repeatable)
|
|
179
|
-
--no-pager Disable stdout
|
|
180
|
-
--color
|
|
201
|
+
--no-pager Disable stdout paging (default: auto)
|
|
202
|
+
--color, --no-color Enable or disable ANSI syntax highlighting
|
|
181
203
|
(default: auto)
|
|
182
|
-
|
|
183
|
-
FILE Profile to convert (reads from stdin if omitted)
|
|
204
|
+
FILE Profile to convert (default: stdin)
|
|
184
205
|
BASE Base profile to diff
|
|
185
206
|
CURRENT Current profile to diff against the base
|
|
186
207
|
|
|
187
|
-
Formats: collapsed, jfr, jsc-heap-snapshot, pprof, speedscope, v8-cpu-profile, v8-heap-profile, v8-heap-snapshot, webkit-timeline-recording
|
|
188
|
-
Origins: beam, bun, deno, dotnet-trace, go, jvm, node, node-pprof, pprof-jl, pprof-rs, py-spy, rbspy, safari, tachyon, unknown
|
|
189
|
-
Languages: c
|
|
208
|
+
Formats: collapsed, jfr, jsc-heap-snapshot, pprof, speedscope, systing, v8-cpu-profile, v8-heap-profile, v8-heap-snapshot, webkit-timeline-recording
|
|
209
|
+
Origins: beam, bun, deno, dotnet-trace, go, jvm, node, node-pprof, pprof-jl, pprof-rs, py-spy, rbspy, safari, systing, tachyon, unknown
|
|
210
|
+
Languages: c/cpp, csharp/fsharp, elixir/erlang, go, java/kotlin, javascript/typescript, julia, php, python, ruby, rust
|
|
190
211
|
```
|
|
191
212
|
|
|
192
213
|
<!-- CLI_HELP END -->
|
|
@@ -265,15 +286,16 @@ console.log(
|
|
|
265
286
|
const options = {
|
|
266
287
|
// Show top 10 functions instead of the default 20.
|
|
267
288
|
topN: 10,
|
|
268
|
-
// Make paths relative to a custom base URL or directory
|
|
289
|
+
// Make paths relative to a custom base URL or directory, or pass `auto` to
|
|
290
|
+
// infer the profiled files' common ancestor directory.
|
|
269
291
|
baseURL: `/path/to/project`,
|
|
270
|
-
matchEntry: entry => {
|
|
292
|
+
matchEntry: (entry, context) => {
|
|
271
293
|
if (entry.location?.url.pathname.includes(`/bundle.`)) {
|
|
272
294
|
// Match bundled entries when diffing by name only, ignoring
|
|
273
295
|
// content-hashed filenames.
|
|
274
296
|
return { name: entry.name }
|
|
275
297
|
}
|
|
276
|
-
return defaultMatchEntry(entry)
|
|
298
|
+
return defaultMatchEntry(entry, context)
|
|
277
299
|
},
|
|
278
300
|
categorizeEntries: (entries, context) => {
|
|
279
301
|
const categories = defaultCategorizeEntries(entries, context)
|
|
@@ -294,8 +316,8 @@ console.log(
|
|
|
294
316
|
await profileToMdAsync(await openAsBlob(`example.cpuprofile`), options),
|
|
295
317
|
)
|
|
296
318
|
|
|
297
|
-
// The same options
|
|
298
|
-
//
|
|
319
|
+
// The same options apply to diffs. `matchEntry` takes effect only here, where
|
|
320
|
+
// it controls which entries count as the same across the two sides.
|
|
299
321
|
console.log(
|
|
300
322
|
await diffProfilesAsync(
|
|
301
323
|
await openAsBlob(`base.pprof`),
|