Skip to content

Add query execution statistics dashboard#49

Closed
muk2 wants to merge 1 commit intomainfrom
feature/issue-38-query-stats
Closed

Add query execution statistics dashboard#49
muk2 wants to merge 1 commit intomainfrom
feature/issue-38-query-stats

Conversation

@muk2
Copy link
Owner

@muk2 muk2 commented Feb 20, 2026

Summary

Adds a query execution statistics dashboard that tracks and displays performance metrics across the session.

  • Stats panel: Ctrl+Shift+S opens a centered overlay showing session and all-time statistics
  • Session metrics: Queries executed, total time, average time
  • All-time metrics: Total queries, success/failure count, success rate, min/max/avg execution time
  • Status bar: Shows live session stats (query count + avg time) in the bottom status bar
  • Scrollable: Panel supports scrolling for smaller terminals

Metrics Displayed

Metric Description
Queries executed Session and all-time count
Success rate Percentage of successful queries
Average time Mean execution time
Min/Max time Fastest and slowest queries
Session total Cumulative execution time

Files Changed

File Description
src/ui/app.rs QueryStats struct, state tracking, input handler, recording
src/ui/components.rs Stats panel rendering, status bar session stats

Test plan

  • cargo build passes
  • cargo test passes (3 new unit tests for QueryStats)
  • Ctrl+Shift+S opens stats panel
  • Stats update after each query execution
  • Status bar shows session stats after first query
  • Esc closes stats panel

Closes #38

🤖 Generated with Claude Code

Adds a statistics panel tracking query performance metrics across the
session, with aggregated views for identifying slow queries and patterns.

- Ctrl+Shift+S opens statistics panel overlay
- Session metrics: queries executed, total/average time
- All-time metrics: total, success/failure count, success rate
- Performance bounds: min/max/average execution time
- Session stats shown in status bar (query count + avg time)
- Unit tests for QueryStats logic

Closes #38

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@muk2 muk2 closed this Feb 20, 2026
@muk2 muk2 deleted the feature/issue-38-query-stats branch February 20, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Query execution statistics and dashboard

1 participant