性能衡量


🌐 Performance measurement

QUIC 会话、流和端点会发出 PerformanceEntry 对象,entryType 设置为 'quic'。这些条目仅在 PerformanceObserver 正在观察 'quic' 条目类型时创建,确保在未使用时零开销。

🌐 QUIC sessions, streams, and endpoints emit PerformanceEntry objects with entryType set to 'quic'. These entries are only created when a PerformanceObserver is observing the 'quic' entry type, ensuring zero overhead when not in use.

每个条目提供:

🌐 Each entry provides:

  • name <string> 'QuicEndpoint''QuicSession''QuicStream' 中的一个。
  • entryType <string> 总是 'quic'
  • startTime <number> 对象创建时的高分辨率时间戳(毫秒)。
  • duration <number> 从创建到销毁的生命周期(以毫秒为单位)。
  • detail <Object> 条目特定的元数据(见下文)。