Skip to content

Wait stats never become findings: BenefitScorer computes a benefit for each wait but emits no warning #4516

Description

@erikdarlingdata

Part of #4511, the sync of plan analysis changes from PerformanceStudio (PS) to PerformanceMonitor (PM).

Summary

BenefitScorer.ScoreWaitStats (BenefitScorer.cs:450) computes a benefit percentage for each wait in an actual plan, and it stores the result in stmt.WaitBenefits. No code turns a wait into a PlanWarning. So a query that spent most of its time waiting on I/O or locks gets no finding about the wait.

PerformanceStudio

Port

Port the end state, not the interim file. The descriptions are sparse on purpose, so the port is mostly the mechanism and the severity tiers. Size L. The benefit for external and preemptive waits is too low in PM today, and the issue that links here covers it.

At 1899737f. dev has no later change to PerformanceMonitor.PlanAnalysis.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions