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