UNPKG

@lynx-js/web-core

Version:

This is an internal experimental package, do not use

9 lines (8 loc) 438 B
import type { EventEmitter } from '../../../types/index.js'; import type { Rpc } from '@lynx-js/web-worker-rpc'; export type TimingSystem = { registerGlobalEmitter: (globalEventEmitter: EventEmitter) => void; markTimingInternal: (timingKey: string, pipelineId?: string) => void; pipelineIdToTimingFlags: Map<string, string[]>; }; export declare function createTimingSystem(mainThreadRpc: Rpc, uiThreadRpc: Rpc): TimingSystem;