/**
 * Surface performance domain state — tracks render performance,
 * frame rates, and input responsiveness metrics across host UIs.
 */
/**
 * Returns the default initial state for the surface performance domain.
 */
export function createInitialSurfacePerfState() {
    return {
        revision: 0,
        lastUpdatedAt: 0,
        source: 'init',
        totalRenderCycles: 0,
        avgRenderMs: 0,
        maxRenderMs: 0,
        overBudgetCount: 0,
        budgetStatus: 'ok',
        targetBudgetMs: 16,
        recentCycles: [],
        maxCycleBuffer: 60,
        avgInputLatencyMs: 0,
        maxInputLatencyMs: 0,
        recentInputLatency: [],
        heapUsedBytes: 0,
        rssBytes: 0,
        lastMemorySampleAt: undefined,
    };
}
