profiler-md 0.6.0 → 0.8.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 +12953 -4258
- package/dist/index.d.mts +1182 -435
- package/dist/index.js +2 -2
- package/docs/api.md +138 -0
- package/docs/formats/callgrind.md +25 -0
- package/docs/formats/collapsed.md +5 -3
- package/docs/formats/ghc-eventlog.md +20 -0
- package/docs/formats/ghc-json-profile.md +23 -0
- package/docs/formats/hprof.md +21 -0
- package/docs/formats/jfr.md +2 -2
- package/docs/formats/jsc-heap-snapshot.md +10 -4
- package/docs/formats/memray.md +30 -0
- package/docs/formats/perf.md +74 -0
- package/docs/formats/pprof.md +4 -2
- package/docs/formats/speedscope.md +3 -2
- package/docs/formats/systing.md +17 -15
- package/docs/formats/v8-cpu-profile.md +4 -3
- package/docs/formats/v8-heap-profile.md +8 -5
- package/docs/formats/v8-heap-snapshot.md +8 -3
- package/docs/formats/webkit-timeline-recording.md +6 -0
- package/docs/languages/c.md +119 -32
- package/docs/languages/csharp.md +5 -3
- package/docs/languages/elixir.md +19 -11
- package/docs/languages/fortran.md +141 -0
- package/docs/languages/go.md +33 -10
- package/docs/languages/haskell.md +134 -0
- package/docs/languages/java.md +81 -26
- package/docs/languages/javascript.md +43 -25
- package/docs/languages/julia.md +21 -18
- package/docs/languages/php.md +19 -0
- package/docs/languages/python.md +105 -14
- package/docs/languages/ruby.md +15 -16
- package/docs/languages/rust.md +11 -10
- package/docs/languages/swift.md +135 -0
- package/docs/languages/zig.md +155 -0
- package/package.json +42 -42
- package/readme.md +302 -259
- package/skills/profile-optimize/SKILL.md +4 -2
- package/examples/output/c.gperftools.cpu.base.pprof.md +0 -324
- package/examples/output/c.gperftools.cpu.current.pprof.md +0 -271
- package/examples/output/c.gperftools.cpu.diff.pprof.md +0 -98
- package/examples/output/c.gperftools.heap.base.pprof.md +0 -362
- package/examples/output/c.gperftools.heap.current.pprof.md +0 -362
- package/examples/output/c.gperftools.heap.diff.pprof.md +0 -28
- package/examples/output/c.systing.cpu.base.systing.md +0 -824
- package/examples/output/c.systing.cpu.current.systing.md +0 -825
- package/examples/output/c.systing.cpu.diff.systing.md +0 -238
- package/examples/output/cpp.gperftools.cpu.base.pprof.md +0 -557
- package/examples/output/cpp.gperftools.cpu.current.pprof.md +0 -573
- package/examples/output/cpp.gperftools.cpu.diff.pprof.md +0 -122
- package/examples/output/cpp.gperftools.heap.base.pprof.md +0 -67
- package/examples/output/cpp.gperftools.heap.current.pprof.md +0 -67
- package/examples/output/cpp.gperftools.heap.diff.pprof.md +0 -19
- package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +0 -411
- package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +0 -412
- package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +0 -122
- package/examples/output/elixir.eflambe.cpu.base.collapsed.md +0 -399
- package/examples/output/elixir.eflambe.cpu.current.collapsed.md +0 -398
- package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +0 -92
- package/examples/output/erlang.eflambe.cpu.base.collapsed.md +0 -147
- package/examples/output/erlang.eflambe.cpu.current.collapsed.md +0 -147
- package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +0 -18
- package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +0 -324
- package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +0 -314
- package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +0 -119
- package/examples/output/go.pprof.block.base.pprof.md +0 -86
- package/examples/output/go.pprof.block.current.pprof.md +0 -83
- package/examples/output/go.pprof.block.diff.pprof.md +0 -42
- package/examples/output/go.pprof.cpu.base.pprof.md +0 -81
- package/examples/output/go.pprof.cpu.current.pprof.md +0 -70
- package/examples/output/go.pprof.cpu.diff.pprof.md +0 -52
- package/examples/output/go.pprof.goroutine.base.pprof.md +0 -43
- package/examples/output/go.pprof.goroutine.current.pprof.md +0 -43
- package/examples/output/go.pprof.goroutine.diff.pprof.md +0 -13
- package/examples/output/go.pprof.heap-alloc.base.pprof.md +0 -154
- package/examples/output/go.pprof.heap-alloc.current.pprof.md +0 -146
- package/examples/output/go.pprof.heap-alloc.diff.pprof.md +0 -67
- package/examples/output/go.pprof.heap.base.pprof.md +0 -154
- package/examples/output/go.pprof.heap.current.pprof.md +0 -146
- package/examples/output/go.pprof.heap.diff.pprof.md +0 -67
- package/examples/output/go.pprof.mutex.base.pprof.md +0 -55
- package/examples/output/go.pprof.mutex.current.pprof.md +0 -41
- package/examples/output/go.pprof.mutex.diff.pprof.md +0 -31
- package/examples/output/go.pprof.threadcreate.base.pprof.md +0 -55
- package/examples/output/go.pprof.threadcreate.current.pprof.md +0 -55
- package/examples/output/go.pprof.threadcreate.diff.pprof.md +0 -19
- package/examples/output/java.async-profiler.all.base.jfr.md +0 -1071
- package/examples/output/java.async-profiler.all.current.jfr.md +0 -1007
- package/examples/output/java.async-profiler.all.diff.jfr.md +0 -268
- package/examples/output/java.async-profiler.alloc.base.jfr.md +0 -425
- package/examples/output/java.async-profiler.alloc.current.jfr.md +0 -413
- package/examples/output/java.async-profiler.alloc.diff.jfr.md +0 -99
- package/examples/output/java.async-profiler.cpu.base.collapsed.md +0 -367
- package/examples/output/java.async-profiler.cpu.base.jfr.md +0 -485
- package/examples/output/java.async-profiler.cpu.current.collapsed.md +0 -355
- package/examples/output/java.async-profiler.cpu.current.jfr.md +0 -488
- package/examples/output/java.async-profiler.cpu.diff.collapsed.md +0 -117
- package/examples/output/java.async-profiler.cpu.diff.jfr.md +0 -118
- package/examples/output/java.async-profiler.live.base.jfr.md +0 -697
- package/examples/output/java.async-profiler.live.current.jfr.md +0 -684
- package/examples/output/java.async-profiler.live.diff.jfr.md +0 -191
- package/examples/output/java.async-profiler.lock.base.jfr.md +0 -140
- package/examples/output/java.async-profiler.lock.current.jfr.md +0 -108
- package/examples/output/java.async-profiler.lock.diff.jfr.md +0 -44
- package/examples/output/java.async-profiler.nativemem.base.jfr.md +0 -222
- package/examples/output/java.async-profiler.nativemem.current.jfr.md +0 -222
- package/examples/output/java.async-profiler.nativemem.diff.jfr.md +0 -65
- package/examples/output/java.async-profiler.wall.base.jfr.md +0 -400
- package/examples/output/java.async-profiler.wall.current.jfr.md +0 -420
- package/examples/output/java.async-profiler.wall.diff.jfr.md +0 -94
- package/examples/output/java.jdk.all.base.jfr.md +0 -1024
- package/examples/output/java.jdk.all.current.jfr.md +0 -1010
- package/examples/output/java.jdk.all.diff.jfr.md +0 -311
- package/examples/output/java.jdk.alloc.base.jfr.md +0 -1024
- package/examples/output/java.jdk.alloc.current.jfr.md +0 -1046
- package/examples/output/java.jdk.alloc.diff.jfr.md +0 -312
- package/examples/output/java.jdk.cpu.base.jfr.md +0 -1023
- package/examples/output/java.jdk.cpu.current.jfr.md +0 -1039
- package/examples/output/java.jdk.cpu.diff.jfr.md +0 -285
- package/examples/output/java.jdk.live.base.jfr.md +0 -1029
- package/examples/output/java.jdk.live.current.jfr.md +0 -1035
- package/examples/output/java.jdk.live.diff.jfr.md +0 -289
- package/examples/output/java.jdk.lock.base.jfr.md +0 -1040
- package/examples/output/java.jdk.lock.current.jfr.md +0 -1051
- package/examples/output/java.jdk.lock.diff.jfr.md +0 -339
- package/examples/output/javascript.bun.base.cpuprofile.md +0 -73
- package/examples/output/javascript.bun.base.heapsnapshot.md +0 -608
- package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +0 -480
- package/examples/output/javascript.bun.current.cpuprofile.md +0 -73
- package/examples/output/javascript.bun.current.heapsnapshot.md +0 -608
- package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +0 -480
- package/examples/output/javascript.bun.diff.cpuprofile.md +0 -54
- package/examples/output/javascript.bun.diff.heapsnapshot.md +0 -48
- package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +0 -62
- package/examples/output/javascript.chrome.base.cpuprofile.md +0 -163
- package/examples/output/javascript.chrome.base.heapprofile.md +0 -32
- package/examples/output/javascript.chrome.base.heapsnapshot.md +0 -649
- package/examples/output/javascript.chrome.current.cpuprofile.md +0 -149
- package/examples/output/javascript.chrome.current.heapprofile.md +0 -32
- package/examples/output/javascript.chrome.current.heapsnapshot.md +0 -647
- package/examples/output/javascript.chrome.diff.cpuprofile.md +0 -65
- package/examples/output/javascript.chrome.diff.heapprofile.md +0 -50
- package/examples/output/javascript.chrome.diff.heapsnapshot.md +0 -73
- package/examples/output/javascript.deno.base.cpuprofile.md +0 -122
- package/examples/output/javascript.deno.current.cpuprofile.md +0 -114
- package/examples/output/javascript.deno.diff.cpuprofile.md +0 -66
- package/examples/output/javascript.node.base.cpuprofile.md +0 -136
- package/examples/output/javascript.node.base.heapprofile.md +0 -56
- package/examples/output/javascript.node.base.heapsnapshot.md +0 -660
- package/examples/output/javascript.node.current.cpuprofile.md +0 -119
- package/examples/output/javascript.node.current.heapprofile.md +0 -52
- package/examples/output/javascript.node.current.heapsnapshot.md +0 -660
- package/examples/output/javascript.node.diff.cpuprofile.md +0 -70
- package/examples/output/javascript.node.diff.heapprofile.md +0 -34
- package/examples/output/javascript.node.diff.heapsnapshot.md +0 -39
- package/examples/output/javascript.pprof.cpu.base.pprof.md +0 -104
- package/examples/output/javascript.pprof.cpu.current.pprof.md +0 -120
- package/examples/output/javascript.pprof.cpu.diff.pprof.md +0 -63
- package/examples/output/javascript.pprof.heap.base.pprof.md +0 -86
- package/examples/output/javascript.pprof.heap.current.pprof.md +0 -57
- package/examples/output/javascript.pprof.heap.diff.pprof.md +0 -42
- package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +0 -388
- package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +0 -378
- package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +0 -122
- package/examples/output/julia.pprof-jl.alloc.base.pprof.md +0 -124
- package/examples/output/julia.pprof-jl.alloc.current.pprof.md +0 -126
- package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +0 -30
- package/examples/output/julia.pprof-jl.cpu.base.pprof.md +0 -177
- package/examples/output/julia.pprof-jl.cpu.current.pprof.md +0 -179
- package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +0 -64
- package/examples/output/julia.pprof-jl.wall.base.pprof.md +0 -181
- package/examples/output/julia.pprof-jl.wall.current.pprof.md +0 -193
- package/examples/output/julia.pprof-jl.wall.diff.pprof.md +0 -64
- package/examples/output/julia.profile.base.heapsnapshot.md +0 -590
- package/examples/output/julia.profile.current.heapsnapshot.md +0 -590
- package/examples/output/julia.profile.diff.heapsnapshot.md +0 -288
- package/examples/output/kotlin.async-profiler.all.base.jfr.md +0 -920
- package/examples/output/kotlin.async-profiler.all.current.jfr.md +0 -925
- package/examples/output/kotlin.async-profiler.all.diff.jfr.md +0 -247
- package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +0 -467
- package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +0 -473
- package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +0 -122
- package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +0 -371
- package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +0 -472
- package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +0 -370
- package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +0 -445
- package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +0 -124
- package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +0 -125
- package/examples/output/kotlin.async-profiler.live.base.jfr.md +0 -934
- package/examples/output/kotlin.async-profiler.live.current.jfr.md +0 -917
- package/examples/output/kotlin.async-profiler.live.diff.jfr.md +0 -245
- package/examples/output/kotlin.async-profiler.lock.base.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.lock.current.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +0 -1
- package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +0 -234
- package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +0 -234
- package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +0 -65
- package/examples/output/kotlin.async-profiler.wall.base.jfr.md +0 -452
- package/examples/output/kotlin.async-profiler.wall.current.jfr.md +0 -457
- package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +0 -125
- package/examples/output/kotlin.jdk.all.base.jfr.md +0 -1442
- package/examples/output/kotlin.jdk.all.current.jfr.md +0 -1343
- package/examples/output/kotlin.jdk.all.diff.jfr.md +0 -392
- package/examples/output/kotlin.jdk.alloc.base.jfr.md +0 -1418
- package/examples/output/kotlin.jdk.alloc.current.jfr.md +0 -1389
- package/examples/output/kotlin.jdk.alloc.diff.jfr.md +0 -383
- package/examples/output/kotlin.jdk.cpu.base.jfr.md +0 -1406
- package/examples/output/kotlin.jdk.cpu.current.jfr.md +0 -1374
- package/examples/output/kotlin.jdk.cpu.diff.jfr.md +0 -380
- package/examples/output/kotlin.jdk.live.base.jfr.md +0 -1378
- package/examples/output/kotlin.jdk.live.current.jfr.md +0 -1311
- package/examples/output/kotlin.jdk.live.diff.jfr.md +0 -381
- package/examples/output/kotlin.jdk.lock.base.jfr.md +0 -1427
- package/examples/output/kotlin.jdk.lock.current.jfr.md +0 -1374
- package/examples/output/kotlin.jdk.lock.diff.jfr.md +0 -386
- package/examples/output/php.excimer.wall.base.speedscope.json.md +0 -25
- package/examples/output/php.excimer.wall.current.speedscope.json.md +0 -25
- package/examples/output/php.excimer.wall.diff.speedscope.json.md +0 -29
- package/examples/output/python.py-spy.cpu.base.collapsed.md +0 -526
- package/examples/output/python.py-spy.cpu.base.speedscope.json.md +0 -37
- package/examples/output/python.py-spy.cpu.current.collapsed.md +0 -514
- package/examples/output/python.py-spy.cpu.current.speedscope.json.md +0 -37
- package/examples/output/python.py-spy.cpu.diff.collapsed.md +0 -122
- package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +0 -31
- package/examples/output/python.py-spy.wall.base.collapsed.md +0 -527
- package/examples/output/python.py-spy.wall.current.collapsed.md +0 -518
- package/examples/output/python.py-spy.wall.diff.collapsed.md +0 -122
- package/examples/output/ruby.rbspy.cpu.base.collapsed.md +0 -90
- package/examples/output/ruby.rbspy.cpu.base.pprof.md +0 -105
- package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +0 -105
- package/examples/output/ruby.rbspy.cpu.current.collapsed.md +0 -90
- package/examples/output/ruby.rbspy.cpu.current.pprof.md +0 -115
- package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +0 -115
- package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +0 -32
- package/examples/output/ruby.rbspy.cpu.diff.pprof.md +0 -44
- package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +0 -44
- package/examples/output/rust.pprof-rs.cpu.base.pprof.md +0 -60
- package/examples/output/rust.pprof-rs.cpu.current.pprof.md +0 -60
- package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +0 -24
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
# Sampling profile
|
|
2
|
-
|
|
3
|
-
Collected 189 samples.
|
|
4
|
-
|
|
5
|
-
| Category | % | Samples |
|
|
6
|
-
| -------- | ----: | ------: |
|
|
7
|
-
| ours | 93.7% | 177 |
|
|
8
|
-
| stdlib | 6.3% | 12 |
|
|
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
|
-
| 10.1% | 19 | `_addtoken` | `blib2to3/pgen2/parse.py` |
|
|
19
|
-
| 4.8% | 9 | `visit_default` | `black/linegen.py` |
|
|
20
|
-
| 4.8% | 9 | `pop` | `blib2to3/pgen2/parse.py` |
|
|
21
|
-
| 4.8% | 9 | `parse` | `ast.py` |
|
|
22
|
-
| 4.2% | 8 | `mark` | `black/brackets.py` |
|
|
23
|
-
| 4.2% | 8 | `__init__` | `blib2to3/pytree.py` |
|
|
24
|
-
| 3.7% | 7 | `generate_tokens` | `blib2to3/pgen2/tokenize.py` |
|
|
25
|
-
| 3.2% | 6 | `normalize_trailing_prefix` | `black/comments.py` |
|
|
26
|
-
| 2.6% | 5 | `__str__` | `black/lines.py` |
|
|
27
|
-
| 2.6% | 5 | `hug_power_op` | `black/trans.py` |
|
|
28
|
-
| 2.1% | 4 | `visit` | `black/nodes.py` |
|
|
29
|
-
| 2.1% | 4 | `prev_sibling` | `blib2to3/pytree.py` |
|
|
30
|
-
| 2.1% | 4 | `_stringify_ast` | `black/parsing.py` |
|
|
31
|
-
| 2.1% | 4 | `normalize_invisible_parens` | `black/linegen.py` |
|
|
32
|
-
| 2.1% | 4 | `transform_line` | `black/linegen.py` |
|
|
33
|
-
| 2.1% | 4 | `convert` | `blib2to3/pytree.py` |
|
|
34
|
-
| 2.1% | 4 | `get_features_used` | `black/__init__.py` |
|
|
35
|
-
| 2.1% | 4 | `current` | `blib2to3/pgen2/tokenize.py` |
|
|
36
|
-
| 1.6% | 3 | `generate_comments` | `black/comments.py` |
|
|
37
|
-
| 1.6% | 3 | `whitespace` | `black/nodes.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
|
-
| 21.1% | 4 | `blib2to3/pgen2/parse.py:298` |
|
|
48
|
-
| 15.8% | 3 | `blib2to3/pgen2/parse.py:326` |
|
|
49
|
-
| 10.5% | 2 | `blib2to3/pgen2/parse.py:295` |
|
|
50
|
-
| 10.5% | 2 | `blib2to3/pgen2/parse.py:297` |
|
|
51
|
-
| 10.5% | 2 | `blib2to3/pgen2/parse.py:303` |
|
|
52
|
-
|
|
53
|
-
##### `visit_default` (`black/linegen.py`)
|
|
54
|
-
|
|
55
|
-
| % | Samples | Location |
|
|
56
|
-
| ----: | ------: | ---------------------- |
|
|
57
|
-
| 77.8% | 7 | `black/linegen.py:158` |
|
|
58
|
-
| 22.2% | 2 | `black/linegen.py:134` |
|
|
59
|
-
|
|
60
|
-
##### `pop` (`blib2to3/pgen2/parse.py`)
|
|
61
|
-
|
|
62
|
-
| % | Samples | Location |
|
|
63
|
-
| ----: | ------: | ----------------------------- |
|
|
64
|
-
| 44.4% | 4 | `blib2to3/pgen2/parse.py:408` |
|
|
65
|
-
| 22.2% | 2 | `blib2to3/pgen2/parse.py:407` |
|
|
66
|
-
| 22.2% | 2 | `blib2to3/pgen2/parse.py:400` |
|
|
67
|
-
| 11.1% | 1 | `blib2to3/pgen2/parse.py:398` |
|
|
68
|
-
|
|
69
|
-
##### `parse` (`ast.py`)
|
|
70
|
-
|
|
71
|
-
| % | Samples | Location |
|
|
72
|
-
| -----: | ------: | ----------- |
|
|
73
|
-
| 100.0% | 9 | `ast.py:50` |
|
|
74
|
-
|
|
75
|
-
##### `mark` (`black/brackets.py`)
|
|
76
|
-
|
|
77
|
-
| % | Samples | Location |
|
|
78
|
-
| ----: | ------: | ----------------------- |
|
|
79
|
-
| 25.0% | 2 | `black/brackets.py:99` |
|
|
80
|
-
| 25.0% | 2 | `black/brackets.py:112` |
|
|
81
|
-
| 25.0% | 2 | `black/brackets.py:121` |
|
|
82
|
-
| 12.5% | 1 | `black/brackets.py:70` |
|
|
83
|
-
| 12.5% | 1 | `black/brackets.py:122` |
|
|
84
|
-
|
|
85
|
-
##### `__init__` (`blib2to3/pytree.py`)
|
|
86
|
-
|
|
87
|
-
| % | Samples | Location |
|
|
88
|
-
| ----: | ------: | ------------------------ |
|
|
89
|
-
| 75.0% | 6 | `blib2to3/pytree.py:266` |
|
|
90
|
-
| 12.5% | 1 | `blib2to3/pytree.py:268` |
|
|
91
|
-
| 12.5% | 1 | `blib2to3/pytree.py:424` |
|
|
92
|
-
|
|
93
|
-
##### `generate_tokens` (`blib2to3/pgen2/tokenize.py`)
|
|
94
|
-
|
|
95
|
-
| % | Samples | Location |
|
|
96
|
-
| ----: | ------: | -------------------------------- |
|
|
97
|
-
| 57.1% | 4 | `blib2to3/pgen2/tokenize.py:875` |
|
|
98
|
-
| 14.3% | 1 | `blib2to3/pgen2/tokenize.py:624` |
|
|
99
|
-
| 14.3% | 1 | `blib2to3/pgen2/tokenize.py:635` |
|
|
100
|
-
| 14.3% | 1 | `blib2to3/pgen2/tokenize.py:781` |
|
|
101
|
-
|
|
102
|
-
##### `normalize_trailing_prefix` (`black/comments.py`)
|
|
103
|
-
|
|
104
|
-
| % | Samples | Location |
|
|
105
|
-
| ----: | ------: | ----------------------- |
|
|
106
|
-
| 66.7% | 4 | `black/comments.py:134` |
|
|
107
|
-
| 33.3% | 2 | `black/comments.py:136` |
|
|
108
|
-
|
|
109
|
-
##### `__str__` (`black/lines.py`)
|
|
110
|
-
|
|
111
|
-
| % | Samples | Location |
|
|
112
|
-
| ----: | ------: | -------------------- |
|
|
113
|
-
| 60.0% | 3 | `black/lines.py:501` |
|
|
114
|
-
| 20.0% | 1 | `black/lines.py:500` |
|
|
115
|
-
| 20.0% | 1 | `black/lines.py:497` |
|
|
116
|
-
|
|
117
|
-
##### `hug_power_op` (`black/trans.py`)
|
|
118
|
-
|
|
119
|
-
| % | Samples | Location |
|
|
120
|
-
| ----: | ------: | ------------------- |
|
|
121
|
-
| 60.0% | 3 | `black/trans.py:85` |
|
|
122
|
-
| 40.0% | 2 | `black/trans.py:95` |
|
|
123
|
-
|
|
124
|
-
##### `visit` (`black/nodes.py`)
|
|
125
|
-
|
|
126
|
-
| % | Samples | Location |
|
|
127
|
-
| ----: | ------: | -------------------- |
|
|
128
|
-
| 75.0% | 3 | `black/nodes.py:181` |
|
|
129
|
-
| 25.0% | 1 | `black/nodes.py:185` |
|
|
130
|
-
|
|
131
|
-
##### `prev_sibling` (`blib2to3/pytree.py`)
|
|
132
|
-
|
|
133
|
-
| % | Samples | Location |
|
|
134
|
-
| ----: | ------: | ------------------------ |
|
|
135
|
-
| 50.0% | 2 | `blib2to3/pytree.py:219` |
|
|
136
|
-
| 25.0% | 1 | `blib2to3/pytree.py:216` |
|
|
137
|
-
| 25.0% | 1 | `blib2to3/pytree.py:207` |
|
|
138
|
-
|
|
139
|
-
##### `_stringify_ast` (`black/parsing.py`)
|
|
140
|
-
|
|
141
|
-
| % | Samples | Location |
|
|
142
|
-
| ----: | ------: | ---------------------- |
|
|
143
|
-
| 25.0% | 1 | `black/parsing.py:176` |
|
|
144
|
-
| 25.0% | 1 | `black/parsing.py:187` |
|
|
145
|
-
| 25.0% | 1 | `black/parsing.py:240` |
|
|
146
|
-
| 25.0% | 1 | `black/parsing.py:244` |
|
|
147
|
-
|
|
148
|
-
##### `normalize_invisible_parens` (`black/linegen.py`)
|
|
149
|
-
|
|
150
|
-
| % | Samples | Location |
|
|
151
|
-
| ----: | ------: | ----------------------- |
|
|
152
|
-
| 50.0% | 2 | `black/linegen.py:1351` |
|
|
153
|
-
| 25.0% | 1 | `black/linegen.py:1354` |
|
|
154
|
-
| 25.0% | 1 | `black/linegen.py:1412` |
|
|
155
|
-
|
|
156
|
-
##### `transform_line` (`black/linegen.py`)
|
|
157
|
-
|
|
158
|
-
| % | Samples | Location |
|
|
159
|
-
| ----: | ------: | ---------------------- |
|
|
160
|
-
| 50.0% | 2 | `black/linegen.py:714` |
|
|
161
|
-
| 25.0% | 1 | `black/linegen.py:601` |
|
|
162
|
-
| 25.0% | 1 | `black/linegen.py:715` |
|
|
163
|
-
|
|
164
|
-
##### `convert` (`blib2to3/pytree.py`)
|
|
165
|
-
|
|
166
|
-
| % | Samples | Location |
|
|
167
|
-
| ----: | ------: | ------------------------ |
|
|
168
|
-
| 75.0% | 3 | `blib2to3/pytree.py:486` |
|
|
169
|
-
| 25.0% | 1 | `blib2to3/pytree.py:503` |
|
|
170
|
-
|
|
171
|
-
##### `get_features_used` (`black/__init__.py`)
|
|
172
|
-
|
|
173
|
-
| % | Samples | Location |
|
|
174
|
-
| ----: | ------: | ------------------------ |
|
|
175
|
-
| 50.0% | 2 | `black/__init__.py:1367` |
|
|
176
|
-
| 25.0% | 1 | `black/__init__.py:1386` |
|
|
177
|
-
| 25.0% | 1 | `black/__init__.py:1440` |
|
|
178
|
-
|
|
179
|
-
##### `current` (`blib2to3/pgen2/tokenize.py`)
|
|
180
|
-
|
|
181
|
-
| % | Samples | Location |
|
|
182
|
-
| -----: | ------: | -------------------------------- |
|
|
183
|
-
| 100.0% | 4 | `blib2to3/pgen2/tokenize.py:534` |
|
|
184
|
-
|
|
185
|
-
##### `generate_comments` (`black/comments.py`)
|
|
186
|
-
|
|
187
|
-
| % | Samples | Location |
|
|
188
|
-
| ----: | ------: | ---------------------- |
|
|
189
|
-
| 66.7% | 2 | `black/comments.py:72` |
|
|
190
|
-
| 33.3% | 1 | `black/comments.py:52` |
|
|
191
|
-
|
|
192
|
-
##### `whitespace` (`black/nodes.py`)
|
|
193
|
-
|
|
194
|
-
| % | Samples | Location |
|
|
195
|
-
| ----: | ------: | -------------------- |
|
|
196
|
-
| 33.3% | 1 | `black/nodes.py:201` |
|
|
197
|
-
| 33.3% | 1 | `black/nodes.py:206` |
|
|
198
|
-
| 33.3% | 1 | `black/nodes.py:323` |
|
|
199
|
-
|
|
200
|
-
#### Callers
|
|
201
|
-
|
|
202
|
-
Callers ranked by contribution to each function's self samples. Inlining can make caller attribution imprecise.
|
|
203
|
-
|
|
204
|
-
##### `_addtoken` (`blib2to3/pgen2/parse.py`)
|
|
205
|
-
|
|
206
|
-
| % | Samples | Caller | Location |
|
|
207
|
-
| -----: | ------: | ---------- | ------------------------- |
|
|
208
|
-
| 100.0% | 19 | `addtoken` | `blib2to3/pgen2/parse.py` |
|
|
209
|
-
|
|
210
|
-
##### `visit_default` (`black/linegen.py`)
|
|
211
|
-
|
|
212
|
-
| % | Samples | Caller | Location |
|
|
213
|
-
| ----: | ------: | ------------- | ------------------ |
|
|
214
|
-
| 88.9% | 8 | `visit` | `black/nodes.py` |
|
|
215
|
-
| 11.1% | 1 | `visit_power` | `black/linegen.py` |
|
|
216
|
-
|
|
217
|
-
##### `pop` (`blib2to3/pgen2/parse.py`)
|
|
218
|
-
|
|
219
|
-
| % | Samples | Caller | Location |
|
|
220
|
-
| -----: | ------: | ----------- | ------------------------- |
|
|
221
|
-
| 100.0% | 9 | `_addtoken` | `blib2to3/pgen2/parse.py` |
|
|
222
|
-
|
|
223
|
-
##### `parse` (`ast.py`)
|
|
224
|
-
|
|
225
|
-
| % | Samples | Caller | Location |
|
|
226
|
-
| -----: | ------: | ----------------------- | ------------------ |
|
|
227
|
-
| 100.0% | 9 | `_parse_single_version` | `black/parsing.py` |
|
|
228
|
-
|
|
229
|
-
##### `mark` (`black/brackets.py`)
|
|
230
|
-
|
|
231
|
-
| % | Samples | Caller | Location |
|
|
232
|
-
| -----: | ------: | -------- | ---------------- |
|
|
233
|
-
| 100.0% | 8 | `append` | `black/lines.py` |
|
|
234
|
-
|
|
235
|
-
##### `__init__` (`blib2to3/pytree.py`)
|
|
236
|
-
|
|
237
|
-
| % | Samples | Caller | Location |
|
|
238
|
-
| -----: | ------: | --------- | -------------------- |
|
|
239
|
-
| 100.0% | 8 | `convert` | `blib2to3/pytree.py` |
|
|
240
|
-
|
|
241
|
-
##### `generate_tokens` (`blib2to3/pgen2/tokenize.py`)
|
|
242
|
-
|
|
243
|
-
| % | Samples | Caller | Location |
|
|
244
|
-
| -----: | ------: | ---------- | -------------------------- |
|
|
245
|
-
| 100.0% | 7 | `__next__` | `blib2to3/pgen2/driver.py` |
|
|
246
|
-
|
|
247
|
-
##### `normalize_trailing_prefix` (`black/comments.py`)
|
|
248
|
-
|
|
249
|
-
| % | Samples | Caller | Location |
|
|
250
|
-
| -----: | ------: | ------------------- | ------------------- |
|
|
251
|
-
| 100.0% | 6 | `generate_comments` | `black/comments.py` |
|
|
252
|
-
|
|
253
|
-
##### `__str__` (`black/lines.py`)
|
|
254
|
-
|
|
255
|
-
| % | Samples | Caller | Location |
|
|
256
|
-
| ----: | ------: | ------------------ | ------------------- |
|
|
257
|
-
| 60.0% | 3 | `line_to_string` | `black/lines.py` |
|
|
258
|
-
| 40.0% | 2 | `_format_str_once` | `black/__init__.py` |
|
|
259
|
-
|
|
260
|
-
##### `hug_power_op` (`black/trans.py`)
|
|
261
|
-
|
|
262
|
-
| % | Samples | Caller | Location |
|
|
263
|
-
| ----: | ------: | ----------------------------------- | ------------------ |
|
|
264
|
-
| 80.0% | 4 | `_hugging_power_ops_line_to_string` | `black/linegen.py` |
|
|
265
|
-
| 20.0% | 1 | `run_transformer` | `black/linegen.py` |
|
|
266
|
-
|
|
267
|
-
##### `visit` (`black/nodes.py`)
|
|
268
|
-
|
|
269
|
-
| % | Samples | Caller | Location |
|
|
270
|
-
| -----: | ------: | --------------- | ---------------- |
|
|
271
|
-
| 100.0% | 4 | `visit_default` | `black/nodes.py` |
|
|
272
|
-
|
|
273
|
-
##### `prev_sibling` (`blib2to3/pytree.py`)
|
|
274
|
-
|
|
275
|
-
| % | Samples | Caller | Location |
|
|
276
|
-
| ----: | ------: | ------------------- | ---------------- |
|
|
277
|
-
| 75.0% | 3 | `preceding_leaf` | `black/nodes.py` |
|
|
278
|
-
| 25.0% | 1 | `prev_siblings_are` | `black/nodes.py` |
|
|
279
|
-
|
|
280
|
-
##### `_stringify_ast` (`black/parsing.py`)
|
|
281
|
-
|
|
282
|
-
| % | Samples | Caller | Location |
|
|
283
|
-
| -----: | ------: | -------------------------------- | ------------------ |
|
|
284
|
-
| 100.0% | 4 | `_stringify_ast_with_new_parent` | `black/parsing.py` |
|
|
285
|
-
|
|
286
|
-
##### `normalize_invisible_parens` (`black/linegen.py`)
|
|
287
|
-
|
|
288
|
-
| % | Samples | Caller | Location |
|
|
289
|
-
| -----: | ------: | ------------ | ------------------ |
|
|
290
|
-
| 100.0% | 4 | `visit_stmt` | `black/linegen.py` |
|
|
291
|
-
|
|
292
|
-
##### `transform_line` (`black/linegen.py`)
|
|
293
|
-
|
|
294
|
-
| % | Samples | Caller | Location |
|
|
295
|
-
| ----: | ------: | ------------------ | ------------------- |
|
|
296
|
-
| 75.0% | 3 | `_format_str_once` | `black/__init__.py` |
|
|
297
|
-
| 25.0% | 1 | `run_transformer` | `black/linegen.py` |
|
|
298
|
-
|
|
299
|
-
##### `convert` (`blib2to3/pytree.py`)
|
|
300
|
-
|
|
301
|
-
| % | Samples | Caller | Location |
|
|
302
|
-
| ----: | ------: | ------- | ------------------------- |
|
|
303
|
-
| 75.0% | 3 | `pop` | `blib2to3/pgen2/parse.py` |
|
|
304
|
-
| 25.0% | 1 | `shift` | `blib2to3/pgen2/parse.py` |
|
|
305
|
-
|
|
306
|
-
##### `get_features_used` (`black/__init__.py`)
|
|
307
|
-
|
|
308
|
-
| % | Samples | Caller | Location |
|
|
309
|
-
| -----: | ------: | ------------------------ | ------------------- |
|
|
310
|
-
| 100.0% | 4 | `detect_target_versions` | `black/__init__.py` |
|
|
311
|
-
|
|
312
|
-
##### `current` (`blib2to3/pgen2/tokenize.py`)
|
|
313
|
-
|
|
314
|
-
| % | Samples | Caller | Location |
|
|
315
|
-
| -----: | ------: | ----------------- | ---------------------------- |
|
|
316
|
-
| 100.0% | 4 | `generate_tokens` | `blib2to3/pgen2/tokenize.py` |
|
|
317
|
-
|
|
318
|
-
##### `generate_comments` (`black/comments.py`)
|
|
319
|
-
|
|
320
|
-
| % | Samples | Caller | Location |
|
|
321
|
-
| -----: | ------: | --------------- | ------------------ |
|
|
322
|
-
| 100.0% | 3 | `visit_default` | `black/linegen.py` |
|
|
323
|
-
|
|
324
|
-
##### `whitespace` (`black/nodes.py`)
|
|
325
|
-
|
|
326
|
-
| % | Samples | Caller | Location |
|
|
327
|
-
| -----: | ------: | -------- | ---------------- |
|
|
328
|
-
| 100.0% | 3 | `append` | `black/lines.py` |
|
|
329
|
-
|
|
330
|
-
### Total samples
|
|
331
|
-
|
|
332
|
-
Functions ranked by total samples taken in the function and all its callees.
|
|
333
|
-
|
|
334
|
-
| % | Samples | Function | Location |
|
|
335
|
-
| ----: | ------: | --------------------------------- | -------------------------- |
|
|
336
|
-
| 92.1% | 174 | `format_file_contents` | `black/__init__.py` |
|
|
337
|
-
| 92.1% | 174 | `format_file_in_place` | `black/__init__.py` |
|
|
338
|
-
| 92.1% | 174 | `reformat_one` | `black/__init__.py` |
|
|
339
|
-
| 92.1% | 174 | `main` | `black/__init__.py` |
|
|
340
|
-
| 92.1% | 174 | `new_func` | `click/decorators.py` |
|
|
341
|
-
| 92.1% | 174 | `invoke` | `click/core.py` |
|
|
342
|
-
| 92.1% | 174 | `main` | `click/core.py` |
|
|
343
|
-
| 92.1% | 174 | `__call__` | `click/core.py` |
|
|
344
|
-
| 92.1% | 174 | `patched_main` | `black/__init__.py` |
|
|
345
|
-
| 92.1% | 174 | `<module>` | `black/__main__.py` |
|
|
346
|
-
| 82.0% | 155 | `_format_str_once` | `black/__init__.py` |
|
|
347
|
-
| 59.8% | 113 | `format_str` | `black/__init__.py` |
|
|
348
|
-
| 35.4% | 67 | `visit_default` | `black/linegen.py` |
|
|
349
|
-
| 35.4% | 67 | `visit` | `black/nodes.py` |
|
|
350
|
-
| 35.4% | 67 | `visit_default` | `black/nodes.py` |
|
|
351
|
-
| 34.4% | 65 | `visit_stmt` | `black/linegen.py` |
|
|
352
|
-
| 34.4% | 65 | `visit_funcdef` | `black/linegen.py` |
|
|
353
|
-
| 33.9% | 64 | `visit_suite` | `black/linegen.py` |
|
|
354
|
-
| 32.3% | 61 | `check_stability_and_equivalence` | `black/__init__.py` |
|
|
355
|
-
| 29.6% | 56 | `parse_tokens` | `blib2to3/pgen2/driver.py` |
|
|
356
|
-
|
|
357
|
-
#### Callees
|
|
358
|
-
|
|
359
|
-
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.
|
|
360
|
-
|
|
361
|
-
##### `format_file_contents` (`black/__init__.py`)
|
|
362
|
-
|
|
363
|
-
| % | Samples | Callee | Location |
|
|
364
|
-
| ----: | ------: | --------------------------------- | ------------------- |
|
|
365
|
-
| 64.9% | 113 | `format_str` | `black/__init__.py` |
|
|
366
|
-
| 35.1% | 61 | `check_stability_and_equivalence` | `black/__init__.py` |
|
|
367
|
-
|
|
368
|
-
##### `format_file_in_place` (`black/__init__.py`)
|
|
369
|
-
|
|
370
|
-
| % | Samples | Callee | Location |
|
|
371
|
-
| -----: | ------: | ---------------------- | ------------------- |
|
|
372
|
-
| 100.0% | 174 | `format_file_contents` | `black/__init__.py` |
|
|
373
|
-
|
|
374
|
-
##### `reformat_one` (`black/__init__.py`)
|
|
375
|
-
|
|
376
|
-
| % | Samples | Callee | Location |
|
|
377
|
-
| -----: | ------: | ---------------------- | ------------------- |
|
|
378
|
-
| 100.0% | 174 | `format_file_in_place` | `black/__init__.py` |
|
|
379
|
-
|
|
380
|
-
##### `main` (`black/__init__.py`)
|
|
381
|
-
|
|
382
|
-
| % | Samples | Callee | Location |
|
|
383
|
-
| -----: | ------: | -------------- | ------------------- |
|
|
384
|
-
| 100.0% | 174 | `reformat_one` | `black/__init__.py` |
|
|
385
|
-
|
|
386
|
-
##### `new_func` (`click/decorators.py`)
|
|
387
|
-
|
|
388
|
-
| % | Samples | Callee | Location |
|
|
389
|
-
| -----: | ------: | ------ | ------------------- |
|
|
390
|
-
| 100.0% | 174 | `main` | `black/__init__.py` |
|
|
391
|
-
|
|
392
|
-
##### `invoke` (`click/core.py`)
|
|
393
|
-
|
|
394
|
-
| % | Samples | Callee | Location |
|
|
395
|
-
| -----: | ------: | ---------- | --------------------- |
|
|
396
|
-
| 100.0% | 174 | `new_func` | `click/decorators.py` |
|
|
397
|
-
| 100.0% | 174 | `invoke` | `click/core.py` |
|
|
398
|
-
|
|
399
|
-
##### `main` (`click/core.py`)
|
|
400
|
-
|
|
401
|
-
| % | Samples | Callee | Location |
|
|
402
|
-
| -----: | ------: | -------- | --------------- |
|
|
403
|
-
| 100.0% | 174 | `invoke` | `click/core.py` |
|
|
404
|
-
|
|
405
|
-
##### `__call__` (`click/core.py`)
|
|
406
|
-
|
|
407
|
-
| % | Samples | Callee | Location |
|
|
408
|
-
| -----: | ------: | ------ | --------------- |
|
|
409
|
-
| 100.0% | 174 | `main` | `click/core.py` |
|
|
410
|
-
|
|
411
|
-
##### `patched_main` (`black/__init__.py`)
|
|
412
|
-
|
|
413
|
-
| % | Samples | Callee | Location |
|
|
414
|
-
| -----: | ------: | ---------- | --------------- |
|
|
415
|
-
| 100.0% | 174 | `__call__` | `click/core.py` |
|
|
416
|
-
|
|
417
|
-
##### `<module>` (`black/__main__.py`)
|
|
418
|
-
|
|
419
|
-
| % | Samples | Callee | Location |
|
|
420
|
-
| -----: | ------: | -------------- | ------------------- |
|
|
421
|
-
| 100.0% | 174 | `patched_main` | `black/__init__.py` |
|
|
422
|
-
|
|
423
|
-
##### `_format_str_once` (`black/__init__.py`)
|
|
424
|
-
|
|
425
|
-
| % | Samples | Callee | Location |
|
|
426
|
-
| ----: | ------: | ------------------------ | ------------------- |
|
|
427
|
-
| 43.2% | 67 | `visit` | `black/nodes.py` |
|
|
428
|
-
| 36.1% | 56 | `lib2to3_parse` | `black/parsing.py` |
|
|
429
|
-
| 10.3% | 16 | `transform_line` | `black/linegen.py` |
|
|
430
|
-
| 3.2% | 5 | `normalize_fmt_off` | `black/comments.py` |
|
|
431
|
-
| 3.2% | 5 | `detect_target_versions` | `black/__init__.py` |
|
|
432
|
-
|
|
433
|
-
##### `format_str` (`black/__init__.py`)
|
|
434
|
-
|
|
435
|
-
| % | Samples | Callee | Location |
|
|
436
|
-
| -----: | ------: | ------------------ | ------------------- |
|
|
437
|
-
| 100.0% | 113 | `_format_str_once` | `black/__init__.py` |
|
|
438
|
-
|
|
439
|
-
##### `visit_default` (`black/linegen.py`)
|
|
440
|
-
|
|
441
|
-
| % | Samples | Callee | Location |
|
|
442
|
-
| -----: | ------: | ------------------- | ------------------- |
|
|
443
|
-
| 100.0% | 67 | `visit_default` | `black/nodes.py` |
|
|
444
|
-
| 37.3% | 25 | `append` | `black/lines.py` |
|
|
445
|
-
| 19.4% | 13 | `generate_comments` | `black/comments.py` |
|
|
446
|
-
| 3.0% | 2 | `any_open_brackets` | `black/brackets.py` |
|
|
447
|
-
|
|
448
|
-
##### `visit` (`black/nodes.py`)
|
|
449
|
-
|
|
450
|
-
| % | Samples | Callee | Location |
|
|
451
|
-
| -----: | ------: | ------------------- | ------------------ |
|
|
452
|
-
| 100.0% | 67 | `visit_default` | `black/linegen.py` |
|
|
453
|
-
| 97.0% | 65 | `visit_stmt` | `black/linegen.py` |
|
|
454
|
-
| 97.0% | 65 | `visit_funcdef` | `black/linegen.py` |
|
|
455
|
-
| 95.5% | 64 | `visit_suite` | `black/linegen.py` |
|
|
456
|
-
| 56.7% | 38 | `visit_simple_stmt` | `black/linegen.py` |
|
|
457
|
-
|
|
458
|
-
##### `visit_default` (`black/nodes.py`)
|
|
459
|
-
|
|
460
|
-
| % | Samples | Callee | Location |
|
|
461
|
-
| -----: | ------: | ------- | ---------------- |
|
|
462
|
-
| 100.0% | 67 | `visit` | `black/nodes.py` |
|
|
463
|
-
|
|
464
|
-
##### `visit_stmt` (`black/linegen.py`)
|
|
465
|
-
|
|
466
|
-
| % | Samples | Callee | Location |
|
|
467
|
-
| -----: | ------: | ---------------------------- | ------------------ |
|
|
468
|
-
| 100.0% | 65 | `visit` | `black/nodes.py` |
|
|
469
|
-
| 9.2% | 6 | `normalize_invisible_parens` | `black/linegen.py` |
|
|
470
|
-
| 1.5% | 1 | `line` | `black/linegen.py` |
|
|
471
|
-
|
|
472
|
-
##### `visit_funcdef` (`black/linegen.py`)
|
|
473
|
-
|
|
474
|
-
| % | Samples | Callee | Location |
|
|
475
|
-
| -----: | ------: | ------- | ---------------- |
|
|
476
|
-
| 100.0% | 65 | `visit` | `black/nodes.py` |
|
|
477
|
-
|
|
478
|
-
##### `visit_suite` (`black/linegen.py`)
|
|
479
|
-
|
|
480
|
-
| % | Samples | Callee | Location |
|
|
481
|
-
| -----: | ------: | --------------- | ------------------ |
|
|
482
|
-
| 100.0% | 64 | `visit_default` | `black/linegen.py` |
|
|
483
|
-
|
|
484
|
-
##### `check_stability_and_equivalence` (`black/__init__.py`)
|
|
485
|
-
|
|
486
|
-
| % | Samples | Callee | Location |
|
|
487
|
-
| ----: | ------: | ------------------- | ------------------- |
|
|
488
|
-
| 70.5% | 43 | `assert_stable` | `black/__init__.py` |
|
|
489
|
-
| 29.5% | 18 | `assert_equivalent` | `black/__init__.py` |
|
|
490
|
-
|
|
491
|
-
##### `parse_tokens` (`blib2to3/pgen2/driver.py`)
|
|
492
|
-
|
|
493
|
-
| % | Samples | Callee | Location |
|
|
494
|
-
| ----: | ------: | ---------- | -------------------------- |
|
|
495
|
-
| 76.8% | 43 | `addtoken` | `blib2to3/pgen2/parse.py` |
|
|
496
|
-
| 19.6% | 11 | `__next__` | `blib2to3/pgen2/driver.py` |
|
|
497
|
-
| 1.8% | 1 | `debug` | `logging/__init__.py` |
|
|
498
|
-
|
|
499
|
-
## Hottest call stacks
|
|
500
|
-
|
|
501
|
-
Call stacks ranked by samples taken in their leaf frame.
|
|
502
|
-
|
|
503
|
-
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`)
|
|
504
|
-
|
|
505
|
-
| % | Samples | Call stack |
|
|
506
|
-
| ---: | ------: | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
507
|
-
| 6.3% | 12 | `_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` |
|
|
508
|
-
| 4.8% | 9 | `parse` (`ast.py`) ← `_parse_single_version` (`black/parsing.py`) ← `parse_ast` ← `assert_equivalent` (`black/__init__.py`) ← `check_stability_and_equivalence` |
|
|
509
|
-
| 4.2% | 8 | `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` |
|
|
510
|
-
| 3.7% | 7 | `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` |
|
|
511
|
-
| 3.7% | 7 | `_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` |
|
|
512
|
-
| 3.7% | 7 | `__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`) ← `format_str` |
|
|
513
|
-
| 3.2% | 6 | `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_funcdef` (`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` |
|
|
514
|
-
| 2.1% | 4 | `hug_power_op` (`black/trans.py`) ← `_hugging_power_ops_line_to_string` (`black/linegen.py`) ← `transform_line` ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
515
|
-
| 2.1% | 4 | `current` (`blib2to3/pgen2/tokenize.py`) ← `generate_tokens` ← `__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` |
|
|
516
|
-
| 1.6% | 3 | `_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` ← `_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` |
|
|
517
|
-
| 1.6% | 3 | `transform_line` (`black/linegen.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
518
|
-
| 1.6% | 3 | `get_features_used` (`black/__init__.py`) ← `detect_target_versions` ← `_format_str_once` ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
519
|
-
| 1.6% | 3 | `assert_equivalent` (`black/__init__.py`) ← `check_stability_and_equivalence` |
|
|
520
|
-
| 1.6% | 3 | `convert` (`blib2to3/pytree.py`) ← `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` |
|
|
521
|
-
| 1.6% | 3 | `convert_one_fmt_off_pair` (`black/comments.py`) ← `normalize_fmt_off` ← `_format_str_once` (`black/__init__.py`) ← `assert_stable` ← `check_stability_and_equivalence` |
|
|
522
|
-
| 1.1% | 2 | `prev_sibling` (`blib2to3/pytree.py`) ← `preceding_leaf` (`black/nodes.py`) ← `whitespace` ← `append` (`black/lines.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` (`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` (`black/nodes.py`) ← `_format_str_once` (`black/__init__.py`) ← `format_str` |
|
|
523
|
-
| 1.1% | 2 | `mark` (`black/brackets.py`) ← `append` (`black/lines.py`) ← `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_suite` ← `visit` (`black/nodes.py`) ← `visit_funcdef` (`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` |
|
|
524
|
-
| 1.1% | 2 | `normalize_invisible_parens` (`black/linegen.py`) ← `visit_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`) ← `format_str` |
|
|
525
|
-
| 1.1% | 2 | `append` (`black/lines.py`) ← `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_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_decorators` (`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` |
|
|
526
|
-
| 1.1% | 2 | `visit` (`black/nodes.py`) ← `visit_default` ← `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` (`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` |
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Sampling profile
|
|
2
|
-
|
|
3
|
-
Took 1.79s over 179 samples (10.0ms per sample).
|
|
4
|
-
|
|
5
|
-
| Category | % | Time | Samples |
|
|
6
|
-
| ----------- | ----: | ------: | ------: |
|
|
7
|
-
| third-party | 92.2% | 1.65s | 165 |
|
|
8
|
-
| stdlib | 7.3% | 130.0ms | 13 |
|
|
9
|
-
| ours | 0.6% | 10.0ms | 1 |
|
|
10
|
-
|
|
11
|
-
## Hottest functions
|
|
12
|
-
|
|
13
|
-
### Self time
|
|
14
|
-
|
|
15
|
-
Functions ranked by time spent directly in the function body, excluding callees.
|
|
16
|
-
|
|
17
|
-
| % | Time | Samples | Function | Location |
|
|
18
|
-
| ---: | -----: | ------: | ---------- | ---------- |
|
|
19
|
-
| 0.6% | 10.0ms | 1 | `__init__` | `<string>` |
|
|
20
|
-
|
|
21
|
-
#### Lines
|
|
22
|
-
|
|
23
|
-
Lines ranked by contribution to each function's self time.
|
|
24
|
-
|
|
25
|
-
##### `__init__` (`<string>`)
|
|
26
|
-
|
|
27
|
-
| % | Time | Samples | Location |
|
|
28
|
-
| -----: | -----: | ------: | ------------ |
|
|
29
|
-
| 100.0% | 10.0ms | 1 | `<string>:7` |
|
|
30
|
-
|
|
31
|
-
### Total time
|
|
32
|
-
|
|
33
|
-
Functions ranked by total time spent in the function and all its callees.
|
|
34
|
-
|
|
35
|
-
| % | Time | Samples | Function | Location |
|
|
36
|
-
| ---: | -----: | ------: | ---------- | ---------- |
|
|
37
|
-
| 0.6% | 10.0ms | 1 | `__init__` | `<string>` |
|