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

Function appendFrame

src/testing/replTmuxFixture.tsx:50–58  ·  view source on GitHub ↗
(frameLogPath: string, event: FrameEvent)

Source from the content-addressed store, hash-verified

48}
49
50function appendFrame(frameLogPath: string, event: FrameEvent): void {
51 const summary: LoggedFrameEvent = {
52 bytes: event.phases?.bytes ?? 0,
53 yogaMeasured: event.phases?.yogaMeasured ?? 0,
54 yogaVisited: event.phases?.yogaVisited ?? 0,
55 flickers: event.flickers.length,
56 }
57 appendFileSync(frameLogPath, `${JSON.stringify(summary)}\n`)
58}
59
60function appendRawOutput(rawOutputPath: string, chunk: unknown): void {
61 if (typeof chunk === 'string') {

Callers 1

mainFunction · 0.85

Calls 1

appendFileSyncFunction · 0.90

Tested by

no test coverage detected