export type RightPanePerfEvent = 'project-tree-render' | 'project-tree-row-render' | 'terminal-fit-active' | 'terminal-fit-hidden' | 'terminal-measure' export interface RightPanePerfSnapshot { counts: Record details: Partial>> rows: Record } declare global { interface Window { __RIGHT_PANE_PERF__?: { clear: () => void mark: (event: RightPanePerfEvent, detail?: string) => void snapshot: () => RightPanePerfSnapshot start: () => void stop: () => void } } } /** Tiny production-safe callsite; the recorder exists only in dev/perf builds. */ export function markRightPanePerf(event: RightPanePerfEvent, detail?: string): void { window.__RIGHT_PANE_PERF__?.mark(event, detail) }