Added Perf details to profiler control
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user