feat(ui): Implement conditional performance profiling for key GUI components

This commit is contained in:
2026-03-07 12:54:40 -05:00
parent f27b971565
commit a4c267d864
2 changed files with 297 additions and 1925 deletions

View File

@@ -0,0 +1,23 @@
# Implementation Plan: GUI Performance Profiling & Optimization (gui_performance_profiling_20260307)
> **Reference:** [Spec](./spec.md) | [Architecture Guide](../../../docs/guide_architecture.md)
## Phase 1: Instrumentation
Focus: Add profiling hooks to gui_2.py
- [x] Task 1.1: Wrap `_render_log_management` with profiling calls. (f27b971)
- [x] Task 1.2: Wrap `_render_discussion_panel` with profiling calls. (f27b971)
- [x] Task 1.3: Wrap `_render_mma_dashboard` with profiling calls. (f27b971)
- [x] Task 1.4: Wrap core `_gui_func` logic with profiling calls. (f27b971)
## Phase 2: Diagnostics UI
Focus: Display timings in the GUI
- [x] Task 2.1: Add "Detailed Component Timings" table to Diagnostics panel in `src/gui_2.py`. (f27b971)
- [x] Task 2.2: Implement 10ms threshold highlighting in the table. (f27b971)
## Phase 3: Verification & Optimization
Focus: Analyze results and fix bottlenecks
- [ ] Task 3.1: Verify timings are accurate via manual walkthrough.
- [ ] Task 3.2: Identify components consistently > 10ms and propose optimizations.

File diff suppressed because it is too large Load Diff