Skip to content

Add chat perf markers#302491

Open
pwang347 wants to merge 7 commits intomainfrom
pawang/chatPerfMarkers
Open

Add chat perf markers#302491
pwang347 wants to merge 7 commits intomainfrom
pawang/chatPerfMarkers

Conversation

@pwang347
Copy link
Member

@pwang347 pwang347 commented Mar 17, 2026

Sample trace for a single (already authenticated) chat request
image

TODO: add related marks in copilot extension

Copilot AI review requested due to automatic review settings March 17, 2026 17:03
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

Adds performance marks across the chat submit/request pipeline to enable end-to-end timing analysis from UI submission through agent invocation in the workbench chat feature.

Changes:

  • Add perf markers when entering ChatService.sendRequest and _sendRequestAsync.
  • Add perf markers around agent invocation (invokeAgent) to measure provider execution time.
  • Add perf markers at key UI submission points (acceptInput, widget send, submit action).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts Adds chat request lifecycle and agent-invocation performance marks in the core chat service.
src/vs/workbench/contrib/chat/browser/widget/chatWidget.ts Adds UI-side marks for accept-input and just-before calling chatService.sendRequest.
src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.ts Adds a mark when running the submit action.

You can also share your feedback on Copilot code review. Take the survey.

@pwang347 pwang347 requested review from lramos15 and roblourens March 17, 2026 23:52
@pwang347 pwang347 marked this pull request as ready for review March 17, 2026 23:52
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 17, 2026
@pwang347 pwang347 requested a review from deepak1556 March 18, 2026 01:50
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.

3 participants