PerformanceEntry 是一个基类接口,用于描述性能事件的完整数据。所有性能事件都继承并扩展它,常见的包括容器初始化、页面加载和渲染时间等。
所有性能事件汇总如下图所示:

表示 PerformanceEntry 类型的字符串。当前支持的类型有:init、metric 和 pipeline,其含义如下:
init: 记录 Lynx 页面显示前的初始化性能事件。metric: 记录性能指标事件,如 FCP(First Contentful Paint)和 ActualFMP(Actual First Meaningful Paint)。pipeline: 记录渲染过程的性能事件。resource: 记录资源加载的性能事件。以上取值所有对应的 PerformanceEntry 子类如下表所示:
| entryType | 子类型 |
|---|---|
init | InitContainerEntry, InitLynxviewEntry, InitBackgroundRuntimeEntry |
metric | MetricFcpEntry, MetricActualfmpEntry |
pipeline | PipelineEntry, LoadBundleEntry, ReloadBundleEntry |
resource | LazyBundleEntry |
表示 PerformanceEntry 名称的字符串。值取决于 PerformanceEntry 的具体类型。所有子类型对应的 name 如下表所示:
| 子类型 | name |
|---|---|
InitContainerEntry | container |
InitLynxviewEntry | lynxview |
InitBackgroundRuntimeEntry | backgroundRuntime |
MetricFcpEntry | fcp |
MetricActualFmpEntry | actualFmp |
PipelineEntry | updateTriggeredByBts, updateTriggeredByNative, updateGlobalProps, setNativeProps |
LoadBundleEntry | loadBundle, reloadBundleFromNative, reloadFromBts |
LazyBundleEntry | lazyBundle |
LCD tables only load in the browser