MCPcopy Create free account
hub / github.com/Noumena-Network/code / makeInitialStats

Function makeInitialStats

src/ink/terminalWriteStats.ts:42–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40let stats: TerminalWriteStatsSnapshot = makeInitialStats()
41
42function makeInitialStats(): TerminalWriteStatsSnapshot {
43 return {
44 writeCalls: 0,
45 totalInputPatches: 0,
46 maxInputPatchCount: 0,
47 patchTypeCounts: { ...INITIAL_PATCH_TYPE_COUNTS },
48 syncWrappedCalls: 0,
49 totalSerializedBytes: 0,
50 maxSerializedBytes: 0,
51 totalStdoutPatchBytes: 0,
52 maxStdoutPatchBytes: 0,
53 lastStdoutPatchBytes: 0,
54 lastStdoutPatchCount: 0,
55 totalSerializeDurationMs: 0,
56 maxSerializeDurationMs: 0,
57 lastSerializeDurationMs: 0,
58 lastSerializedBytes: 0,
59 lastInputPatchCount: 0,
60 lastUseSync: false,
61 }
62}
63
64export function resetTerminalWriteStatsForTesting(): void {
65 stats = makeInitialStats()

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected