Skip to content

Commit ec6fb51

Browse files
Remove deduplication of leaves to ensure call stacks can be properly rendered
1 parent f8e9d72 commit ec6fb51

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/profiling/sampling/collector.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,7 @@ def _build_linear_stacks(self, leaf_task_ids, task_map, child_to_parents):
8989
# End of path (parent ID not in task_map)
9090
if current_id not in task_map:
9191
if frames:
92-
# Deduplicate yields based on path taken
93-
path_sig = frozenset(path)
94-
if path_sig not in yielded_paths:
95-
yielded_paths.add(path_sig)
96-
yield frames, thread_id, leaf_id
92+
yield frames, thread_id, leaf_id
9793
continue
9894

9995
# Process current task

0 commit comments

Comments
 (0)