PerformanceEntry

PerformanceEntry is a base interface used to describe the complete data of performance events. All performance events inherit from and extend it, commonly including container initialization, page loading, and rendering times.

All performance events are summarized in the figure below:

Instance Properties

entryType

entryType: string;

Represents a string indicating the type of PerformanceEntry. The currently supported types are: init, metric, and pipeline, with the following meanings:

  • init: Records performance events for the initialization process before the Lynx page is displayed.
  • metric: Records performance metric events, such as FCP (First Contentful Paint), TTI (Time to Interactive), and ActualFMP (Actual First Meaningful Paint).
  • pipeline: Records performance events during the rendering process.

The corresponding subclasses for each entryType value are shown in the table below.

entryTypesubclasses
initInitContainerEntry, InitLynxviewEntry, InitBackgroundRuntimeEntry
metricMetricFcpEntry, MetricActualfmpEntry
pipelinePipelineEntry, LoadBundleEntry

name

name: string;

A string representing the name of the PerformanceEntry. The value depends on the specific type of the PerformanceEntry object. The corresponding names for all subtypes are shown in the table below:

subclassesname
InitContainerEntrycontainer
InitLynxviewEntrylynxview
InitBackgroundRuntimeEntrybackgroundRuntime
MetricFcpEntryfcp
MetricActualFmpEntryactualFmp
PipelineEntryupdateTriggeredByBts, updateTriggeredByNative, updateGlobalProps, setNativeProps
LoadBundleEntryloadBundle, reloadBundle, reloadFromBts

Compatibility

LCD tables only load in the browser

Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.