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

Function recordWriteCellStats

src/ink/logUpdateRenderStats.ts:544–562  ·  view source on GitHub ↗
(stats: {
  styleStrNonEmpty: boolean
  wideEdgeSkip: boolean
  needsWidthCompensation: boolean
  wideCell: boolean
})

Source from the content-addressed store, hash-verified

542}
543
544export function recordWriteCellStats(stats: {
545 styleStrNonEmpty: boolean
546 wideEdgeSkip: boolean
547 needsWidthCompensation: boolean
548 wideCell: boolean
549}): void {
550 if (stats.styleStrNonEmpty) {
551 logUpdateRenderStats.totalStyleStrNonEmpty += 1
552 }
553 if (stats.wideEdgeSkip) {
554 logUpdateRenderStats.totalWideEdgeSkips += 1
555 }
556 if (stats.needsWidthCompensation) {
557 logUpdateRenderStats.totalNeedsWidthCompensation += 1
558 }
559 if (stats.wideCell) {
560 logUpdateRenderStats.totalWideCellsWritten += 1
561 }
562}
563
564export function getLogUpdateRenderStatsSnapshot(): LogUpdateRenderStatsSnapshot {
565 return { ...logUpdateRenderStats }

Callers 1

writeCellWithStyleStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected