#if DEBUG /// Opt-in operation counters for the simulator presentation benchmark. These /// measure work, not frames; CADisplayLink sampling lives in the test target. @MainActor enum AgentRenderDiagnostics { static var enabled = false static var counts: [String: Int] = [:] static func record(_ operation: String) { guard enabled else { return } counts[operation, default: 0] += 1 } } #endif