chore(conductor): Add new track 'Add new metrics to track ui performance'

This commit is contained in:
2026-02-23 14:39:30 -05:00
parent e3b483d983
commit 3487c79cba
5 changed files with 83 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
# Implementation Plan: UI Performance Metrics and AI Diagnostics
## Phase 1: High-Resolution Telemetry Engine
- [ ] Task: Implement core performance collector (FrameTime, CPU usage)
- [ ] Sub-task: Write Tests (validate metric collection accuracy)
- [ ] Sub-task: Implement Feature (create `PerformanceMonitor` class)
- [ ] Task: Integrate collector with Dear PyGui main loop
- [ ] Sub-task: Write Tests (verify integration doesn't crash loop)
- [ ] Sub-task: Implement Feature (hooks in `gui.py` or `gui_2.py`)
- [ ] Task: Implement Input Lag estimation logic
- [ ] Sub-task: Write Tests (simulated input vs. response timing)
- [ ] Sub-task: Implement Feature (event-based timing in GUI)
- [ ] Task: Conductor - User Manual Verification 'Phase 1: High-Resolution Telemetry Engine' (Protocol in workflow.md)
## Phase 2: AI Tooling and Alert System
- [ ] Task: Create `get_ui_performance` AI tool
- [ ] Sub-task: Write Tests (verify tool returns correct JSON schema)
- [ ] Sub-task: Implement Feature (add tool to `mcp_client.py`)
- [ ] Task: Implement performance threshold alert system
- [ ] Sub-task: Write Tests (verify alerts trigger at correct thresholds)
- [ ] Sub-task: Implement Feature (logic to inject messages into `ai_client.py` context)
- [ ] Task: Conductor - User Manual Verification 'Phase 2: AI Tooling and Alert System' (Protocol in workflow.md)
## Phase 3: Diagnostics UI and Optimization
- [ ] Task: Build the Diagnostics Panel in Dear PyGui
- [ ] Sub-task: Write Tests (verify panel components render)
- [ ] Sub-task: Implement Feature (plots, stat readouts in `gui.py`)
- [ ] Task: Identify and fix main thread performance bottlenecks
- [ ] Sub-task: Write Tests (reproducible "heavy" load test)
- [ ] Sub-task: Implement Feature (refactor heavy logic to workers)
- [ ] Task: Conductor - User Manual Verification 'Phase 3: Diagnostics UI and Optimization' (Protocol in workflow.md)