Skip to content

Fix Wait Stats selection with poison waits + top 10 (#12)#24

Merged
erikdarlingdata merged 2 commits into
devfrom
feature/12-wait-stats-top-waits
Feb 13, 2026
Merged

Fix Wait Stats selection with poison waits + top 10 (#12)#24
erikdarlingdata merged 2 commits into
devfrom
feature/12-wait-stats-top-waits

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Smart default selection: Replace broken "select first 12" logic with poison waits (THREADPOOL, RESOURCE_SEMAPHORE, RESOURCE_SEMAPHORE_QUERY_COMPILE) + usual suspects (SOS_SCHEDULER_YIELD, CXPACKET, CXCONSUMER, PAGEIOLATCH_SH/EX, PAGELATCH_%, WRITELOG) + top 10 by total wait time
  • Expand chart limit: 12 → 20 simultaneous wait types with extended color palettes in both apps
  • Selection counter: "X / 20 selected" label next to buttons, turns red at cap
  • Relabel button: "Select All" → "Top Waits" for truth in advertising
  • Consistent sorting: Both Dashboard and Lite now sort wait types alphabetically (checked first)

Test plan

  • Dashboard: Resources → Wait Stats Detail — verify poison waits + usual suspects auto-checked on first load
  • Dashboard: Click "Top Waits" — reapplies smart defaults
  • Dashboard: Manually check/uncheck waits — counter updates, chart renders up to 20
  • Lite: Wait Stats tab — same behavior as Dashboard
  • Verify PAGELATCH_% prefix matching (all variants auto-checked)
  • Verify "Clear All" zeros the counter and clears chart

Closes #12

🤖 Generated with Claude Code

erikdarlingdata and others added 2 commits February 13, 2026 09:34
…10 (#12)

Replace the broken "select first 12 in list order" logic with smart defaults:
poison waits (THREADPOOL, RESOURCE_SEMAPHORE, RESOURCE_SEMAPHORE_QUERY_COMPILE)
are always checked, usual suspects (SOS_SCHEDULER_YIELD, CXPACKET, CXCONSUMER,
PAGEIOLATCH_SH/EX, PAGELATCH_%, WRITELOG) are always checked, then the top 10
by total wait time fill remaining slots up to the 12-color cap.

Relabel button from "Select All" to "Top Waits" in both Dashboard and Lite.
Align Lite wait type list sorting to alphabetical to match Dashboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extend color palettes to 20 colors in both Dashboard and Lite so users
can chart more wait types simultaneously. Add "X / 20 selected" counter
next to the Top Waits button so users know the limit. Counter turns red
when the cap is reached.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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