Skip to content

Fix copy-paste bug in performance view blocking startup count#304452

Merged
bpasero merged 2 commits intomicrosoft:mainfrom
ShehabSherif0:fix/perfview-lifecycle-phase-copy-paste
Mar 25, 2026
Merged

Fix copy-paste bug in performance view blocking startup count#304452
bpasero merged 2 commits intomicrosoft:mainfrom
ShehabSherif0:fix/perfview-lifecycle-phase-copy-paste

Conversation

@ShehabSherif0
Copy link
Copy Markdown
Contributor

Fixes #304451

The "blocking startup" count in the performance view uses LifecyclePhase.Starting for both operands of the addition, double-counting Starting contributions and omitting Ready contributions entirely.

The correct pattern is visible in the same file's _addWorkbenchContributionsPerfMarksTable(), which correctly lists both Starting and Ready phases.

Before: (contribTimings.get(LifecyclePhase.Starting)?.length ?? 0) + (contribTimings.get(LifecyclePhase.Starting)?.length ?? 0)
After: (contribTimings.get(LifecyclePhase.Starting)?.length ?? 0) + (contribTimings.get(LifecyclePhase.Ready)?.length ?? 0)

Copilot AI review requested due to automatic review settings March 24, 2026 12:59
@vs-code-engineering vs-code-engineering bot added this to the 1.114.0 milestone Mar 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an incorrect “blocking startup” count in the Startup Performance (perf view) summary table by counting workbench contributions from both lifecycle phases that block startup.

Changes:

  • Correct the blocking startup contributions count to add LifecyclePhase.Starting + LifecyclePhase.Ready (instead of double-counting Starting).

Copy link
Copy Markdown
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@bpasero bpasero merged commit 29d5ff7 into microsoft:main Mar 25, 2026
35 of 40 checks passed
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.

Performance view: blocking startup count uses LifecyclePhase.Starting twice instead of Starting + Ready

5 participants