profiler-md 0.5.0 → 0.7.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.
Files changed (235) hide show
  1. package/dist/cli/index.mjs +14155 -5081
  2. package/dist/index.d.mts +1312 -263
  3. package/dist/index.js +2 -2
  4. package/docs/api.md +138 -0
  5. package/docs/formats/callgrind.md +25 -0
  6. package/docs/formats/collapsed.md +5 -3
  7. package/docs/formats/ghc-eventlog.md +20 -0
  8. package/docs/formats/ghc-json-profile.md +23 -0
  9. package/docs/formats/hprof.md +21 -0
  10. package/docs/formats/jfr.md +3 -3
  11. package/docs/formats/jsc-heap-snapshot.md +11 -5
  12. package/docs/formats/memray.md +30 -0
  13. package/docs/formats/perf.md +74 -0
  14. package/docs/formats/pprof.md +10 -6
  15. package/docs/formats/speedscope.md +7 -5
  16. package/docs/formats/systing.md +27 -0
  17. package/docs/formats/v8-cpu-profile.md +4 -3
  18. package/docs/formats/v8-heap-profile.md +8 -5
  19. package/docs/formats/v8-heap-snapshot.md +10 -5
  20. package/docs/formats/webkit-timeline-recording.md +6 -0
  21. package/docs/languages/c.md +138 -18
  22. package/docs/languages/csharp.md +7 -7
  23. package/docs/languages/elixir.md +22 -15
  24. package/docs/languages/fortran.md +141 -0
  25. package/docs/languages/go.md +36 -13
  26. package/docs/languages/haskell.md +134 -0
  27. package/docs/languages/java.md +89 -34
  28. package/docs/languages/javascript.md +37 -31
  29. package/docs/languages/julia.md +96 -14
  30. package/docs/languages/php.md +10 -4
  31. package/docs/languages/python.md +121 -15
  32. package/docs/languages/ruby.md +19 -22
  33. package/docs/languages/rust.md +40 -10
  34. package/docs/languages/swift.md +135 -0
  35. package/docs/languages/zig.md +155 -0
  36. package/package.json +47 -46
  37. package/readme.md +306 -242
  38. package/skills/profile-optimize/SKILL.md +162 -0
  39. package/docs/languages/cpp.md +0 -160
  40. package/docs/languages/erlang.md +0 -46
  41. package/docs/languages/fsharp.md +0 -52
  42. package/docs/languages/kotlin.md +0 -170
  43. package/docs/languages/typescript.md +0 -276
  44. package/examples/output/c.gperftools.cpu.base.pprof.md +0 -324
  45. package/examples/output/c.gperftools.cpu.current.pprof.md +0 -271
  46. package/examples/output/c.gperftools.cpu.diff.pprof.md +0 -98
  47. package/examples/output/c.gperftools.heap.base.pprof.md +0 -362
  48. package/examples/output/c.gperftools.heap.current.pprof.md +0 -362
  49. package/examples/output/c.gperftools.heap.diff.pprof.md +0 -28
  50. package/examples/output/cpp.gperftools.cpu.base.pprof.md +0 -557
  51. package/examples/output/cpp.gperftools.cpu.current.pprof.md +0 -573
  52. package/examples/output/cpp.gperftools.cpu.diff.pprof.md +0 -122
  53. package/examples/output/cpp.gperftools.heap.base.pprof.md +0 -67
  54. package/examples/output/cpp.gperftools.heap.current.pprof.md +0 -67
  55. package/examples/output/cpp.gperftools.heap.diff.pprof.md +0 -19
  56. package/examples/output/csharp.dotnet-trace.base.speedscope.json.md +0 -411
  57. package/examples/output/csharp.dotnet-trace.current.speedscope.json.md +0 -412
  58. package/examples/output/csharp.dotnet-trace.diff.speedscope.json.md +0 -122
  59. package/examples/output/elixir.eflambe.cpu.base.collapsed.md +0 -399
  60. package/examples/output/elixir.eflambe.cpu.current.collapsed.md +0 -398
  61. package/examples/output/elixir.eflambe.cpu.diff.collapsed.md +0 -92
  62. package/examples/output/erlang.eflambe.cpu.base.collapsed.md +0 -147
  63. package/examples/output/erlang.eflambe.cpu.current.collapsed.md +0 -147
  64. package/examples/output/erlang.eflambe.cpu.diff.collapsed.md +0 -18
  65. package/examples/output/fsharp.dotnet-trace.base.speedscope.json.md +0 -324
  66. package/examples/output/fsharp.dotnet-trace.current.speedscope.json.md +0 -314
  67. package/examples/output/fsharp.dotnet-trace.diff.speedscope.json.md +0 -119
  68. package/examples/output/go.pprof.block.base.pprof.md +0 -86
  69. package/examples/output/go.pprof.block.current.pprof.md +0 -83
  70. package/examples/output/go.pprof.block.diff.pprof.md +0 -42
  71. package/examples/output/go.pprof.cpu.base.pprof.md +0 -81
  72. package/examples/output/go.pprof.cpu.current.pprof.md +0 -70
  73. package/examples/output/go.pprof.cpu.diff.pprof.md +0 -52
  74. package/examples/output/go.pprof.goroutine.base.pprof.md +0 -43
  75. package/examples/output/go.pprof.goroutine.current.pprof.md +0 -43
  76. package/examples/output/go.pprof.goroutine.diff.pprof.md +0 -13
  77. package/examples/output/go.pprof.heap-alloc.base.pprof.md +0 -154
  78. package/examples/output/go.pprof.heap-alloc.current.pprof.md +0 -146
  79. package/examples/output/go.pprof.heap-alloc.diff.pprof.md +0 -67
  80. package/examples/output/go.pprof.heap.base.pprof.md +0 -154
  81. package/examples/output/go.pprof.heap.current.pprof.md +0 -146
  82. package/examples/output/go.pprof.heap.diff.pprof.md +0 -67
  83. package/examples/output/go.pprof.mutex.base.pprof.md +0 -55
  84. package/examples/output/go.pprof.mutex.current.pprof.md +0 -41
  85. package/examples/output/go.pprof.mutex.diff.pprof.md +0 -31
  86. package/examples/output/go.pprof.threadcreate.base.pprof.md +0 -55
  87. package/examples/output/go.pprof.threadcreate.current.pprof.md +0 -55
  88. package/examples/output/go.pprof.threadcreate.diff.pprof.md +0 -19
  89. package/examples/output/java.async-profiler.all.base.jfr.md +0 -1071
  90. package/examples/output/java.async-profiler.all.current.jfr.md +0 -1007
  91. package/examples/output/java.async-profiler.all.diff.jfr.md +0 -268
  92. package/examples/output/java.async-profiler.alloc.base.jfr.md +0 -425
  93. package/examples/output/java.async-profiler.alloc.current.jfr.md +0 -413
  94. package/examples/output/java.async-profiler.alloc.diff.jfr.md +0 -99
  95. package/examples/output/java.async-profiler.cpu.base.collapsed.md +0 -367
  96. package/examples/output/java.async-profiler.cpu.base.jfr.md +0 -485
  97. package/examples/output/java.async-profiler.cpu.current.collapsed.md +0 -355
  98. package/examples/output/java.async-profiler.cpu.current.jfr.md +0 -488
  99. package/examples/output/java.async-profiler.cpu.diff.collapsed.md +0 -117
  100. package/examples/output/java.async-profiler.cpu.diff.jfr.md +0 -118
  101. package/examples/output/java.async-profiler.live.base.jfr.md +0 -697
  102. package/examples/output/java.async-profiler.live.current.jfr.md +0 -684
  103. package/examples/output/java.async-profiler.live.diff.jfr.md +0 -191
  104. package/examples/output/java.async-profiler.lock.base.jfr.md +0 -140
  105. package/examples/output/java.async-profiler.lock.current.jfr.md +0 -108
  106. package/examples/output/java.async-profiler.lock.diff.jfr.md +0 -44
  107. package/examples/output/java.async-profiler.nativemem.base.jfr.md +0 -222
  108. package/examples/output/java.async-profiler.nativemem.current.jfr.md +0 -222
  109. package/examples/output/java.async-profiler.nativemem.diff.jfr.md +0 -65
  110. package/examples/output/java.async-profiler.wall.base.jfr.md +0 -400
  111. package/examples/output/java.async-profiler.wall.current.jfr.md +0 -420
  112. package/examples/output/java.async-profiler.wall.diff.jfr.md +0 -94
  113. package/examples/output/java.jdk.all.base.jfr.md +0 -1024
  114. package/examples/output/java.jdk.all.current.jfr.md +0 -1010
  115. package/examples/output/java.jdk.all.diff.jfr.md +0 -311
  116. package/examples/output/java.jdk.alloc.base.jfr.md +0 -1024
  117. package/examples/output/java.jdk.alloc.current.jfr.md +0 -1046
  118. package/examples/output/java.jdk.alloc.diff.jfr.md +0 -312
  119. package/examples/output/java.jdk.cpu.base.jfr.md +0 -1023
  120. package/examples/output/java.jdk.cpu.current.jfr.md +0 -1039
  121. package/examples/output/java.jdk.cpu.diff.jfr.md +0 -285
  122. package/examples/output/java.jdk.live.base.jfr.md +0 -1029
  123. package/examples/output/java.jdk.live.current.jfr.md +0 -1035
  124. package/examples/output/java.jdk.live.diff.jfr.md +0 -289
  125. package/examples/output/java.jdk.lock.base.jfr.md +0 -1040
  126. package/examples/output/java.jdk.lock.current.jfr.md +0 -1051
  127. package/examples/output/java.jdk.lock.diff.jfr.md +0 -339
  128. package/examples/output/javascript.bun.base.cpuprofile.md +0 -73
  129. package/examples/output/javascript.bun.base.heapsnapshot.md +0 -608
  130. package/examples/output/javascript.bun.base.jsc-heap-snapshot.json.md +0 -480
  131. package/examples/output/javascript.bun.current.cpuprofile.md +0 -73
  132. package/examples/output/javascript.bun.current.heapsnapshot.md +0 -608
  133. package/examples/output/javascript.bun.current.jsc-heap-snapshot.json.md +0 -480
  134. package/examples/output/javascript.bun.diff.cpuprofile.md +0 -54
  135. package/examples/output/javascript.bun.diff.heapsnapshot.md +0 -48
  136. package/examples/output/javascript.bun.diff.jsc-heap-snapshot.json.md +0 -62
  137. package/examples/output/javascript.chrome.base.cpuprofile.md +0 -163
  138. package/examples/output/javascript.chrome.base.heapprofile.md +0 -32
  139. package/examples/output/javascript.chrome.base.heapsnapshot.md +0 -649
  140. package/examples/output/javascript.chrome.current.cpuprofile.md +0 -149
  141. package/examples/output/javascript.chrome.current.heapprofile.md +0 -32
  142. package/examples/output/javascript.chrome.current.heapsnapshot.md +0 -647
  143. package/examples/output/javascript.chrome.diff.cpuprofile.md +0 -65
  144. package/examples/output/javascript.chrome.diff.heapprofile.md +0 -50
  145. package/examples/output/javascript.chrome.diff.heapsnapshot.md +0 -73
  146. package/examples/output/javascript.deno.base.cpuprofile.md +0 -122
  147. package/examples/output/javascript.deno.current.cpuprofile.md +0 -114
  148. package/examples/output/javascript.deno.diff.cpuprofile.md +0 -66
  149. package/examples/output/javascript.node.base.cpuprofile.md +0 -136
  150. package/examples/output/javascript.node.base.heapprofile.md +0 -56
  151. package/examples/output/javascript.node.base.heapsnapshot.md +0 -660
  152. package/examples/output/javascript.node.current.cpuprofile.md +0 -119
  153. package/examples/output/javascript.node.current.heapprofile.md +0 -52
  154. package/examples/output/javascript.node.current.heapsnapshot.md +0 -660
  155. package/examples/output/javascript.node.diff.cpuprofile.md +0 -70
  156. package/examples/output/javascript.node.diff.heapprofile.md +0 -34
  157. package/examples/output/javascript.node.diff.heapsnapshot.md +0 -39
  158. package/examples/output/javascript.pprof.cpu.base.pprof.md +0 -104
  159. package/examples/output/javascript.pprof.cpu.current.pprof.md +0 -120
  160. package/examples/output/javascript.pprof.cpu.diff.pprof.md +0 -63
  161. package/examples/output/javascript.pprof.heap.base.pprof.md +0 -86
  162. package/examples/output/javascript.pprof.heap.current.pprof.md +0 -57
  163. package/examples/output/javascript.pprof.heap.diff.pprof.md +0 -42
  164. package/examples/output/javascript.safari.base.webkit-timeline-recording.json.md +0 -388
  165. package/examples/output/javascript.safari.current.webkit-timeline-recording.json.md +0 -378
  166. package/examples/output/javascript.safari.diff.webkit-timeline-recording.json.md +0 -122
  167. package/examples/output/julia.pprof-jl.alloc.base.pprof.md +0 -124
  168. package/examples/output/julia.pprof-jl.alloc.current.pprof.md +0 -126
  169. package/examples/output/julia.pprof-jl.alloc.diff.pprof.md +0 -30
  170. package/examples/output/julia.pprof-jl.cpu.base.pprof.md +0 -177
  171. package/examples/output/julia.pprof-jl.cpu.current.pprof.md +0 -179
  172. package/examples/output/julia.pprof-jl.cpu.diff.pprof.md +0 -64
  173. package/examples/output/kotlin.async-profiler.all.base.jfr.md +0 -920
  174. package/examples/output/kotlin.async-profiler.all.current.jfr.md +0 -925
  175. package/examples/output/kotlin.async-profiler.all.diff.jfr.md +0 -247
  176. package/examples/output/kotlin.async-profiler.alloc.base.jfr.md +0 -467
  177. package/examples/output/kotlin.async-profiler.alloc.current.jfr.md +0 -473
  178. package/examples/output/kotlin.async-profiler.alloc.diff.jfr.md +0 -122
  179. package/examples/output/kotlin.async-profiler.cpu.base.collapsed.md +0 -371
  180. package/examples/output/kotlin.async-profiler.cpu.base.jfr.md +0 -472
  181. package/examples/output/kotlin.async-profiler.cpu.current.collapsed.md +0 -370
  182. package/examples/output/kotlin.async-profiler.cpu.current.jfr.md +0 -445
  183. package/examples/output/kotlin.async-profiler.cpu.diff.collapsed.md +0 -124
  184. package/examples/output/kotlin.async-profiler.cpu.diff.jfr.md +0 -125
  185. package/examples/output/kotlin.async-profiler.live.base.jfr.md +0 -934
  186. package/examples/output/kotlin.async-profiler.live.current.jfr.md +0 -917
  187. package/examples/output/kotlin.async-profiler.live.diff.jfr.md +0 -245
  188. package/examples/output/kotlin.async-profiler.lock.base.jfr.md +0 -1
  189. package/examples/output/kotlin.async-profiler.lock.current.jfr.md +0 -1
  190. package/examples/output/kotlin.async-profiler.lock.diff.jfr.md +0 -1
  191. package/examples/output/kotlin.async-profiler.nativemem.base.jfr.md +0 -234
  192. package/examples/output/kotlin.async-profiler.nativemem.current.jfr.md +0 -234
  193. package/examples/output/kotlin.async-profiler.nativemem.diff.jfr.md +0 -65
  194. package/examples/output/kotlin.async-profiler.wall.base.jfr.md +0 -452
  195. package/examples/output/kotlin.async-profiler.wall.current.jfr.md +0 -457
  196. package/examples/output/kotlin.async-profiler.wall.diff.jfr.md +0 -125
  197. package/examples/output/kotlin.jdk.all.base.jfr.md +0 -1442
  198. package/examples/output/kotlin.jdk.all.current.jfr.md +0 -1343
  199. package/examples/output/kotlin.jdk.all.diff.jfr.md +0 -392
  200. package/examples/output/kotlin.jdk.alloc.base.jfr.md +0 -1418
  201. package/examples/output/kotlin.jdk.alloc.current.jfr.md +0 -1389
  202. package/examples/output/kotlin.jdk.alloc.diff.jfr.md +0 -383
  203. package/examples/output/kotlin.jdk.cpu.base.jfr.md +0 -1406
  204. package/examples/output/kotlin.jdk.cpu.current.jfr.md +0 -1374
  205. package/examples/output/kotlin.jdk.cpu.diff.jfr.md +0 -380
  206. package/examples/output/kotlin.jdk.live.base.jfr.md +0 -1378
  207. package/examples/output/kotlin.jdk.live.current.jfr.md +0 -1311
  208. package/examples/output/kotlin.jdk.live.diff.jfr.md +0 -381
  209. package/examples/output/kotlin.jdk.lock.base.jfr.md +0 -1427
  210. package/examples/output/kotlin.jdk.lock.current.jfr.md +0 -1374
  211. package/examples/output/kotlin.jdk.lock.diff.jfr.md +0 -386
  212. package/examples/output/php.excimer.wall.base.speedscope.json.md +0 -25
  213. package/examples/output/php.excimer.wall.current.speedscope.json.md +0 -25
  214. package/examples/output/php.excimer.wall.diff.speedscope.json.md +0 -29
  215. package/examples/output/python.py-spy.cpu.base.collapsed.md +0 -526
  216. package/examples/output/python.py-spy.cpu.base.speedscope.json.md +0 -37
  217. package/examples/output/python.py-spy.cpu.current.collapsed.md +0 -514
  218. package/examples/output/python.py-spy.cpu.current.speedscope.json.md +0 -37
  219. package/examples/output/python.py-spy.cpu.diff.collapsed.md +0 -122
  220. package/examples/output/python.py-spy.cpu.diff.speedscope.json.md +0 -31
  221. package/examples/output/python.py-spy.wall.base.collapsed.md +0 -527
  222. package/examples/output/python.py-spy.wall.current.collapsed.md +0 -518
  223. package/examples/output/python.py-spy.wall.diff.collapsed.md +0 -122
  224. package/examples/output/ruby.rbspy.cpu.base.collapsed.md +0 -90
  225. package/examples/output/ruby.rbspy.cpu.base.pprof.md +0 -105
  226. package/examples/output/ruby.rbspy.cpu.base.speedscope.json.md +0 -105
  227. package/examples/output/ruby.rbspy.cpu.current.collapsed.md +0 -90
  228. package/examples/output/ruby.rbspy.cpu.current.pprof.md +0 -115
  229. package/examples/output/ruby.rbspy.cpu.current.speedscope.json.md +0 -115
  230. package/examples/output/ruby.rbspy.cpu.diff.collapsed.md +0 -32
  231. package/examples/output/ruby.rbspy.cpu.diff.pprof.md +0 -44
  232. package/examples/output/ruby.rbspy.cpu.diff.speedscope.json.md +0 -44
  233. package/examples/output/rust.pprof-rs.cpu.base.pprof.md +0 -60
  234. package/examples/output/rust.pprof-rs.cpu.current.pprof.md +0 -60
  235. package/examples/output/rust.pprof-rs.cpu.diff.pprof.md +0 -24
@@ -1,518 +0,0 @@
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` |