跳转到内容

DiagnosticsSink

此内容尚不支持你的语言。

DiagnosticsSink = (events) => void

Defined in: diagnostics/Diagnostics.ts:47

Where a game sends its diagnostics. Receives DISTINCT events with counts, not individual occurrences.

Called on the game’s own thread with whatever has accumulated. It must not throw — one that does is caught and dropped — and it should not block: a sink that awaits a network round-trip inside the frame has traded a bug report for a stutter. Batch and send it yourself.

readonly DiagnosticEvent[]

void