MCPcopy Create free account
hub / github.com/anomalyco/opencode / mark

Function mark

packages/opencode/src/acp/profile.ts:4–7  ·  view source on GitHub ↗
(name: string, fields?: Record<string, string | number | boolean | undefined>)

Source from the content-addressed store, hash-verified

2const started = performance.now()
3
4export function mark(name: string, fields?: Record<string, string | number | boolean | undefined>) {
5 if (!enabled) return
6 write(`${name}.mark`, performance.now() - started, fields)
7}
8
9export function duration(
10 name: string,

Callers

nothing calls this directly

Calls 1

writeFunction · 0.70

Tested by

no test coverage detected