ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { mark, clearMarks } from '../../../../base/common/performance.js';
import { URI } from '../../../../base/common/uri.js';
import { chatSessionResourceToId } from './model/chatUri.js';
const chatPerfPrefix = 'code/chat/';
/** Tracks all mark names emitted per session so they can be cleared individually. */
const chatMarksBySession = new Map<string, Set<string>>();
/**
* Well-defined perf scenarios for chat request lifecycle.
* Each mark is a boundary of a measurable scenario — don't add marks
* without defining what scenario they belong to.
*
* ## Scenarios
*
* **Time to UI Feedback** (perceived input lag):
* `request/start` → `request/uiUpdated`
*
* **Instruction Collection Overhead**:
* `request/willCollectInstructions` → `request/didCollectInstructions`
*
* **Extension Activation Wait** (first-request cold start):
* `code/chat/willWaitForActivation` → `code/chat/didWaitForActivation`
* (global marks, not session-scoped — emitted via markChatGlobal)
*
* **Time to First Token** (the headline metric):
* `request/start` → `request/firstToken`
*
* **Total Request Duration**:
* `request/start` → `request/complete`
*
* **Agent Invocation Time** (LLM round-trip):
* `agent/willInvoke` → `agent/didInvoke`
*/
ChatPerfMark
RequestStart
RequestUiUpdated
WillCollectInstructions
DidCollectInstructions
FirstToken
RequestComplete
AgentWillInvoke
AgentDidInvoke
sessionResource name
sessionId sessionResource
fullName
names chatMarksBySessionsessionId
names
names
chatMarksBySessionsessionId names
namesfullName
fullName
sessionResource
sessionId sessionResource
names chatMarksBySessionsessionId
names
name names
name
chatMarksBySessionsessionId
ChatGlobalPerfMark
WillWaitForActivation
DidWaitForActivation
name