Skip to content

[BUG] Query Total Executions is wrong #194

@AlexandruNitu

Description

@AlexandruNitu

Component

Full Dashboard

Performance Monitor Version

1.1.0

SQL Server Version

SQL Server 2019 CU 32

Windows Version

Windows Server 2025

Describe the Bug

In Queries → Procedure Stats, the Executions column shows a numeric value. When double‑clicking a row, the Procedure Execution History window opens and displays the individual samples.
At the top of that window, the summary section also shows Total Executions, which displays the same number as in the main grid. However, this value actually reflects the maximum value found in the Executions column — not the sum of all executions collected during the monitoring period.

Image

Steps to Reproduce

  1. Open dashboard
  2. Choose a server
  3. Go to Queries tab
  4. Go to Procedure Stats tab
  5. Double click on a line

Expected Behavior

Total Executions should represent the sum of all execution counts recorded in the samples grid for the selected procedure within the collection window.
The value displayed in the summary should accurately reflect the aggregated execution count, not the maximum value.

Actual Behavior

In Queries → Procedure Stats, the Executions column displays a numeric value.
When double‑clicking a row, the Procedure Execution History window opens and shows the individual samples.
In the summary section at the top, Total Executions shows the same value as the Executions column from Procedure Stats.
However, this value represents the maximum executions value found in the samples grid — not the total number of executions recorded during the collection period.

Error Messages / Log Output


Screenshots

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions