Skip to content

@tripo3d/lens / debug / WindowBridgeTap

Class: WindowBridgeTap ​

Defined in: src/debug/index.ts:14

DebugTap 的 window.postMessage 实现:向同源 devtools 广播内部观测(仅 debug 开启时装配)

Implements ​

Constructors ​

Constructor ​

ts
new WindowBridgeTap(): WindowBridgeTap;

Returns ​

WindowBridgeTap

Methods ​

begin() ​

ts
begin(raw): TraceScope;

Defined in: src/debug/index.ts:19

开启一条事件 trace:自增 traceId、广播 ingress(采样前原始形态),返回阶段作用域句柄

Parameters ​

ParameterType
rawRawEvent

Returns ​

TraceScope

Implementation of ​

DebugTap.begin


onQueue() ​

ts
onQueue(snap): void;

Defined in: src/debug/index.ts:30

队列 / 批次状态变化

Parameters ​

ParameterType
snapQueueDebugSnapshot

Returns ​

void

Implementation of ​

DebugTap.onQueue

基于 MIT 协议发布(内部使用)