profiler-md 0.2.0 → 0.4.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 +2787 -1669
- package/dist/index.d.mts +249 -78
- package/dist/index.js +2 -2
- package/docs/formats/collapsed.md +12 -0
- package/docs/formats/jsc-heap-snapshot.md +13 -0
- package/docs/formats/webkit-timeline-recording.md +9 -0
- package/docs/languages/c.md +1 -1
- package/docs/languages/cpp.md +136 -0
- package/docs/languages/csharp.md +49 -0
- package/docs/languages/elixir.md +42 -0
- package/docs/languages/erlang.md +42 -0
- package/docs/languages/fsharp.md +49 -0
- package/docs/languages/go.md +2 -2
- package/docs/languages/java.md +10 -7
- package/docs/languages/javascript.md +69 -0
- package/docs/languages/julia.md +42 -0
- package/docs/languages/kotlin.md +120 -0
- package/docs/languages/python.md +10 -4
- package/docs/languages/typescript.md +254 -0
- package/examples/bun.cpuprofile.md +94 -116
- package/examples/deno.cpuprofile.md +11 -18
- package/examples/jsc-heap-snapshot.base.json.md +507 -0
- package/examples/jsc-heap-snapshot.current.json.md +504 -0
- package/examples/jsc-heap-snapshot.diff.json.md +119 -0
- package/examples/node.base.cpuprofile.md +451 -0
- package/examples/node.current.cpuprofile.md +449 -0
- package/examples/node.diff.cpuprofile.md +82 -0
- package/examples/node.heapprofile.md +178 -223
- package/examples/node.heapsnapshot.md +268 -266
- package/examples/node.pprof.md +36 -45
- package/examples/python.base.collapsed.md +116 -0
- package/examples/python.current.collapsed.md +125 -0
- package/examples/python.diff.collapsed.md +51 -0
- package/examples/{rust1.pprof.md → rust.base.pprof.md} +223 -226
- package/examples/{rust2.pprof.md → rust.current.pprof.md} +199 -199
- package/examples/rust.diff.pprof.md +117 -0
- package/examples/webkit-timeline-recording.json.md +434 -0
- package/package.json +30 -18
- package/readme.md +173 -85
- package/examples/node.cpuprofile.md +0 -499
- package/examples/node.speedscope.json.md +0 -416
|
@@ -10,7 +10,7 @@ Took 6.08s over 46,255 samples (131.6µs per sample).
|
|
|
10
10
|
| program | 1.7% | 106.1ms | 817 |
|
|
11
11
|
| third-party | 1.2% | 71.1ms | 536 |
|
|
12
12
|
| idle | 0.8% | 50.1ms | 38 |
|
|
13
|
-
|
|
|
13
|
+
| stdlib | 0.0% | 0.1ms | 1 |
|
|
14
14
|
|
|
15
15
|
## Hottest functions
|
|
16
16
|
|
|
@@ -32,10 +32,10 @@ Functions ranked by time spent directly in the function body, excluding callees.
|
|
|
32
32
|
| 3.4% | 205.2ms | 1,575 | `getType` | uneval/src/internal/type.ts:4:24 |
|
|
33
33
|
| 2.9% | 175.5ms | 1,346 | `unevalObjectLiteralKey` | uneval/src/internal/object.ts:384:32 |
|
|
34
34
|
| 2.5% | 151.0ms | 1,151 | `createState` | uneval/src/index.ts:144:21 |
|
|
35
|
-
| 2.3% | 139.7ms | 1,060 | `(garbage collector)` | `<
|
|
36
|
-
| 2.1% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<
|
|
37
|
-
| 1.7% | 106.1ms | 817 | `(program)` | `<
|
|
38
|
-
| 0.8% | 50.1ms | 38 | `(idle)` | `<
|
|
35
|
+
| 2.3% | 139.7ms | 1,060 | `(garbage collector)` | `<unknown>` |
|
|
36
|
+
| 2.1% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<unknown>` |
|
|
37
|
+
| 1.7% | 106.1ms | 817 | `(program)` | `<unknown>` |
|
|
38
|
+
| 0.8% | 50.1ms | 38 | `(idle)` | `<unknown>` |
|
|
39
39
|
| 0.7% | 44.0ms | 338 | `unevalObject` | uneval/src/internal/object.ts:20:29 |
|
|
40
40
|
| 0.7% | 40.3ms | 309 | `isObject` | uneval/src/internal/object.ts:434:25 |
|
|
41
41
|
| 0.7% | 40.3ms | 308 | `unevalString` | uneval/src/internal/primitive.ts:133:29 |
|
|
@@ -284,7 +284,7 @@ Callers ranked by contribution to each function's self time. Caller attribution
|
|
|
284
284
|
| -----: | ------: | ------: | -------- | ------------------------- |
|
|
285
285
|
| 100.0% | 151.0ms | 1,151 | `uneval` | uneval/src/index.ts:75:16 |
|
|
286
286
|
|
|
287
|
-
##### `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` (`<
|
|
287
|
+
##### `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` (`<unknown>`)
|
|
288
288
|
|
|
289
289
|
| % | Time | Samples | Caller | Location |
|
|
290
290
|
| -----: | ------: | ------: | ------------------------ | ------------------------------------ |
|
|
@@ -337,9 +337,9 @@ Functions ranked by total time spent in the function and all its callees.
|
|
|
337
337
|
| 8.7% | 529.6ms | 4,061 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
|
|
338
338
|
| 6.9% | 420.6ms | 3,215 | `unevalNumber` | uneval/src/internal/primitive.ts:12:29 |
|
|
339
339
|
| 3.4% | 205.2ms | 1,575 | `getType` | uneval/src/internal/type.ts:4:24 |
|
|
340
|
-
| 2.3% | 139.7ms | 1,060 | `(garbage collector)` | `<
|
|
341
|
-
| 2.1% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<
|
|
342
|
-
| 1.7% | 106.1ms | 817 | `(program)` | `<
|
|
340
|
+
| 2.3% | 139.7ms | 1,060 | `(garbage collector)` | `<unknown>` |
|
|
341
|
+
| 2.1% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<unknown>` |
|
|
342
|
+
| 1.7% | 106.1ms | 817 | `(program)` | `<unknown>` |
|
|
343
343
|
| 1.1% | 68.4ms | 515 | `sample` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2551:16 |
|
|
344
344
|
|
|
345
345
|
#### Callees
|
|
@@ -436,7 +436,7 @@ Callees ranked by contribution to each function's total time. Callee attribution
|
|
|
436
436
|
| % | Time | Samples | Callee | Location |
|
|
437
437
|
| ----: | ------: | ------: | ------------------------------------------------ | ---------------------------------- |
|
|
438
438
|
| 75.2% | 921.4ms | 7,064 | `unevalWithoutCustom` | uneval/src/internal/index.ts:14:37 |
|
|
439
|
-
| 10.5% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<
|
|
439
|
+
| 10.5% | 128.6ms | 983 | `RegExp: ^[$_\p{ID_Start}][$_\p{ID_Continue}]*$` | `<unknown>` |
|
|
440
440
|
| 0.0% | 0.1ms | 1 | `unevalInternal` | uneval/src/internal/index.ts:25:32 |
|
|
441
441
|
|
|
442
442
|
##### `unevalWithoutCustom` (uneval/src/internal/index.ts:14:37)
|
|
@@ -451,16 +451,9 @@ Callees ranked by contribution to each function's total time. Callee attribution
|
|
|
451
451
|
| ----: | ------: | ------: | --------------- | --------------------------------------- |
|
|
452
452
|
| 92.9% | 529.6ms | 4,061 | `unevalLiteral` | uneval/src/internal/primitive.ts:139:23 |
|
|
453
453
|
|
|
454
|
-
##### `sample` (uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2551:16)
|
|
455
|
-
|
|
456
|
-
| % | Time | Samples | Callee | Location |
|
|
457
|
-
| ----: | -----: | ------: | -------------- | -------------------------------------------------------------------------------------------- |
|
|
458
|
-
| 97.5% | 66.7ms | 502 | `mapHelper` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:58:20 |
|
|
459
|
-
| 0.4% | 0.3ms | 2 | `streamSample` | uneval/node_modules/.pnpm/fast-check@4.6.0/node_modules/fast-check/lib/fast-check.js:2524:22 |
|
|
460
|
-
|
|
461
454
|
## Hottest call stacks
|
|
462
455
|
|
|
463
|
-
Call stacks ranked by time spent in their
|
|
456
|
+
Call stacks ranked by time spent in their leaf frame.
|
|
464
457
|
|
|
465
458
|
Common call stack: `uneval` (uneval/src/index.ts:75:16) ← `(anonymous)` (uneval/scripts/profile.ts:1:1)
|
|
466
459
|
|