(phase: string, durationMs: number)
| 86 | // with that phase's duration and once with phase="total" for the whole op, so |
| 87 | // the dashboard can show total + per-phase. phase must be a bounded value. |
| 88 | export function recordVfsMaterialize(phase: string, durationMs: number): void { |
| 89 | if (durationMs < 0) return |
| 90 | instruments().vfsMaterializeDuration.record(durationMs, { |
| 91 | [TraceAttr.CopilotVfsPhase]: phase, |
| 92 | }) |
| 93 | } |
| 94 | |
| 95 | // recordFileRead records server-side file-read duration + size by outcome. |
| 96 | export function recordFileRead(outcome: string, durationMs: number, bytes: number): void { |
no test coverage detected