InitContainerEntry

InitContainerEntry 接口提供了 Lynx 页面显示前容器准备工作的关键时间点,它继承自 PerformanceEntry

在初始化流程中,指标的定义如下图: container 初始化的关键时间

INFO

该事件内的时间戳依赖容器通过 LynxView.setExtraTiming 提供。

示例

该示例展示了如何获取 InitContainerEntry

实例属性

entryType

entryType: string;

性能事件的类型,当前类所有实例的值均固定为 init

name

name: string;

性能事件的名称,当前类所有实例的值均固定为 container

openTime

openTime: number;

容器开始打开 Lynx 页面的时间。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒),精确到小数点后三位。例如:1739594612307.429。

containerInitStart

containerInitStart: number;

容器初始化开始的时间。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒),精确到小数点后三位。例如:1739594612307.429。

containerInitEnd

containerInitEnd: number;

容器初始化完毕的时间。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒),精确到小数点后三位。例如:1739594612307.429。

prepareTemplateStart

prepareTemplateStart: number;

容器开始准备 TemplateBundle 的时间。“准备”指容器通过网络下载、加载本地缓存等任意方式获得 TemplateBundle。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒),精确到小数点后三位。例如:1739594612307.429。

prepareTemplateEnd

prepareTemplateEnd: number;

容器准备完 TemplateBundle 的时间。“准备”指容器通过通过网络下载、加载本地缓存等任意方式获得 TemplateBundle。该时间戳是一个表示为浮点型的 Unix 时间戳(单位:毫秒),精确到小数点后三位。例如:1739594612307.429。

兼容性

LCD tables only load in the browser

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