diff --git a/tests/unit/__snapshots__/test_tree_reporter.ambr b/tests/unit/__snapshots__/test_tree_reporter.ambr deleted file mode 100644 index af01c08ec8..0000000000 --- a/tests/unit/__snapshots__/test_tree_reporter.ambr +++ /dev/null @@ -1,3548 +0,0 @@ -# serializer version: 1 -# name: TestTUILooks.test_allocations_of_different_sizes - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 3.174KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┗━━ ▼ 📂 3.174KB (100.00 %) func1fun1.py:1 -     ┗━━ ▼ 📂 3.110KB (98.00 %) func2fun2.py:2 -         ┗━━ ▼ 📂 3.047KB (96.00 %) func3fun3.py:3 -             ┗━━ ▼ 📂 2.983KB (94.00 %) func4fun4.py:4 -                 ┗━━ ▼ 📂 2.920KB (92.00 %) func5fun5.py:5 -                     ┗━━ ▼ 📂 2.856KB (90.00 %) func6fun6.py:6 -                         ┗━━ ▼ 📂 2.793KB (88.00 %) func7fun7.py:7 -                             ┗━━ ▼ 📂 2.729KB (86.00 %) func8fun8.py:8 -                                 ┗━━ ▼ 📂 2.666KB (84.00 %) func9fun9.py:9 -                                     ┗━━ ▼ 📂 2.603KB (82.00 %) func10fun10.py:10 -                                         ┗━━ ▼ 📂 2.539KB (80.00 %) func11fun11.py:11 -                                             ┗━━ ▼ 📂 2.476KB (78.00 %) func12fun12.py:12 -                                                 ┗━━ ▼ 📂 2.412KB (76.00 %) func13fun13.py:13 -                                                     ┗━━ ▼ 📂 2.349KB (74.00 %) func14fun14.py:14 -                                                         ┗━━ ▼ 📂 2.285KB (72.00 %) func15fun15.py:15 -                                                             ┗━━ ▼ 📂 2.222KB (70.00 %) func16fun16.py:16 -                                                                 ┗━━ ▼ 📂 2.158KB (68.00 %) func17fun17.py:17 -                                                                     ┗━━ ▼ 📂 2.095KB (66.00 %) func18fun18.py:18 -                                                                         ┗━━ ▼ 📂 2.031KB (64.00 %) func19fun19.py:19 -                                                                             ┗━━ ▼ 📂 1.968KB (62.00 %) func20fun20.py:20 -                                                                                 ┗━━ ▼ 📂 1.904KB (60.00 %) func21fun21.py:21 -                                                                                     ┗━━ ▼ 📂 1.841KB (58.00 %) func22fun22.py:22 -                                                                                         ┗━━ ▼ 📂 1.777KB (56.00 %) func23fun23.py:23 -                                                                                             ┗━━ ▼ 📂 1.714KB (54.00 %) func24fun24.py:24 -                                                                                                 ┗━━ ▼ 📂 1.650KB (52.00 %) func25fun25.py:25 -                                                                                                     ┗━━ ▼ 📂 1.587KB (50.00 %) func26fun26.py:26 -                                                                                                         ┗━━ ▼ 📂 1.523KB (48.00 %) func27fun27.py:27 -                                                                                                             ┗━━ ▼ 📂 1.460KB (46.00 %) func28fun28.py:28 -                                                                                                                 ┗━━ ▼ 📂 1.396KB (44.00 %) func29fun29.py:29 -                                                                                                                     ┗━━ ▼ 📂 1.333KB (42.00 %) func30fun30.py:30 -                                                                                                                         ┗━━ ▼ 📂 1.270KB (40.00 %) func31fun31.py:31 -                                                                                                                             ┗━━ ▼ 📂 1.206KB (38.00 %) func32fun32.py:32 -                                                                                                                                 ┗━━ ▼ 📂 1.143KB (36.00 %) func33fun33.py:33 -                                                                                                                                     ┗━━ ▼ 📂 1.079KB (34.00 %) func34fun34.py:34 -                                                                                                                                         ┗━━ ▼ 📂 1.016KB (32.00 %) func35fun35.py:35 -                                                                                                                                             ┗━━ ▼ 📂 975.000B (30.00 %) func36fun36.py:36 -                                                                                                                                                 ┗━━ ▼ 📂 910.000B (28.00 %) func37fun37.py:37 -                                                                                                                                                     ┗━━ ▼ 📂 845.000B (26.00 %) func38fun38.py:38 -                                                                                                                                                         ┗━━ ▼ 📂 780.000B (24.00 %) func39fun39.py:39 -                                                                                                                                                             ┗━━ ▼ 📂 715.000B (22.00 %) func40fun40.py:40 -                                                                                                                                                                 ┗━━ ▼ 📂 650.000B (20.00 %) func41fun41.py:41 -                                                                                                                                                                     ┗━━ ▼ 📂 585.000B (18.00 %) func42fun42.py:42 -                                                                                                                                                                         ┗━━ ▼ 📂 520.000B (16.00 %) func43fun43.py:43 -                                                                                                                                                                             ┗━━ ▼ 📂 455.000B (14.00 %) func44fun44.py:44 -                                                                                                                                                                                 ┗━━ ▼ 📂 390.000B (12.00 %) func45fun45.py:45 -                                                                                                                                                                                     ┗━━ ▼ 📂 325.000B (10.00 %) func46fun46.py:46 -                                                                                                                                                                                         ┗━━ ▼ 📂 260.000B (8.00 %) func47fun47.py:47 -                                                                                                                                                                                             ┗━━ ▼ 📂 195.000B (6.00 %) func48fun48.py:48 -                                                                                                                                                                                                 ┗━━ ▼ 📂 130.000B (4.00 %) func49fun49.py:49 -                                                                                                                                                                                                     ┗━━ 📄 65.000B (2.00 %) func50fun50.py:50 - 💾 Allocations: 50 - - - 📦 Size: 3.174KB - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_basic - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┗━━ ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4 -     ┗━━ ▼ 📂 1.000KB (100.00 %) parentfun.py:8 -         ┗━━ 📄 1.000KB (100.00 %) mefun.py:12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 💾 Allocations: 1 - - - 📦 Size: 1.000KB - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_basic_node_selected_leaf - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - └── ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4import itertools                             -     └── ▼ 📂 1.000KB (100.00 %) parentfun.py:8def generate_primes():                       -         └── 📄 1.000KB (100.00 %) me  fun.py:12    numbers = itertools.count(2)             -     while True:                              -         prime = next(numbers)                -         yield prime                          -         numbers = filter(lambda x, prime=pri - - - - - - - - - - - - - - - - - - - - - - - - 🧭 Function: me - - - 🧭 Location: fun.py:12 - - - 💾 Allocations: 1 - - - 📦 Size: 1.000KB - - - 🧵 Thread: 0x1 - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_basic_node_selected_not_leaf - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - └── ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4import itertools                             -     └── ▼ 📂 1.000KB (100.00 %) parent  fun.py:8def generate_primes():                       - ┗━━ 📄 1.000KB (100.00 %) mefun.py:12    numbers = itertools.count(2)             -     while True:                              -         prime = next(numbers)                -         yield prime                          -         numbers = filter(lambda x, prime=pri - - - - - - - - - - - - - - - - - - - - - - - - 🧭 Function: parent - - - 🧭 Location: fun.py:8 - - - 💾 Allocations: 1 - - - 📦 Size: 1.000KB - - - 🧵 Thread: 0x1 - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_biggest_allocations - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 487.793MB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ├── 📄 999.000KB (0.20 %) function_999fun.py:12 - ├── 📄 998.000KB (0.20 %) function_998fun.py:12 - ├── 📄 997.000KB (0.20 %) function_997fun.py:12 - ├── 📄 996.000KB (0.20 %) function_996fun.py:12 - ├── 📄 995.000KB (0.20 %) function_995fun.py:12 - ├── 📄 994.000KB (0.20 %) function_994fun.py:12 - ├── 📄 993.000KB (0.20 %) function_993fun.py:12 - ├── 📄 992.000KB (0.20 %) function_992fun.py:12 - ├── 📄 991.000KB (0.20 %) function_991fun.py:12 - ├── 📄 990.000KB (0.20 %) function_990fun.py:12 - └── ❓ 478.081MB (98.01 %) 990 allocations from 990 locations below the configured threshold - - - - - - - - - - Only the top 10 allocation locations are shown in the tree. Allocation - locations which individually contributed too little to meet the  - threshold are summarized here. - - You can adjust this threshold to include more allocation locations by  - rerunning this reporter with a larger --biggest-allocs value. - - - 💾 Allocations: 990 - - - 📦 Size: 478.081MB - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_hide_import_system - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┗━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 -     ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 -         ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - 💾 Allocations: 2 - - - 📦 Size: 11.000KB - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Show import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_select_screen - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - └── ▼ 📂 1.000KB (100.00 %) grandparent2fun2.py:4import itertools                             -     └── ▼ 📂 1.000KB (100.00 %) parent2fun2.py:8def generate_primes():                       -         └── 📄 1.000KB (100.00 %) me2  func2.py:4    numbers = itertools.count(2)             -     while True: -         prime = next(numbers)                -         yield prime                          -         numbers = filter(lambda x, prime=pri - - - - - - - - - - - - - - - - - - - - - - - - 🧭 Function: me2 - - - 🧭 Location: func2.py:4 - - - 💾 Allocations: 1 - - - 📦 Size: 1.000KB - - - 🧵 Thread: 0x1 - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_show_uninteresting - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┣━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 - ┃   ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 - ┃       ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 - ┗━━ ▶ 📂 1.000KB (9.09 %) erunpy.py:5 - - - - - - - - - - - - - - - - - - - - - - - - - - - 💾 Allocations: 2 - - - 📦 Size: 11.000KB - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Hide uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_show_uninteresting_and_hide_import_system - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┣━━ ▼ 📂 10.000KB (90.91 %) crunpy.py:5 - ┃   ┗━━ ▼ 📂 10.000KB (90.91 %) brunpy.py:2 - ┃       ┗━━ ▼ 📂 10.000KB (90.91 %) arunpy.py:1 - ┃           ┗━━ 📄 10.000KB (90.91 %) Asome other frame:4 - ┗━━ ▶ 📂 1.000KB (9.09 %) grandparent2fun2.py:4 - - - - - - - - - - - - - - - - - - - - - - - - - - 💾 Allocations: 2 - - - 📦 Size: 11.000KB - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Show import system  u Hide uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_two_chains - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ┣━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 - ┃   ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 - ┃       ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 - ┗━━ ▶ 📂 1.000KB (9.09 %) grandparentfun.py:4 - - - - - - - - - - - - - - - - - - - - - - - - - - - 💾 Allocations: 2 - - - 📦 Size: 11.000KB - - - - - - - - - - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- -# name: TestTUILooks.test_two_chains_after_expanding_second - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TreeApp - - - - - - - - - - ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ - ├── ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4import itertools                             - │   └── ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8def generate_primes():                       - │       └── 📄 10.000KB (90.91 %) me2fun2.py:12    numbers = itertools.count(2)             - └── ▼ 📂 1.000KB (9.09 %) e  fun.py:5    while True:                              - ┗━━ ▼ 📂 1.000KB (9.09 %) dfun.py:4        prime = next(numbers) -     ┗━━ ▼ 📂 1.000KB (9.09 %) cfun.py:3        yield prime                          -         ┗━━ ▼ 📂 1.000KB (9.09 %) bfun.py:2        numbers = filter(lambda x, prime=pri -             ┗━━ 📄 1.000KB (9.09 %) afun.py:1 - - - - - - - - - - - - - - - - - - - - - - - 🧭 Function: e - - - 🧭 Location: fun.py:5 - - - 💾 Allocations: 1 - - - 📦 Size: 1.000KB - - - 🧵 Thread: 0x1 - - - - - - - - - - - - - - - █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ -  q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  - - - - - ''' -# --- diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_allocations_of_different_sizes.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_allocations_of_different_sizes.svg new file mode 100644 index 0000000000..69c5212990 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_allocations_of_different_sizes.svg @@ -0,0 +1,513 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 3.174KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┗━━ ▼ 📂 3.174KB (100.00 %) func1fun1.py:1 +    ┗━━ ▼ 📂 3.110KB (98.00 %) func2fun2.py:2 +        ┗━━ ▼ 📂 3.047KB (96.00 %) func3fun3.py:3 +            ┗━━ ▼ 📂 2.983KB (94.00 %) func4fun4.py:4 +                ┗━━ ▼ 📂 2.920KB (92.00 %) func5fun5.py:5 +                    ┗━━ ▼ 📂 2.856KB (90.00 %) func6fun6.py:6 +                        ┗━━ ▼ 📂 2.793KB (88.00 %) func7fun7.py:7 +                            ┗━━ ▼ 📂 2.729KB (86.00 %) func8fun8.py:8 +                                ┗━━ ▼ 📂 2.666KB (84.00 %) func9fun9.py:9 +                                    ┗━━ ▼ 📂 2.603KB (82.00 %) func10fun10.py:10 +                                        ┗━━ ▼ 📂 2.539KB (80.00 %) func11fun11.py:11 +                                            ┗━━ ▼ 📂 2.476KB (78.00 %) func12fun12.py:12 +                                                ┗━━ ▼ 📂 2.412KB (76.00 %) func13fun13.py:13 +                                                    ┗━━ ▼ 📂 2.349KB (74.00 %) func14fun14.py:14 +                                                        ┗━━ ▼ 📂 2.285KB (72.00 %) func15fun15.py:15 +                                                            ┗━━ ▼ 📂 2.222KB (70.00 %) func16fun16.py:16 +                                                                ┗━━ ▼ 📂 2.158KB (68.00 %) func17fun17.py:17 +                                                                    ┗━━ ▼ 📂 2.095KB (66.00 %) func18fun18.py:18 +                                                                        ┗━━ ▼ 📂 2.031KB (64.00 %) func19fun19.py:19 +                                                                            ┗━━ ▼ 📂 1.968KB (62.00 %) func20fun20.py:20 +                                                                                ┗━━ ▼ 📂 1.904KB (60.00 %) func21fun21.py:21 +                                                                                    ┗━━ ▼ 📂 1.841KB (58.00 %) func22fun22.py:22 +                                                                                        ┗━━ ▼ 📂 1.777KB (56.00 %) func23fun23.py:23 +                                                                                            ┗━━ ▼ 📂 1.714KB (54.00 %) func24fun24.py:24 +                                                                                                ┗━━ ▼ 📂 1.650KB (52.00 %) func25fun25.py:25 +                                                                                                    ┗━━ ▼ 📂 1.587KB (50.00 %) func26fun26.py:26 +                                                                                                        ┗━━ ▼ 📂 1.523KB (48.00 %) func27fun27.py:27 +                                                                                                            ┗━━ ▼ 📂 1.460KB (46.00 %) func28fun28.py:28 +                                                                                                                ┗━━ ▼ 📂 1.396KB (44.00 %) func29fun29.py:29 +                                                                                                                    ┗━━ ▼ 📂 1.333KB (42.00 %) func30fun30.py:30 +                                                                                                                        ┗━━ ▼ 📂 1.270KB (40.00 %) func31fun31.py:31 +                                                                                                                            ┗━━ ▼ 📂 1.206KB (38.00 %) func32fun32.py:32 +                                                                                                                                ┗━━ ▼ 📂 1.143KB (36.00 %) func33fun33.py:33 +                                                                                                                                    ┗━━ ▼ 📂 1.079KB (34.00 %) func34fun34.py:34 +                                                                                                                                        ┗━━ ▼ 📂 1.016KB (32.00 %) func35fun35.py:35 +                                                                                                                                            ┗━━ ▼ 📂 975.000B (30.00 %) func36fun36.py:36 +                                                                                                                                                ┗━━ ▼ 📂 910.000B (28.00 %) func37fun37.py:37 +                                                                                                                                                    ┗━━ ▼ 📂 845.000B (26.00 %) func38fun38.py:38 +                                                                                                                                                        ┗━━ ▼ 📂 780.000B (24.00 %) func39fun39.py:39 +                                                                                                                                                            ┗━━ ▼ 📂 715.000B (22.00 %) func40fun40.py:40 +                                                                                                                                                                ┗━━ ▼ 📂 650.000B (20.00 %) func41fun41.py:41 +                                                                                                                                                                    ┗━━ ▼ 📂 585.000B (18.00 %) func42fun42.py:42 +                                                                                                                                                                        ┗━━ ▼ 📂 520.000B (16.00 %) func43fun43.py:43 +                                                                                                                                                                            ┗━━ ▼ 📂 455.000B (14.00 %) func44fun44.py:44 +                                                                                                                                                                                ┗━━ ▼ 📂 390.000B (12.00 %) func45fun45.py:45 +                                                                                                                                                                                    ┗━━ ▼ 📂 325.000B (10.00 %) func46fun46.py:46 +                                                                                                                                                                                        ┗━━ ▼ 📂 260.000B (8.00 %) func47fun47.py:47 +                                                                                                                                                                                            ┗━━ ▼ 📂 195.000B (6.00 %) func48fun48.py:48 +                                                                                                                                                                                                ┗━━ ▼ 📂 130.000B (4.00 %) func49fun49.py:49 +                                                                                                                                                                                                    ┗━━ 📄 65.000B (2.00 %) func50fun50.py:50 +💾 Allocations: 50 + + +📦 Size: 3.174KB + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic.svg new file mode 100644 index 0000000000..0453162857 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic.svg @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┗━━ ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4 +    ┗━━ ▼ 📂 1.000KB (100.00 %) parentfun.py:8 +        ┗━━ 📄 1.000KB (100.00 %) mefun.py:12 + + + + + + + + + + + + + + + + + + + + + + + + + + + +💾 Allocations: 1 + + +📦 Size: 1.000KB + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_leaf.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_leaf.svg new file mode 100644 index 0000000000..1cf050314c --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_leaf.svg @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +└── ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4import itertools                             +    └── ▼ 📂 1.000KB (100.00 %) parentfun.py:8def generate_primes():                       +        └── 📄 1.000KB (100.00 %) me  fun.py:12    numbers = itertools.count(2)             +    while True:                              +        prime = next(numbers)                +        yield prime                          +        numbers = filter(lambda x, prime=pri + + + + + + + + + + + + + + + + + + + + + + + +🧭 Function: me + + +🧭 Location: fun.py:12 + + +💾 Allocations: 1 + + +📦 Size: 1.000KB + + +🧵 Thread: 0x1 + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_not_leaf.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_not_leaf.svg new file mode 100644 index 0000000000..ff2b0ab62f --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_basic_node_selected_not_leaf.svg @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +└── ▼ 📂 1.000KB (100.00 %) grandparentfun.py:4import itertools                             +    └── ▼ 📂 1.000KB (100.00 %) parent  fun.py:8def generate_primes():                       +┗━━ 📄 1.000KB (100.00 %) mefun.py:12    numbers = itertools.count(2)             +    while True:                              +        prime = next(numbers)                +        yield prime                          +        numbers = filter(lambda x, prime=pri + + + + + + + + + + + + + + + + + + + + + + + +🧭 Function: parent + + +🧭 Location: fun.py:8 + + +💾 Allocations: 1 + + +📦 Size: 1.000KB + + +🧵 Thread: 0x1 + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_biggest_allocations.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_biggest_allocations.svg new file mode 100644 index 0000000000..72bc45cd72 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_biggest_allocations.svg @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 487.793MB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +├── 📄 999.000KB (0.20 %) function_999fun.py:12 +├── 📄 998.000KB (0.20 %) function_998fun.py:12 +├── 📄 997.000KB (0.20 %) function_997fun.py:12 +├── 📄 996.000KB (0.20 %) function_996fun.py:12 +├── 📄 995.000KB (0.20 %) function_995fun.py:12 +├── 📄 994.000KB (0.20 %) function_994fun.py:12 +├── 📄 993.000KB (0.20 %) function_993fun.py:12 +├── 📄 992.000KB (0.20 %) function_992fun.py:12 +├── 📄 991.000KB (0.20 %) function_991fun.py:12 +├── 📄 990.000KB (0.20 %) function_990fun.py:12 +└── ❓ 478.081MB (98.01 %) 990 allocations from 990 locations below the configured threshold + + + + + + + + + +Only the top 10 allocation locations are shown in the tree. Allocation +locations which individually contributed too little to meet the  +threshold are summarized here. + +You can adjust this threshold to include more allocation locations by  +rerunning this reporter with a larger --biggest-allocs value. + + +💾 Allocations: 990 + + +📦 Size: 478.081MB + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_hide_import_system.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_hide_import_system.svg new file mode 100644 index 0000000000..fe4742ccff --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_hide_import_system.svg @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┗━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 +    ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 +        ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 + + + + + + + + + + + + + + + + + + + + + + + + + + + +💾 Allocations: 2 + + +📦 Size: 11.000KB + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Show import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_select_screen.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_select_screen.svg new file mode 100644 index 0000000000..731ae11611 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_select_screen.svg @@ -0,0 +1,307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 1.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +└── ▼ 📂 1.000KB (100.00 %) grandparent2fun2.py:4import itertools                             +    └── ▼ 📂 1.000KB (100.00 %) parent2fun2.py:8def generate_primes():                       +        └── 📄 1.000KB (100.00 %) me2  func2.py:4    numbers = itertools.count(2)             +    while True: +        prime = next(numbers)                +        yield prime                          +        numbers = filter(lambda x, prime=pri + + + + + + + + + + + + + + + + + + + + + + + +🧭 Function: me2 + + +🧭 Location: func2.py:4 + + +💾 Allocations: 1 + + +📦 Size: 1.000KB + + +🧵 Thread: 0x1 + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting.svg new file mode 100644 index 0000000000..635c67b097 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting.svg @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┣━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 +┃   ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 +┃       ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 +┗━━ ▶ 📂 1.000KB (9.09 %) erunpy.py:5 + + + + + + + + + + + + + + + + + + + + + + + + + + +💾 Allocations: 2 + + +📦 Size: 11.000KB + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Hide uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting_and_hide_import_system.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting_and_hide_import_system.svg new file mode 100644 index 0000000000..4ecd010024 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_show_uninteresting_and_hide_import_system.svg @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┣━━ ▼ 📂 10.000KB (90.91 %) crunpy.py:5 +┃   ┗━━ ▼ 📂 10.000KB (90.91 %) brunpy.py:2 +┃       ┗━━ ▼ 📂 10.000KB (90.91 %) arunpy.py:1 +┃           ┗━━ 📄 10.000KB (90.91 %) Asome other frame:4 +┗━━ ▶ 📂 1.000KB (9.09 %) grandparent2fun2.py:4 + + + + + + + + + + + + + + + + + + + + + + + + + +💾 Allocations: 2 + + +📦 Size: 11.000KB + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Show import system  u Hide uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains.svg new file mode 100644 index 0000000000..0f9baaf19c --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains.svg @@ -0,0 +1,305 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +┣━━ ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4 +┃   ┗━━ ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8 +┃       ┗━━ 📄 10.000KB (90.91 %) me2fun2.py:12 +┗━━ ▶ 📂 1.000KB (9.09 %) grandparentfun.py:4 + + + + + + + + + + + + + + + + + + + + + + + + + + +💾 Allocations: 2 + + +📦 Size: 11.000KB + + + + + + + + + + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains_after_expanding_second.svg b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains_after_expanding_second.svg new file mode 100644 index 0000000000..a718ca1e79 --- /dev/null +++ b/tests/unit/__snapshots__/test_tree_reporter/TestTUILooks.test_two_chains_after_expanding_second.svg @@ -0,0 +1,309 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TreeApp + + + + + + + + + + ▼ 📂 11.000KB (100.00 %) <ROOT>█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ +├── ▼ 📂 10.000KB (90.91 %) grandparent2fun2.py:4import itertools                             +│   └── ▼ 📂 10.000KB (90.91 %) parent2fun2.py:8def generate_primes():                       +│       └── 📄 10.000KB (90.91 %) me2fun2.py:12    numbers = itertools.count(2)             +└── ▼ 📂 1.000KB (9.09 %) e  fun.py:5    while True:                              +┗━━ ▼ 📂 1.000KB (9.09 %) dfun.py:4        prime = next(numbers) +    ┗━━ ▼ 📂 1.000KB (9.09 %) cfun.py:3        yield prime                          +        ┗━━ ▼ 📂 1.000KB (9.09 %) bfun.py:2        numbers = filter(lambda x, prime=pri +            ┗━━ 📄 1.000KB (9.09 %) afun.py:1 + + + + + + + + + + + + + + + + + + + + + + +🧭 Function: e + + +🧭 Location: fun.py:5 + + +💾 Allocations: 1 + + +📦 Size: 1.000KB + + +🧵 Thread: 0x1 + + + + + + + + + + + + + + +█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ + q Quit the app  i Hide import system  u Show uninteresting  e Expand linear group  + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter.ambr b/tests/unit/__snapshots__/test_tui_reporter.ambr deleted file mode 100644 index c430ea0782..0000000000 --- a/tests/unit/__snapshots__/test_tui_reporter.ambr +++ /dev/null @@ -1,1769 +0,0 @@ -# serializer version: 1 -# name: test_merge_threads - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                                                                                          Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────────────╮ - PID: ???     CMD: ???                                                                                                                            █ - TID: *       All threads                                          █ - Samples: 2   Duration: 42.0 seconds                                                                                                              █ -                                           █ - ╰─────────── 3.000KB (100% of 3.000KB max) ─╯ - -                       Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  -  a                                                      1.000KB 33.33%  1.000KB33.33%          1 a.py         -  b                                                      1.000KB 33.33%  1.000KB33.33%          1 b.py         -  c                                                      1.000KB 33.33%  1.000KB33.33%          1 c.py         - - - - - - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  SPACE Pause  - - - - - ''' -# --- -# name: test_tui_basic[narrow-terminal-focus-header-long-snapshots] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                  Fri Oct 13 12:00:00 2023 - PID: ???     CMD: ???                                                          - TID: *       All threads - Samples: 2   Duration: 42.0 seconds                                            - StatusRemote has disconnected - - ╭─ Heap Usage ─────────────────────────────────────╮ -                                                  ▐ -                                                  ▐ -                                                  █ -                                                  █ - ╰────────────────── 2.325KB (100% of 2.325KB max) ─╯ -                       Location                      Total Bytes% TotalO -  malloc                                                 2.325KB100.00% -  parent                                                 2.325KB100.00% -  grandparent                                            2.325KB100.00% -  f2                                                     1.325KB 56.99% -  f1                                                     1.000KB 43.01% -  something0                                            333.000B 13.99% -  something1                                            333.000B 13.99% -  something2                                            333.000B 13.99% -  something3                                            333.000B 13.99% -  something4                                            333.000B 13.99% -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocati - - - - - ''' -# --- -# name: test_tui_basic[narrow-terminal-short-snapshots] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - -                       Location                      Total Bytes% TotalOwn -  malloc                                                 3.000KB100.00%  3 -  parent                                                 3.000KB100.00% -  grandparent                                            3.000KB100.00% -  f2                                                     2.000KB 66.67% -  f1                                                     1.000KB 33.33% - - - - - - - - - - - - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocati - - - - - ''' -# --- -# name: test_tui_basic[very-wide-terminal-short-snapshots] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                                                                                                                                            Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────────────────────────────────╮ - PID: ???     CMD: ???                                                                                                                                                                              ▐ - TID: *       All threads                                                 ▐ - Samples: 2   Duration: 42.0 seconds                                                                                                                                                                ▟ - StatusRemote has disconnected                                                 █ - ╰────────────────── 3.000KB (100% of 3.000KB max) ─╯ - -                       Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  -  malloc                                                 3.000KB100.00%  3.000KB100.00%          3 malloc.c     -  parent                                                 3.000KB100.00%   0.000B  0.00%          3 fun.py       -  grandparent                                            3.000KB100.00%   0.000B  0.00%          3 fun.py       -  f2                                                     2.000KB 66.67%   0.000B  0.00%          2 f.py         -  f1                                                     1.000KB 33.33%   0.000B  0.00%          1 f.py         - - - - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  - - - - - ''' -# --- -# name: test_tui_basic[wide-terminal-long-snapshots] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                                                            Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────────────────╮ - PID: ???     CMD: ???                                                                                              ▐ - TID: *       All threads                                 ▐ - Samples: 2   Duration: 42.0 seconds                                                                                █ - StatusRemote has disconnected                                 █ - ╰── 2.325KB (100% of 2.325KB max) ─╯ - -                       Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Modul -  malloc                                                 2.325KB100.00%  2.325KB100.00%          3 malloc.c   -  parent                                                 2.325KB100.00%   0.000B  0.00%          3 fun.py     -  grandparent                                            2.325KB100.00%   0.000B  0.00%          3 fun.py     -  f2                                                     1.325KB 56.99%   0.000B  0.00%          2 f.py       -  f1                                                     1.000KB 43.01%   0.000B  0.00%          1 f.py       -  something0                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something1                                            333.000B 13.99%   0.000B  0.00%          1 something.▃▃ -  something2                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something3                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something4                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something5                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something6                                            333.000B 13.99%   0.000B  0.00%          1 something. -  something7                                            333.000B 13.99%   0.000B  0.00%          1 something. - -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  - - - - - ''' -# --- -# name: test_tui_gradient - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                                                                 Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────╮ - PID: ???     CMD: ???                                                                                                   ▐ - TID: *       All threads                                  ▐ - Samples: 1   Duration: 42.0 seconds                                                                                     ▐ - StatusRemote has disconnected                                  ▐ - ╰─ 34.248KB (100% of 34.248KB max) ─╯ - -                       Location                      Total Bytes% TotalOwn Bytes% OwnAllocations  File/Module    -  function0                                             34.248KB100.00%  1.000KB2.92%         30 /abc/lel_0.py   -  function1                                             33.248KB 97.08%  1.010KB2.95%         29 /abc/lel_1.py   -  function2                                             32.238KB 94.13%  1.020KB2.98%         28 /abc/lel_2.py   -  function3                                             31.219KB 91.15%  1.029KB3.01%         27 /abc/lel_3.py   -  function4                                             30.189KB 88.15%  1.039KB3.03%         26 /abc/lel_4.py   -  function5                                             29.150KB 85.12%  1.049KB3.06%         25 /abc/lel_5.py   -  function6                                             28.102KB 82.05%  1.059KB3.09%         24 /abc/lel_6.py   -  function7                                             27.043KB 78.96%  1.068KB3.12%         23 /abc/lel_7.py   -  function8                                             25.975KB 75.84%  1.078KB3.15%         22 /abc/lel_8.py   -  function9                                             24.896KB 72.69%  1.088KB3.18%         21 /abc/lel_9.py   -  function10                                            23.809KB 69.52%  1.098KB3.21%         20 /abc/lel_10.py  -  function11                                            22.711KB 66.31%  1.107KB3.23%         19 /abc/lel_11.py  -  function12                                            21.604KB 63.08%  1.117KB3.26%         18 /abc/lel_12.py  -  function13                                            20.486KB 59.82%  1.127KB3.29%         17 /abc/lel_13.py  -  function14                                            19.359KB 56.53%  1.137KB3.32%         16 /abc/lel_14.py  -  function15                                            18.223KB 53.21%  1.146KB3.35%         15 /abc/lel_15.py  -  function16                                            17.076KB 49.86%  1.156KB3.38%         14 /abc/lel_16.py  -  function17                                            15.920KB 46.48%  1.166KB3.40%         13 /abc/lel_17.py  -  function18                                            14.754KB 43.08%  1.176KB3.43%         12 /abc/lel_18.py  -  function19                                            13.578KB 39.65%  1.186KB3.46%         11 /abc/lel_19.py  -  function20                                            12.393KB 36.18%  1.195KB3.49%         10 /abc/lel_20.py  -  function21                                            11.197KB 32.69%  1.205KB3.52%          9 /abc/lel_21.py  -  function22                                             9.992KB 29.18%  1.215KB3.55%          8 /abc/lel_22.py  -  function23                                             8.777KB 25.63%  1.225KB3.58%          7 /abc/lel_23.py  -  function24                                             7.553KB 22.05%  1.234KB3.60%          6 /abc/lel_24.py  -  function25                                             6.318KB 18.45%  1.244KB3.63%          5 /abc/lel_25.py  -  function26                                             5.074KB 14.82%  1.254KB3.66%          4 /abc/lel_26.py  -  function27                                             3.820KB 11.15%  1.264KB3.69%          3 /abc/lel_27.py  -  function28                                             2.557KB  7.47%  1.273KB3.72%          2 /abc/lel_28.py  -  function29                                             1.283KB  3.75%  1.283KB3.75%          1 /abc/lel_29.py  -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  - - - - - ''' -# --- -# name: test_tui_pause[narrow-terminal-connected] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracki      Fri Oct 13 12:00:00 2023 - PID: ???     CMD: ???                            - TID: *       All threads - Samples: 2   Duration: 42.0 seconds              - StatusTable updates paused - - ╭─ Heap Usage ─────────────────────────────────╮ -                                              ▐ -                                              ▐ -                                              ▟ -                                              █ - ╰────────────── 3.000KB (100% of 3.000KB max) ─╯ -                       Location                   -  malloc                                          -  f1                                              -  parent                                          -  grandparent                                     - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o S - - - - - ''' -# --- -# name: test_tui_pause[narrow-terminal-disconnected] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracki      Fri Oct 13 12:00:00 2023 - PID: ???     CMD: ???                            - TID: *       All threads - Samples: 2   Duration: 42.0 seconds              - StatusTable updates pausedRemote has disconne - - ╭─ Heap Usage ─────────────────────────────────╮ -                                              ▐ -                                              ▐ -                                              ▟ -                                              █ - ╰────────────── 3.000KB (100% of 3.000KB max) ─╯ -                       Location                   -  malloc                                          -  f1                                              -  parent                                          -  grandparent                                     - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o S - - - - - ''' -# --- -# name: test_tui_pause[wider-terminal] - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                     Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────╮ - PID: ???     CMD: ???                                                       ▐ - TID: *       All threads                     ▐ - Samples: 2   Duration: 42.0 seconds                                         ▟ - StatusTable updates pausedRemote has disconnected                     █ - ╰─ 3.000KB (100% of … ─╯ - -                       Location                      Total Bytes% TotalOwn By -  malloc                                                 1.000KB100.00%  1.00 -  f1                                                     1.000KB100.00%   0.0 -  parent                                                 1.000KB100.00%   0.0 -  grandparent                                            1.000KB100.00%   0.0 - - - - - - - - - - -  q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations - - - - - ''' -# --- -# name: test_unmerge_threads - ''' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MockApp - - - - - - - - - - Memray live tracking                                                                                                          Fri Oct 13 12:00:00 2023 -  (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────────────╮ - PID: ???     CMD: ???                                                                                                                            █ - TID: 0x2     Thread 2 of 3                                                                                                                       █ - Samples: 2   Duration: 42.0 seconds                                                                                                              █ -                                           █ - ╰─────────── 3.000KB (100% of 3.000KB max) ─╯ - -                       Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  -  b                                                      1.000KB 33.33%  1.000KB33.33%          1 b.py         - - - - - - - - - - - - - -  q Quit  m Merge Threads  < Previous Thread  > Next Thread  t Sort by Total  o Sort by Own  a Sort by Allocations  SPACE Pause  - - - - - ''' -# --- diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_merge_threads.svg b/tests/unit/__snapshots__/test_tui_reporter/test_merge_threads.svg new file mode 100644 index 0000000000..aecf7e9081 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_merge_threads.svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                                                                                          Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────────────╮ +PID: ???     CMD: ???                                                                                                                            █ +TID: *       All threads                                          █ +Samples: 2   Duration: 42.0 seconds                                                                                                              █ +                                          █ +╰─────────── 3.000KB (100% of 3.000KB max) ─╯ + +                      Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  + a                                                      1.000KB 33.33%  1.000KB33.33%          1 a.py         + b                                                      1.000KB 33.33%  1.000KB33.33%          1 b.py         + c                                                      1.000KB 33.33%  1.000KB33.33%          1 c.py         + + + + + + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  SPACE Pause  + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-focus-header-long-snapshots].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-focus-header-long-snapshots].svg new file mode 100644 index 0000000000..f99385a78d --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-focus-header-long-snapshots].svg @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                  Fri Oct 13 12:00:00 2023 +PID: ???     CMD: ???                                                          +TID: *       All threads +Samples: 2   Duration: 42.0 seconds                                            +StatusRemote has disconnected + +╭─ Heap Usage ─────────────────────────────────────╮ +                                                 ▐ +                                                 ▐ +                                                 █ +                                                 █ +╰────────────────── 2.325KB (100% of 2.325KB max) ─╯ +                      Location                      Total Bytes% TotalO + malloc                                                 2.325KB100.00% + parent                                                 2.325KB100.00% + grandparent                                            2.325KB100.00% + f2                                                     1.325KB 56.99% + f1                                                     1.000KB 43.01% + something0                                            333.000B 13.99% + something1                                            333.000B 13.99% + something2                                            333.000B 13.99% + something3                                            333.000B 13.99% + something4                                            333.000B 13.99% + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocati + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-short-snapshots].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-short-snapshots].svg new file mode 100644 index 0000000000..a1010ca3b8 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[narrow-terminal-short-snapshots].svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + +                       Location                      Total Bytes% TotalOwn + malloc                                                 3.000KB100.00%  3 + parent                                                 3.000KB100.00% + grandparent                                            3.000KB100.00% + f2                                                     2.000KB 66.67% + f1                                                     1.000KB 33.33% + + + + + + + + + + + + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocati + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[very-wide-terminal-short-snapshots].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[very-wide-terminal-short-snapshots].svg new file mode 100644 index 0000000000..1225d12c76 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[very-wide-terminal-short-snapshots].svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                                                                                                                                            Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────────────────────────────────╮ +PID: ???     CMD: ???                                                                                                                                                                              ▐ +TID: *       All threads                                                 ▐ +Samples: 2   Duration: 42.0 seconds                                                                                                                                                                ▟ +StatusRemote has disconnected                                                 █ +╰────────────────── 3.000KB (100% of 3.000KB max) ─╯ + +                      Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  + malloc                                                 3.000KB100.00%  3.000KB100.00%          3 malloc.c     + parent                                                 3.000KB100.00%   0.000B  0.00%          3 fun.py       + grandparent                                            3.000KB100.00%   0.000B  0.00%          3 fun.py       + f2                                                     2.000KB 66.67%   0.000B  0.00%          2 f.py         + f1                                                     1.000KB 33.33%   0.000B  0.00%          1 f.py         + + + + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[wide-terminal-long-snapshots].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[wide-terminal-long-snapshots].svg new file mode 100644 index 0000000000..917bcfe781 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_basic[wide-terminal-long-snapshots].svg @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                                                            Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────────────────╮ +PID: ???     CMD: ???                                                                                              ▐ +TID: *       All threads                                 ▐ +Samples: 2   Duration: 42.0 seconds                                                                                █ +StatusRemote has disconnected                                 █ +╰── 2.325KB (100% of 2.325KB max) ─╯ + +                      Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Modul + malloc                                                 2.325KB100.00%  2.325KB100.00%          3 malloc.c   + parent                                                 2.325KB100.00%   0.000B  0.00%          3 fun.py     + grandparent                                            2.325KB100.00%   0.000B  0.00%          3 fun.py     + f2                                                     1.325KB 56.99%   0.000B  0.00%          2 f.py       + f1                                                     1.000KB 43.01%   0.000B  0.00%          1 f.py       + something0                                            333.000B 13.99%   0.000B  0.00%          1 something. + something1                                            333.000B 13.99%   0.000B  0.00%          1 something.▃▃ + something2                                            333.000B 13.99%   0.000B  0.00%          1 something. + something3                                            333.000B 13.99%   0.000B  0.00%          1 something. + something4                                            333.000B 13.99%   0.000B  0.00%          1 something. + something5                                            333.000B 13.99%   0.000B  0.00%          1 something. + something6                                            333.000B 13.99%   0.000B  0.00%          1 something. + something7                                            333.000B 13.99%   0.000B  0.00%          1 something. + + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_gradient.svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_gradient.svg new file mode 100644 index 0000000000..5057f4a3aa --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_gradient.svg @@ -0,0 +1,260 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                                                                 Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────╮ +PID: ???     CMD: ???                                                                                                   ▐ +TID: *       All threads                                  ▐ +Samples: 1   Duration: 42.0 seconds                                                                                     ▐ +StatusRemote has disconnected                                  ▐ +╰─ 34.248KB (100% of 34.248KB max) ─╯ + +                      Location                      Total Bytes% TotalOwn Bytes% OwnAllocations  File/Module    + function0                                             34.248KB100.00%  1.000KB2.92%         30 /abc/lel_0.py   + function1                                             33.248KB 97.08%  1.010KB2.95%         29 /abc/lel_1.py   + function2                                             32.238KB 94.13%  1.020KB2.98%         28 /abc/lel_2.py   + function3                                             31.219KB 91.15%  1.029KB3.01%         27 /abc/lel_3.py   + function4                                             30.189KB 88.15%  1.039KB3.03%         26 /abc/lel_4.py   + function5                                             29.150KB 85.12%  1.049KB3.06%         25 /abc/lel_5.py   + function6                                             28.102KB 82.05%  1.059KB3.09%         24 /abc/lel_6.py   + function7                                             27.043KB 78.96%  1.068KB3.12%         23 /abc/lel_7.py   + function8                                             25.975KB 75.84%  1.078KB3.15%         22 /abc/lel_8.py   + function9                                             24.896KB 72.69%  1.088KB3.18%         21 /abc/lel_9.py   + function10                                            23.809KB 69.52%  1.098KB3.21%         20 /abc/lel_10.py  + function11                                            22.711KB 66.31%  1.107KB3.23%         19 /abc/lel_11.py  + function12                                            21.604KB 63.08%  1.117KB3.26%         18 /abc/lel_12.py  + function13                                            20.486KB 59.82%  1.127KB3.29%         17 /abc/lel_13.py  + function14                                            19.359KB 56.53%  1.137KB3.32%         16 /abc/lel_14.py  + function15                                            18.223KB 53.21%  1.146KB3.35%         15 /abc/lel_15.py  + function16                                            17.076KB 49.86%  1.156KB3.38%         14 /abc/lel_16.py  + function17                                            15.920KB 46.48%  1.166KB3.40%         13 /abc/lel_17.py  + function18                                            14.754KB 43.08%  1.176KB3.43%         12 /abc/lel_18.py  + function19                                            13.578KB 39.65%  1.186KB3.46%         11 /abc/lel_19.py  + function20                                            12.393KB 36.18%  1.195KB3.49%         10 /abc/lel_20.py  + function21                                            11.197KB 32.69%  1.205KB3.52%          9 /abc/lel_21.py  + function22                                             9.992KB 29.18%  1.215KB3.55%          8 /abc/lel_22.py  + function23                                             8.777KB 25.63%  1.225KB3.58%          7 /abc/lel_23.py  + function24                                             7.553KB 22.05%  1.234KB3.60%          6 /abc/lel_24.py  + function25                                             6.318KB 18.45%  1.244KB3.63%          5 /abc/lel_25.py  + function26                                             5.074KB 14.82%  1.254KB3.66%          4 /abc/lel_26.py  + function27                                             3.820KB 11.15%  1.264KB3.69%          3 /abc/lel_27.py  + function28                                             2.557KB  7.47%  1.273KB3.72%          2 /abc/lel_28.py  + function29                                             1.283KB  3.75%  1.283KB3.75%          1 /abc/lel_29.py  + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations  + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-connected].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-connected].svg new file mode 100644 index 0000000000..097bda6349 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-connected].svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracki      Fri Oct 13 12:00:00 2023 +PID: ???     CMD: ???                            +TID: *       All threads +Samples: 2   Duration: 42.0 seconds              +StatusTable updates paused + +╭─ Heap Usage ─────────────────────────────────╮ +                                             ▐ +                                             ▐ +                                             ▟ +                                             █ +╰────────────── 3.000KB (100% of 3.000KB max) ─╯ +                      Location                   + malloc                                          + f1                                              + parent                                          + grandparent                                     + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o S + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-disconnected].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-disconnected].svg new file mode 100644 index 0000000000..7b15370831 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[narrow-terminal-disconnected].svg @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracki      Fri Oct 13 12:00:00 2023 +PID: ???     CMD: ???                            +TID: *       All threads +Samples: 2   Duration: 42.0 seconds              +StatusTable updates pausedRemote has disconne + +╭─ Heap Usage ─────────────────────────────────╮ +                                             ▐ +                                             ▐ +                                             ▟ +                                             █ +╰────────────── 3.000KB (100% of 3.000KB max) ─╯ +                      Location                   + malloc                                          + f1                                              + parent                                          + grandparent                                     + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o S + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[wider-terminal].svg b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[wider-terminal].svg new file mode 100644 index 0000000000..b396af4216 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_tui_pause[wider-terminal].svg @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                     Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ─────────╮ +PID: ???     CMD: ???                                                       ▐ +TID: *       All threads                     ▐ +Samples: 2   Duration: 42.0 seconds                                         ▟ +StatusTable updates pausedRemote has disconnected                     █ +╰─ 3.000KB (100% of … ─╯ + +                      Location                      Total Bytes% TotalOwn By + malloc                                                 1.000KB100.00%  1.00 + f1                                                     1.000KB100.00%   0.0 + parent                                                 1.000KB100.00%   0.0 + grandparent                                            1.000KB100.00%   0.0 + + + + + + + + + + + q Quit  m Unmerge Threads  t Sort by Total  o Sort by Own  a Sort by Allocations + + + diff --git a/tests/unit/__snapshots__/test_tui_reporter/test_unmerge_threads.svg b/tests/unit/__snapshots__/test_tui_reporter/test_unmerge_threads.svg new file mode 100644 index 0000000000..cfd9edb862 --- /dev/null +++ b/tests/unit/__snapshots__/test_tui_reporter/test_unmerge_threads.svg @@ -0,0 +1,160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MockApp + + + + + + + + + + Memray live tracking                                                                                                          Fri Oct 13 12:00:00 2023 + (∩`-´)⊃━☆゚.*・。゚ ╭─ Heap Usage ──────────────────────────────╮ +PID: ???     CMD: ???                                                                                                                            █ +TID: 0x2     Thread 2 of 3                                                                                                                       █ +Samples: 2   Duration: 42.0 seconds                                                                                                              █ +                                          █ +╰─────────── 3.000KB (100% of 3.000KB max) ─╯ + +                      Location                      Total Bytes% TotalOwn Bytes% OwnAllocations File/Module  + b                                                      1.000KB 33.33%  1.000KB33.33%          1 b.py         + + + + + + + + + + + + + + q Quit  m Merge Threads  < Previous Thread  > Next Thread  t Sort by Total  o Sort by Own  a Sort by Allocations  SPACE Pause  + + +