TimingPort

interface TimingPort

What a host has to be able to do for ir.timing and ir.profile to work.

A port for the usual reason — console.timeStamp and performance.measure are host globals whose types are not in scope here — and wait is on it for the same reason now is on Host: setTimeout is a DOM or Node facility and packages/* pulls in neither library.

devtools/src/profile.ts:38

Members

droppedFrameMsreadonly

droppedFrameMs: number

Where a frame stops being jitter and becomes a dropped frame.

Taken from the host rather than defaulted here, because the whole point of moving it out of PerfPanel.tsx was that one definition of over-budget should color the plot, the trace entry and this report.

drain

drain() → readonly TimingEntry[]

Retained entries, cleared by name on the way out.

level

level() → string

The current level, by name. The vocabulary is the host's.

mark

mark(name: string) → void

Plant a marker mid-script, so an agent can bracket its own steps.

namestring
Undocumented

setLevel

setLevel(level: string) → void
levelstring
Undocumented

tracks

tracks() → readonly string[]

Tracks this session has actually emitted onto, not tracks it declares.

wait

wait(ms: number) → Promise<void>

Wall-clock delay, for profile's recording window.

msnumber
Undocumented