MCPcopy Index your code
hub / github.com/simstudioai/sim / recordVfsMaterialize

Function recordVfsMaterialize

apps/sim/lib/copilot/request/metrics.ts:88–93  ·  view source on GitHub ↗
(phase: string, durationMs: number)

Source from the content-addressed store, hash-verified

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.
88export 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.
96export function recordFileRead(outcome: string, durationMs: number, bytes: number): void {

Callers 1

materializeMethod · 0.90

Calls 1

instrumentsFunction · 0.85

Tested by

no test coverage detected