Added Perf details to profiler control

This commit is contained in:
2026-03-26 20:57:39 +01:00
parent 3ea551bc1a
commit 9085bcb09a
7 changed files with 261 additions and 89 deletions

View File

@@ -81,9 +81,10 @@ class TestProfilerBehaviour:
def test_i_can_select_trace_by_id(self, profiler_control):
"""Test that handle_select_trace stores the given trace_id."""
trace_id = str(uuid4())
profiler_control.handle_select_trace(trace_id)
assert profiler_control._selected_id == trace_id
trace = make_trace()
profiler._traces.appendleft(trace)
profiler_control.handle_select_trace(trace.trace_id)
assert profiler_control._selected_id == trace.trace_id
def test_i_can_select_trace_stable_when_new_trace_added(self, profiler_control):
"""Test that selection by trace_id remains correct when a new trace is prepended.