For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/api/lynx-api/lynx/lynx-performance.md.
Lynx
  • 简体中文
  • lynx: performance readonly object

    通过该对象访问当前页面与性能指标有关的信息。

    实例方法

    createObserver() 创建一个 PerformanceObserver 对象,该对象将用于接收 Lynx 引擎产生的性能事件。

    profileStart() 标记一个 trace event 的开始。

    profileEnd() 标记最近的 trace event 的结束。

    profileMark() 标记一个即时(没有持续时间) trace event。

    profileFlowId() 为 flow events 生成一个唯一的 flow id.

    isProfileRecording() 检查当前是否正在进行 trace 录制。

    兼容性

    LCD tables only load in the browser

    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。