Skip to content

Add wait stats query drill-down (#372)#442

Merged
erikdarlingdata merged 1 commit into
devfrom
feature/wait-drill-down
Mar 5, 2026
Merged

Add wait stats query drill-down (#372)#442
erikdarlingdata merged 1 commit into
devfrom
feature/wait-drill-down

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Right-click any wait type in the chart legend → "Show Queries With This Wait" opens a drill-down modal
  • Classifies waits into categories: correlated (SOS_SCHEDULER_YIELD, PAGEIOLATCH_, etc.), chain (LCK_M_), uncapturable (THREADPOOL), and filtered (everything else)
  • Correlated waits show all queries sorted by the most relevant metric (CPU for scheduler yield, reads for I/O, etc.)
  • Chain waits walk blocking chains to find head blockers, then show them with the same full column set plus "Blocked Sessions" and "Blocking Path" prepended
  • Both Dashboard and Lite, no new collectors needed

Test plan

  • Build both apps — 0 errors
  • Right-click SOS_SCHEDULER_YIELD → shows queries sorted by CPU with info banner
  • Right-click LCK_M_X → shows head blockers with full columns + chain info
  • Right-click a rare/absent wait → shows "No data found" message
  • Column filters work in all modes (chain and non-chain)
  • Context menu (copy cell/row/all, export CSV) works
  • Theme changes update filter button styles

🤖 Generated with Claude Code

Right-click any wait type in the chart legend to see queries causing it.
Classifies waits into categories (correlated, chain, uncapturable, filtered)
and shows the appropriate data: correlated metrics for brief waits like
SOS_SCHEDULER_YIELD, head blockers for lock waits (LCK_M_*), and direct
wait-type filtering for everything else. Chain mode shows the same full
column set with blocking path prepended — no jarring layout changes.

Both Dashboard and Lite. No new collectors needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 18141ba into dev Mar 5, 2026
@erikdarlingdata erikdarlingdata deleted the feature/wait-drill-down branch April 9, 2026 00:33
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.

1 participant