Skip to content

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

Open
ShehabSherif0 wants to merge 1 commit intomicrosoft:mainfrom
ShehabSherif0:fix/perfview-lifecycle-phase-copy-paste
Open

Fix copy-paste bug in performance view blocking startup count#304452
ShehabSherif0 wants to merge 1 commit intomicrosoft:mainfrom
ShehabSherif0:fix/perfview-lifecycle-phase-copy-paste

Conversation

@ShehabSherif0
Copy link
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
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).

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

4 participants