refactor(test): wrap live_gui subprocess in _LiveGuiHandle class
This commit is contained in:
@@ -17,14 +17,16 @@ from src.api_hook_client import ApiHookClient
|
||||
# Session-wide storage for comparing metrics
|
||||
_shared_metrics = {}
|
||||
|
||||
def test_performance_benchmarking(live_gui: tuple) -> None:
|
||||
def test_performance_benchmarking(live_gui) -> None:
|
||||
"""
|
||||
|
||||
|
||||
Collects performance metrics for the current GUI script over a 5-second window.
|
||||
Ensures the application does not lock up and can report its internal state.
|
||||
"""
|
||||
process, gui_script = live_gui
|
||||
handle = live_gui
|
||||
process = handle.process
|
||||
gui_script = handle.gui_script
|
||||
client = ApiHookClient()
|
||||
# Wait for app to stabilize and render some frames
|
||||
time.sleep(3.0)
|
||||
|
||||
Reference in New Issue
Block a user