profiler-md 0.4.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 +5512 -2297
- package/dist/index.d.mts +974 -62
- package/dist/index.js +2 -2
- package/docs/formats/jfr.md +16 -0
- package/docs/formats/jsc-heap-snapshot.md +3 -3
- 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 +66 -9
- package/docs/languages/csharp.md +4 -3
- package/docs/languages/elixir.md +10 -7
- package/docs/languages/go.md +17 -12
- package/docs/languages/java.md +110 -60
- package/docs/languages/javascript.md +41 -19
- package/docs/languages/julia.md +103 -12
- package/docs/languages/php.md +63 -20
- package/docs/languages/python.md +35 -81
- package/docs/languages/ruby.md +20 -32
- package/docs/languages/rust.md +37 -8
- 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/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.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/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 +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 +17 -12
- package/readme.md +158 -48
- package/skills/profile-optimize/SKILL.md +160 -0
- package/docs/languages/cpp.md +0 -136
- package/docs/languages/erlang.md +0 -42
- package/docs/languages/fsharp.md +0 -49
- package/docs/languages/kotlin.md +0 -120
- package/docs/languages/typescript.md +0 -254
- 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,518 @@
|
|
|
1
|
+
# Sampling profile
|
|
2
|
+
|
|
3
|
+
Collected 184 samples.
|
|
4
|
+
|
|
5
|
+
| Category | % | Samples |
|
|
6
|
+
| -------- | ----: | ------: |
|
|
7
|
+
| ours | 94.0% | 173 |
|
|
8
|
+
| stdlib | 6.0% | 11 |
|
|
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
|
+
| 12.0% | 22 | `_addtoken` | `blib2to3/pgen2/parse.py` |
|
|
19
|
+
| 8.7% | 16 | `generate_comments` | `black/comments.py` |
|
|
20
|
+
| 6.5% | 12 | `__new__` | `blib2to3/pytree.py` |
|
|
21
|
+
| 6.5% | 12 | `parse` | `ast.py` |
|
|
22
|
+
| 4.3% | 8 | `generate_tokens` | `blib2to3/pgen2/tokenize.py` |
|
|
23
|
+
| 3.8% | 7 | `_stringify_ast` | `black/parsing.py` |
|
|
24
|
+
| 3.8% | 7 | `visit_default` | `black/linegen.py` |
|
|
25
|
+
| 3.3% | 6 | `append` | `black/lines.py` |
|
|
26
|
+
| 2.7% | 5 | `pop` | `blib2to3/pgen2/parse.py` |
|
|
27
|
+
| 2.7% | 5 | `get_features_used` | `black/__init__.py` |
|
|
28
|
+
| 2.7% | 5 | `<genexpr>` | `blib2to3/pgen2/tokenize.py` |
|
|
29
|
+
| 2.2% | 4 | `__init__` | `blib2to3/pytree.py` |
|
|
30
|
+
| 1.6% | 3 | `visit_stmt` | `black/linegen.py` |
|
|
31
|
+
| 1.6% | 3 | `__str__` | `black/lines.py` |
|
|
32
|
+
| 1.6% | 3 | `transform_line` | `black/linegen.py` |
|
|
33
|
+
| 1.6% | 3 | `push` | `blib2to3/pgen2/parse.py` |
|
|
34
|
+
| 1.6% | 3 | `prefix` | `blib2to3/pytree.py` |
|
|
35
|
+
| 1.1% | 2 | `visit` | `black/nodes.py` |
|
|
36
|
+
| 1.1% | 2 | `__init__` | `<string>` |
|
|
37
|
+
| 1.1% | 2 | `leaves` | `blib2to3/pytree.py` |
|
|
38
|
+
|
|
39
|
+
#### Lines
|
|
40
|
+
|
|
41
|
+
Lines ranked by contribution to each function's self samples.
|
|
42
|
+
|
|
43
|
+
##### `_addtoken` (`blib2to3/pgen2/parse.py`)
|
|
44
|
+
|
|
45
|
+
| % | Samples | Location |
|
|
46
|
+
| ----: | ------: | ----------------------------- |
|
|
47
|
+
| 22.7% | 5 | `blib2to3/pgen2/parse.py:314` |
|
|
48
|
+
| 13.6% | 3 | `blib2to3/pgen2/parse.py:298` |
|
|
49
|
+
| 13.6% | 3 | `blib2to3/pgen2/parse.py:297` |
|
|
50
|
+
| 9.1% | 2 | `blib2to3/pgen2/parse.py:328` |
|
|
51
|
+
| 9.1% | 2 | `blib2to3/pgen2/parse.py:303` |
|
|
52
|
+
|
|
53
|
+
##### `generate_comments` (`black/comments.py`)
|
|
54
|
+
|
|
55
|
+
| % | Samples | Location |
|
|
56
|
+
| ----: | ------: | ---------------------- |
|
|
57
|
+
| 87.5% | 14 | `black/comments.py:72` |
|
|
58
|
+
| 6.3% | 1 | `black/comments.py:52` |
|
|
59
|
+
| 6.3% | 1 | `black/comments.py:75` |
|
|
60
|
+
|
|
61
|
+
##### `__new__` (`blib2to3/pytree.py`)
|
|
62
|
+
|
|
63
|
+
| % | Samples | Location |
|
|
64
|
+
| -----: | ------: | ----------------------- |
|
|
65
|
+
| 100.0% | 12 | `blib2to3/pytree.py:84` |
|
|
66
|
+
|
|
67
|
+
##### `parse` (`ast.py`)
|
|
68
|
+
|
|
69
|
+
| % | Samples | Location |
|
|
70
|
+
| -----: | ------: | ----------- |
|
|
71
|
+
| 100.0% | 12 | `ast.py:50` |
|
|
72
|
+
|
|
73
|
+
##### `generate_tokens` (`blib2to3/pgen2/tokenize.py`)
|
|
74
|
+
|
|
75
|
+
| % | Samples | Location |
|
|
76
|
+
| ----: | ------: | -------------------------------- |
|
|
77
|
+
| 50.0% | 4 | `blib2to3/pgen2/tokenize.py:875` |
|
|
78
|
+
| 25.0% | 2 | `blib2to3/pgen2/tokenize.py:719` |
|
|
79
|
+
| 12.5% | 1 | `blib2to3/pgen2/tokenize.py:877` |
|
|
80
|
+
| 12.5% | 1 | `blib2to3/pgen2/tokenize.py:973` |
|
|
81
|
+
|
|
82
|
+
##### `_stringify_ast` (`black/parsing.py`)
|
|
83
|
+
|
|
84
|
+
| % | Samples | Location |
|
|
85
|
+
| ----: | ------: | ---------------------- |
|
|
86
|
+
| 57.1% | 4 | `black/parsing.py:214` |
|
|
87
|
+
| 14.3% | 1 | `black/parsing.py:197` |
|
|
88
|
+
| 14.3% | 1 | `black/parsing.py:244` |
|
|
89
|
+
| 14.3% | 1 | `black/parsing.py:216` |
|
|
90
|
+
|
|
91
|
+
##### `visit_default` (`black/linegen.py`)
|
|
92
|
+
|
|
93
|
+
| % | Samples | Location |
|
|
94
|
+
| ----: | ------: | ---------------------- |
|
|
95
|
+
| 57.1% | 4 | `black/linegen.py:134` |
|
|
96
|
+
| 28.6% | 2 | `black/linegen.py:156` |
|
|
97
|
+
| 14.3% | 1 | `black/linegen.py:138` |
|
|
98
|
+
|
|
99
|
+
##### `append` (`black/lines.py`)
|
|
100
|
+
|
|
101
|
+
| % | Samples | Location |
|
|
102
|
+
| ----: | ------: | -------------------- |
|
|
103
|
+
| 33.3% | 2 | `black/lines.py:84` |
|
|
104
|
+
| 16.7% | 1 | `black/lines.py:94` |
|
|
105
|
+
| 16.7% | 1 | `black/lines.py:86` |
|
|
106
|
+
| 16.7% | 1 | `black/lines.py:101` |
|
|
107
|
+
| 16.7% | 1 | `black/lines.py:76` |
|
|
108
|
+
|
|
109
|
+
##### `pop` (`blib2to3/pgen2/parse.py`)
|
|
110
|
+
|
|
111
|
+
| % | Samples | Location |
|
|
112
|
+
| ----: | ------: | ----------------------------- |
|
|
113
|
+
| 40.0% | 2 | `blib2to3/pgen2/parse.py:403` |
|
|
114
|
+
| 40.0% | 2 | `blib2to3/pgen2/parse.py:408` |
|
|
115
|
+
| 20.0% | 1 | `blib2to3/pgen2/parse.py:398` |
|
|
116
|
+
|
|
117
|
+
##### `get_features_used` (`black/__init__.py`)
|
|
118
|
+
|
|
119
|
+
| % | Samples | Location |
|
|
120
|
+
| ----: | ------: | ------------------------ |
|
|
121
|
+
| 40.0% | 2 | `black/__init__.py:1440` |
|
|
122
|
+
| 20.0% | 1 | `black/__init__.py:1367` |
|
|
123
|
+
| 20.0% | 1 | `black/__init__.py:1430` |
|
|
124
|
+
| 20.0% | 1 | `black/__init__.py:1335` |
|
|
125
|
+
|
|
126
|
+
##### `<genexpr>` (`blib2to3/pgen2/tokenize.py`)
|
|
127
|
+
|
|
128
|
+
| % | Samples | Location |
|
|
129
|
+
| -----: | ------: | -------------------------------- |
|
|
130
|
+
| 100.0% | 5 | `blib2to3/pgen2/tokenize.py:471` |
|
|
131
|
+
|
|
132
|
+
##### `__init__` (`blib2to3/pytree.py`)
|
|
133
|
+
|
|
134
|
+
| % | Samples | Location |
|
|
135
|
+
| ----: | ------: | ------------------------ |
|
|
136
|
+
| 25.0% | 1 | `blib2to3/pytree.py:266` |
|
|
137
|
+
| 25.0% | 1 | `blib2to3/pytree.py:417` |
|
|
138
|
+
| 25.0% | 1 | `blib2to3/pytree.py:426` |
|
|
139
|
+
| 25.0% | 1 | `blib2to3/pytree.py:267` |
|
|
140
|
+
|
|
141
|
+
##### `visit_stmt` (`black/linegen.py`)
|
|
142
|
+
|
|
143
|
+
| % | Samples | Location |
|
|
144
|
+
| ----: | ------: | ---------------------- |
|
|
145
|
+
| 66.7% | 2 | `black/linegen.py:218` |
|
|
146
|
+
| 33.3% | 1 | `black/linegen.py:216` |
|
|
147
|
+
|
|
148
|
+
##### `__str__` (`black/lines.py`)
|
|
149
|
+
|
|
150
|
+
| % | Samples | Location |
|
|
151
|
+
| ----: | ------: | -------------------- |
|
|
152
|
+
| 33.3% | 1 | `black/lines.py:500` |
|
|
153
|
+
| 33.3% | 1 | `black/lines.py:498` |
|
|
154
|
+
| 33.3% | 1 | `black/lines.py:501` |
|
|
155
|
+
|
|
156
|
+
##### `transform_line` (`black/linegen.py`)
|
|
157
|
+
|
|
158
|
+
| % | Samples | Location |
|
|
159
|
+
| ----: | ------: | ---------------------- |
|
|
160
|
+
| 33.3% | 1 | `black/linegen.py:626` |
|
|
161
|
+
| 33.3% | 1 | `black/linegen.py:714` |
|
|
162
|
+
| 33.3% | 1 | `black/linegen.py:679` |
|
|
163
|
+
|
|
164
|
+
##### `push` (`blib2to3/pgen2/parse.py`)
|
|
165
|
+
|
|
166
|
+
| % | Samples | Location |
|
|
167
|
+
| ----: | ------: | ----------------------------- |
|
|
168
|
+
| 33.3% | 1 | `blib2to3/pgen2/parse.py:395` |
|
|
169
|
+
| 33.3% | 1 | `blib2to3/pgen2/parse.py:396` |
|
|
170
|
+
| 33.3% | 1 | `blib2to3/pgen2/parse.py:394` |
|
|
171
|
+
|
|
172
|
+
##### `prefix` (`blib2to3/pytree.py`)
|
|
173
|
+
|
|
174
|
+
| % | Samples | Location |
|
|
175
|
+
| ----: | ------: | ------------------------ |
|
|
176
|
+
| 33.3% | 1 | `blib2to3/pytree.py:480` |
|
|
177
|
+
| 33.3% | 1 | `blib2to3/pytree.py:482` |
|
|
178
|
+
| 33.3% | 1 | `blib2to3/pytree.py:320` |
|
|
179
|
+
|
|
180
|
+
##### `visit` (`black/nodes.py`)
|
|
181
|
+
|
|
182
|
+
| % | Samples | Location |
|
|
183
|
+
| -----: | ------: | -------------------- |
|
|
184
|
+
| 100.0% | 2 | `black/nodes.py:163` |
|
|
185
|
+
|
|
186
|
+
##### `__init__` (`<string>`)
|
|
187
|
+
|
|
188
|
+
| % | Samples | Location |
|
|
189
|
+
| -----: | ------: | ------------ |
|
|
190
|
+
| 100.0% | 2 | `<string>:4` |
|
|
191
|
+
|
|
192
|
+
##### `leaves` (`blib2to3/pytree.py`)
|
|
193
|
+
|
|
194
|
+
| % | Samples | Location |
|
|
195
|
+
| -----: | ------: | ------------------------ |
|
|
196
|
+
| 100.0% | 2 | `blib2to3/pytree.py:223` |
|
|
197
|
+
|
|
198
|
+
#### Callers
|
|
199
|
+
|
|
200
|
+
Callers ranked by contribution to each function's self samples. Inlining can make caller attribution imprecise.
|
|
201
|
+
|
|
202
|
+
##### `_addtoken` (`blib2to3/pgen2/parse.py`)
|
|
203
|
+
|
|
204
|
+
| % | Samples | Caller | Location |
|
|
205
|
+
| -----: | ------: | ---------- | ------------------------- |
|
|
206
|
+
| 100.0% | 22 | `addtoken` | `blib2to3/pgen2/parse.py` |
|
|
207
|
+
|
|
208
|
+
##### `generate_comments` (`black/comments.py`)
|
|
209
|
+
|
|
210
|
+
| % | Samples | Caller | Location |
|
|
211
|
+
| -----: | ------: | --------------- | ------------------ |
|
|
212
|
+
| 100.0% | 16 | `visit_default` | `black/linegen.py` |
|
|
213
|
+
|
|
214
|
+
##### `__new__` (`blib2to3/pytree.py`)
|
|
215
|
+
|
|
216
|
+
| % | Samples | Caller | Location |
|
|
217
|
+
| -----: | ------: | --------- | -------------------- |
|
|
218
|
+
| 100.0% | 12 | `convert` | `blib2to3/pytree.py` |
|
|
219
|
+
|
|
220
|
+
##### `parse` (`ast.py`)
|
|
221
|
+
|
|
222
|
+
| % | Samples | Caller | Location |
|
|
223
|
+
| -----: | ------: | ----------------------- | ------------------ |
|
|
224
|
+
| 100.0% | 12 | `_parse_single_version` | `black/parsing.py` |
|
|
225
|
+
|
|
226
|
+
##### `generate_tokens` (`blib2to3/pgen2/tokenize.py`)
|
|
227
|
+
|
|
228
|
+
| % | Samples | Caller | Location |
|
|
229
|
+
| -----: | ------: | ---------- | -------------------------- |
|
|
230
|
+
| 100.0% | 8 | `__next__` | `blib2to3/pgen2/driver.py` |
|
|
231
|
+
|
|
232
|
+
##### `_stringify_ast` (`black/parsing.py`)
|
|
233
|
+
|
|
234
|
+
| % | Samples | Caller | Location |
|
|
235
|
+
| -----: | ------: | -------------------------------- | ------------------ |
|
|
236
|
+
| 100.0% | 7 | `_stringify_ast_with_new_parent` | `black/parsing.py` |
|
|
237
|
+
|
|
238
|
+
##### `visit_default` (`black/linegen.py`)
|
|
239
|
+
|
|
240
|
+
| % | Samples | Caller | Location |
|
|
241
|
+
| -----: | ------: | ------- | ---------------- |
|
|
242
|
+
| 100.0% | 7 | `visit` | `black/nodes.py` |
|
|
243
|
+
|
|
244
|
+
##### `append` (`black/lines.py`)
|
|
245
|
+
|
|
246
|
+
| % | Samples | Caller | Location |
|
|
247
|
+
| -----: | ------: | --------------- | ------------------ |
|
|
248
|
+
| 100.0% | 6 | `visit_default` | `black/linegen.py` |
|
|
249
|
+
|
|
250
|
+
##### `pop` (`blib2to3/pgen2/parse.py`)
|
|
251
|
+
|
|
252
|
+
| % | Samples | Caller | Location |
|
|
253
|
+
| -----: | ------: | ----------- | ------------------------- |
|
|
254
|
+
| 100.0% | 5 | `_addtoken` | `blib2to3/pgen2/parse.py` |
|
|
255
|
+
|
|
256
|
+
##### `get_features_used` (`black/__init__.py`)
|
|
257
|
+
|
|
258
|
+
| % | Samples | Caller | Location |
|
|
259
|
+
| -----: | ------: | ------------------------ | ------------------- |
|
|
260
|
+
| 100.0% | 5 | `detect_target_versions` | `black/__init__.py` |
|
|
261
|
+
|
|
262
|
+
##### `<genexpr>` (`blib2to3/pgen2/tokenize.py`)
|
|
263
|
+
|
|
264
|
+
| % | Samples | Caller | Location |
|
|
265
|
+
| -----: | ------: | ------------------ | ---------------------------- |
|
|
266
|
+
| 100.0% | 5 | `is_fstring_start` | `blib2to3/pgen2/tokenize.py` |
|
|
267
|
+
|
|
268
|
+
##### `__init__` (`blib2to3/pytree.py`)
|
|
269
|
+
|
|
270
|
+
| % | Samples | Caller | Location |
|
|
271
|
+
| ----: | ------: | --------------------- | -------------------- |
|
|
272
|
+
| 50.0% | 2 | `convert` | `blib2to3/pytree.py` |
|
|
273
|
+
| 50.0% | 2 | `wrap_in_parentheses` | `black/nodes.py` |
|
|
274
|
+
|
|
275
|
+
##### `visit_stmt` (`black/linegen.py`)
|
|
276
|
+
|
|
277
|
+
| % | Samples | Caller | Location |
|
|
278
|
+
| -----: | ------: | ------- | ---------------- |
|
|
279
|
+
| 100.0% | 3 | `visit` | `black/nodes.py` |
|
|
280
|
+
|
|
281
|
+
##### `__str__` (`black/lines.py`)
|
|
282
|
+
|
|
283
|
+
| % | Samples | Caller | Location |
|
|
284
|
+
| ----: | ------: | ------------------ | ------------------- |
|
|
285
|
+
| 66.7% | 2 | `line_to_string` | `black/lines.py` |
|
|
286
|
+
| 33.3% | 1 | `_format_str_once` | `black/__init__.py` |
|
|
287
|
+
|
|
288
|
+
##### `transform_line` (`black/linegen.py`)
|
|
289
|
+
|
|
290
|
+
| % | Samples | Caller | Location |
|
|
291
|
+
| -----: | ------: | ------------------ | ------------------- |
|
|
292
|
+
| 100.0% | 3 | `_format_str_once` | `black/__init__.py` |
|
|
293
|
+
|
|
294
|
+
##### `push` (`blib2to3/pgen2/parse.py`)
|
|
295
|
+
|
|
296
|
+
| % | Samples | Caller | Location |
|
|
297
|
+
| -----: | ------: | ----------- | ------------------------- |
|
|
298
|
+
| 100.0% | 3 | `_addtoken` | `blib2to3/pgen2/parse.py` |
|
|
299
|
+
|
|
300
|
+
##### `prefix` (`blib2to3/pytree.py`)
|
|
301
|
+
|
|
302
|
+
| % | Samples | Caller | Location |
|
|
303
|
+
| ----: | ------: | --------------------------- | ------------------- |
|
|
304
|
+
| 33.3% | 1 | `normalize_trailing_prefix` | `black/comments.py` |
|
|
305
|
+
| 33.3% | 1 | `append` | `black/lines.py` |
|
|
306
|
+
| 33.3% | 1 | `wrap_in_parentheses` | `black/nodes.py` |
|
|
307
|
+
|
|
308
|
+
##### `visit` (`black/nodes.py`)
|
|
309
|
+
|
|
310
|
+
| % | Samples | Caller | Location |
|
|
311
|
+
| -----: | ------: | --------------- | ---------------- |
|
|
312
|
+
| 100.0% | 2 | `visit_default` | `black/nodes.py` |
|
|
313
|
+
|
|
314
|
+
##### `__init__` (`<string>`)
|
|
315
|
+
|
|
316
|
+
| % | Samples | Caller | Location |
|
|
317
|
+
| -----: | ------: | ---------- | ---------- |
|
|
318
|
+
| 100.0% | 2 | `__init__` | `<string>` |
|
|
319
|
+
|
|
320
|
+
##### `leaves` (`blib2to3/pytree.py`)
|
|
321
|
+
|
|
322
|
+
| % | Samples | Caller | Location |
|
|
323
|
+
| -----: | ------: | -------- | -------------------- |
|
|
324
|
+
| 100.0% | 2 | `leaves` | `blib2to3/pytree.py` |
|
|
325
|
+
|
|
326
|
+
### Total samples
|
|
327
|
+
|
|
328
|
+
Functions ranked by total samples taken in the function and all its callees.
|
|
329
|
+
|
|
330
|
+
| % | Samples | Function | Location |
|
|
331
|
+
| ----: | ------: | --------------------------------- | -------------------------- |
|
|
332
|
+
| 94.0% | 173 | `format_file_contents` | `black/__init__.py` |
|
|
333
|
+
| 94.0% | 173 | `format_file_in_place` | `black/__init__.py` |
|
|
334
|
+
| 94.0% | 173 | `reformat_one` | `black/__init__.py` |
|
|
335
|
+
| 94.0% | 173 | `main` | `black/__init__.py` |
|
|
336
|
+
| 94.0% | 173 | `new_func` | `click/decorators.py` |
|
|
337
|
+
| 94.0% | 173 | `invoke` | `click/core.py` |
|
|
338
|
+
| 94.0% | 173 | `main` | `click/core.py` |
|
|
339
|
+
| 94.0% | 173 | `__call__` | `click/core.py` |
|
|
340
|
+
| 94.0% | 173 | `patched_main` | `black/__init__.py` |
|
|
341
|
+
| 94.0% | 173 | `<module>` | `black/__main__.py` |
|
|
342
|
+
| 83.2% | 153 | `_format_str_once` | `black/__init__.py` |
|
|
343
|
+
| 47.3% | 87 | `check_stability_and_equivalence` | `black/__init__.py` |
|
|
344
|
+
| 46.7% | 86 | `format_str` | `black/__init__.py` |
|
|
345
|
+
| 36.4% | 67 | `assert_stable` | `black/__init__.py` |
|
|
346
|
+
| 33.7% | 62 | `parse_string` | `blib2to3/pgen2/driver.py` |
|
|
347
|
+
| 33.7% | 62 | `lib2to3_parse` | `black/parsing.py` |
|
|
348
|
+
| 33.2% | 61 | `parse_tokens` | `blib2to3/pgen2/driver.py` |
|
|
349
|
+
| 31.0% | 57 | `visit_default` | `black/linegen.py` |
|
|
350
|
+
| 31.0% | 57 | `visit` | `black/nodes.py` |
|
|
351
|
+
| 31.0% | 57 | `visit_default` | `black/nodes.py` |
|
|
352
|
+
|
|
353
|
+
#### Callees
|
|
354
|
+
|
|
355
|
+
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.
|
|
356
|
+
|
|
357
|
+
##### `format_file_contents` (`black/__init__.py`)
|
|
358
|
+
|
|
359
|
+
| % | Samples | Callee | Location |
|
|
360
|
+
| ----: | ------: | --------------------------------- | ------------------- |
|
|
361
|
+
| 50.3% | 87 | `check_stability_and_equivalence` | `black/__init__.py` |
|
|
362
|
+
| 49.7% | 86 | `format_str` | `black/__init__.py` |
|
|
363
|
+
|
|
364
|
+
##### `format_file_in_place` (`black/__init__.py`)
|
|
365
|
+
|
|
366
|
+
| % | Samples | Callee | Location |
|
|
367
|
+
| -----: | ------: | ---------------------- | ------------------- |
|
|
368
|
+
| 100.0% | 173 | `format_file_contents` | `black/__init__.py` |
|
|
369
|
+
|
|
370
|
+
##### `reformat_one` (`black/__init__.py`)
|
|
371
|
+
|
|
372
|
+
| % | Samples | Callee | Location |
|
|
373
|
+
| -----: | ------: | ---------------------- | ------------------- |
|
|
374
|
+
| 100.0% | 173 | `format_file_in_place` | `black/__init__.py` |
|
|
375
|
+
|
|
376
|
+
##### `main` (`black/__init__.py`)
|
|
377
|
+
|
|
378
|
+
| % | Samples | Callee | Location |
|
|
379
|
+
| -----: | ------: | -------------- | ------------------- |
|
|
380
|
+
| 100.0% | 173 | `reformat_one` | `black/__init__.py` |
|
|
381
|
+
|
|
382
|
+
##### `new_func` (`click/decorators.py`)
|
|
383
|
+
|
|
384
|
+
| % | Samples | Callee | Location |
|
|
385
|
+
| -----: | ------: | ------ | ------------------- |
|
|
386
|
+
| 100.0% | 173 | `main` | `black/__init__.py` |
|
|
387
|
+
|
|
388
|
+
##### `invoke` (`click/core.py`)
|
|
389
|
+
|
|
390
|
+
| % | Samples | Callee | Location |
|
|
391
|
+
| -----: | ------: | ---------- | --------------------- |
|
|
392
|
+
| 100.0% | 173 | `new_func` | `click/decorators.py` |
|
|
393
|
+
| 100.0% | 173 | `invoke` | `click/core.py` |
|
|
394
|
+
|
|
395
|
+
##### `main` (`click/core.py`)
|
|
396
|
+
|
|
397
|
+
| % | Samples | Callee | Location |
|
|
398
|
+
| -----: | ------: | -------- | --------------- |
|
|
399
|
+
| 100.0% | 173 | `invoke` | `click/core.py` |
|
|
400
|
+
|
|
401
|
+
##### `__call__` (`click/core.py`)
|
|
402
|
+
|
|
403
|
+
| % | Samples | Callee | Location |
|
|
404
|
+
| -----: | ------: | ------ | --------------- |
|
|
405
|
+
| 100.0% | 173 | `main` | `click/core.py` |
|
|
406
|
+
|
|
407
|
+
##### `patched_main` (`black/__init__.py`)
|
|
408
|
+
|
|
409
|
+
| % | Samples | Callee | Location |
|
|
410
|
+
| -----: | ------: | ---------- | --------------- |
|
|
411
|
+
| 100.0% | 173 | `__call__` | `click/core.py` |
|
|
412
|
+
|
|
413
|
+
##### `<module>` (`black/__main__.py`)
|
|
414
|
+
|
|
415
|
+
| % | Samples | Callee | Location |
|
|
416
|
+
| -----: | ------: | -------------- | ------------------- |
|
|
417
|
+
| 100.0% | 173 | `patched_main` | `black/__init__.py` |
|
|
418
|
+
|
|
419
|
+
##### `_format_str_once` (`black/__init__.py`)
|
|
420
|
+
|
|
421
|
+
| % | Samples | Callee | Location |
|
|
422
|
+
| ----: | ------: | ------------------------ | ------------------- |
|
|
423
|
+
| 40.5% | 62 | `lib2to3_parse` | `black/parsing.py` |
|
|
424
|
+
| 37.3% | 57 | `visit` | `black/nodes.py` |
|
|
425
|
+
| 9.8% | 15 | `transform_line` | `black/linegen.py` |
|
|
426
|
+
| 4.6% | 7 | `detect_target_versions` | `black/__init__.py` |
|
|
427
|
+
| 3.9% | 6 | `maybe_empty_lines` | `black/lines.py` |
|
|
428
|
+
|
|
429
|
+
##### `check_stability_and_equivalence` (`black/__init__.py`)
|
|
430
|
+
|
|
431
|
+
| % | Samples | Callee | Location |
|
|
432
|
+
| ----: | ------: | ------------------- | ------------------- |
|
|
433
|
+
| 77.0% | 67 | `assert_stable` | `black/__init__.py` |
|
|
434
|
+
| 23.0% | 20 | `assert_equivalent` | `black/__init__.py` |
|
|
435
|
+
|
|
436
|
+
##### `format_str` (`black/__init__.py`)
|
|
437
|
+
|
|
438
|
+
| % | Samples | Callee | Location |
|
|
439
|
+
| -----: | ------: | ------------------ | ------------------- |
|
|
440
|
+
| 100.0% | 86 | `_format_str_once` | `black/__init__.py` |
|
|
441
|
+
|
|
442
|
+
##### `assert_stable` (`black/__init__.py`)
|
|
443
|
+
|
|
444
|
+
| % | Samples | Callee | Location |
|
|
445
|
+
| -----: | ------: | ------------------ | ------------------- |
|
|
446
|
+
| 100.0% | 67 | `_format_str_once` | `black/__init__.py` |
|
|
447
|
+
|
|
448
|
+
##### `parse_string` (`blib2to3/pgen2/driver.py`)
|
|
449
|
+
|
|
450
|
+
| % | Samples | Callee | Location |
|
|
451
|
+
| ----: | ------: | -------------- | -------------------------- |
|
|
452
|
+
| 98.4% | 61 | `parse_tokens` | `blib2to3/pgen2/driver.py` |
|
|
453
|
+
|
|
454
|
+
##### `lib2to3_parse` (`black/parsing.py`)
|
|
455
|
+
|
|
456
|
+
| % | Samples | Callee | Location |
|
|
457
|
+
| -----: | ------: | -------------- | -------------------------- |
|
|
458
|
+
| 100.0% | 62 | `parse_string` | `blib2to3/pgen2/driver.py` |
|
|
459
|
+
|
|
460
|
+
##### `parse_tokens` (`blib2to3/pgen2/driver.py`)
|
|
461
|
+
|
|
462
|
+
| % | Samples | Callee | Location |
|
|
463
|
+
| ----: | ------: | ---------- | -------------------------- |
|
|
464
|
+
| 73.8% | 45 | `addtoken` | `blib2to3/pgen2/parse.py` |
|
|
465
|
+
| 24.6% | 15 | `__next__` | `blib2to3/pgen2/driver.py` |
|
|
466
|
+
|
|
467
|
+
##### `visit_default` (`black/linegen.py`)
|
|
468
|
+
|
|
469
|
+
| % | Samples | Callee | Location |
|
|
470
|
+
| -----: | ------: | ------------------- | ------------------- |
|
|
471
|
+
| 100.0% | 57 | `visit_default` | `black/nodes.py` |
|
|
472
|
+
| 35.1% | 20 | `generate_comments` | `black/comments.py` |
|
|
473
|
+
| 26.3% | 15 | `append` | `black/lines.py` |
|
|
474
|
+
|
|
475
|
+
##### `visit` (`black/nodes.py`)
|
|
476
|
+
|
|
477
|
+
| % | Samples | Callee | Location |
|
|
478
|
+
| -----: | ------: | ------------------- | ------------------ |
|
|
479
|
+
| 100.0% | 57 | `visit_default` | `black/linegen.py` |
|
|
480
|
+
| 98.2% | 56 | `visit_stmt` | `black/linegen.py` |
|
|
481
|
+
| 94.7% | 54 | `visit_suite` | `black/linegen.py` |
|
|
482
|
+
| 93.0% | 53 | `visit_funcdef` | `black/linegen.py` |
|
|
483
|
+
| 68.4% | 39 | `visit_simple_stmt` | `black/linegen.py` |
|
|
484
|
+
|
|
485
|
+
##### `visit_default` (`black/nodes.py`)
|
|
486
|
+
|
|
487
|
+
| % | Samples | Callee | Location |
|
|
488
|
+
| -----: | ------: | ------- | ---------------- |
|
|
489
|
+
| 100.0% | 57 | `visit` | `black/nodes.py` |
|
|
490
|
+
|
|
491
|
+
## Hottest call stacks
|
|
492
|
+
|
|
493
|
+
Call stacks ranked by samples taken in their leaf frame.
|
|
494
|
+
|
|
495
|
+
Common call stack: `format_file_contents` (`black/__init__.py`) ← `format_file_in_place` ← `reformat_one` ← `main` ← `new_func` (`click/decorators.py`) ← `invoke` (`click/core.py`) ← `invoke` ← `main` ← `__call__` ← `patched_main` (`black/__init__.py`) ← `<module>` (`black/__main__.py`)
|
|
496
|
+
|
|
497
|
+
| % | Samples | Call stack |
|
|
498
|
+
| ---: | ------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
499
|
+
| 7.1% | 13 | `_addtoken` (`blib2to3/pgen2/parse.py`) ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
500
|
+
| 6.5% | 12 | `parse` (`ast.py`) ← `_parse_single_version` (`black/parsing.py`) ← `parse_ast` ← `assert_equivalent` (`black/__init__.py`) ← `check_stability_and_equivalence` |
|
|
501
|
+
| 4.9% | 9 | `_addtoken` (`blib2to3/pgen2/parse.py`) ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
502
|
+
| 4.9% | 9 | `__new__` (`blib2to3/pytree.py`) ← `convert` ← `pop` (`blib2to3/pgen2/parse.py`) ← `_addtoken` ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
503
|
+
| 3.3% | 6 | `generate_comments` (`black/comments.py`) ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_power` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_simple_stmt` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
504
|
+
| 2.7% | 5 | `generate_tokens` (`blib2to3/pgen2/tokenize.py`) ← `__next__` (`blib2to3/pgen2/driver.py`) ← `parse_tokens` ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
505
|
+
| 2.2% | 4 | `get_features_used` (`black/__init__.py`) ← `detect_target_versions` ← `_format_str_once` ← `format_str` |
|
|
506
|
+
| 2.2% | 4 | `generate_comments` (`black/comments.py`) ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_power` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_power` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_simple_stmt` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
507
|
+
| 2.2% | 4 | `_stringify_ast` (`black/parsing.py`) ← `_stringify_ast_with_new_parent` ← `_stringify_ast` ← `_stringify_ast_with_new_parent` ← `_stringify_ast` ← `_stringify_ast_with_new_parent` ← `_stringify_ast` ← `assert_equivalent` (`black/__init__.py`) ← `check_stability_and_equivalence` |
|
|
508
|
+
| 1.6% | 3 | `pop` (`blib2to3/pgen2/parse.py`) ← `_addtoken` ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
509
|
+
| 1.6% | 3 | `generate_tokens` (`blib2to3/pgen2/tokenize.py`) ← `__next__` (`blib2to3/pgen2/driver.py`) ← `parse_tokens` ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
510
|
+
| 1.6% | 3 | `<genexpr>` (`blib2to3/pgen2/tokenize.py`) ← `is_fstring_start` ← `generate_tokens` ← `__next__` (`blib2to3/pgen2/driver.py`) ← `parse_tokens` ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
511
|
+
| 1.1% | 2 | `_stringify_ast` (`black/parsing.py`) ← `_stringify_ast_with_new_parent` ← `_stringify_ast` ← `_stringify_ast_with_new_parent` ← `_stringify_ast` ← `assert_equivalent` (`black/__init__.py`) ← `check_stability_and_equivalence` |
|
|
512
|
+
| 1.1% | 2 | `__init__` (`<string>`) ← `__init__` ← `line` (`black/linegen.py`) ← `visit_stmt` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
513
|
+
| 1.1% | 2 | `__str__` (`black/lines.py`) ← `line_to_string` ← `transform_line` (`black/linegen.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
514
|
+
| 1.1% | 2 | `generate_comments` (`black/comments.py`) ← `visit_default` (`black/linegen.py`) ← `visit_DEDENT` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
515
|
+
| 1.1% | 2 | `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_simple_stmt` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
516
|
+
| 1.1% | 2 | `push` (`blib2to3/pgen2/parse.py`) ← `_addtoken` ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
517
|
+
| 1.1% | 2 | `__init__` (`blib2to3/pytree.py`) ← `convert` ← `pop` (`blib2to3/pgen2/parse.py`) ← `_addtoken` ← `addtoken` ← `parse_tokens` (`blib2to3/pgen2/driver.py`) ← `parse_string` ← `lib2to3_parse` (`black/parsing.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
518
|
+
| 1.1% | 2 | `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_simple_stmt` ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit_suite` ← `visit` (`black/nodes.py`) ← `visit_stmt` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `visit_default` ← `visit_default` (`black/linegen.py`) ← `visit` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|