Actual FMP is a key performance metric that measures the time required for the rendering of the "real data" of a page to complete. It reflects how quickly users see the actual data on the page. MetricActualFmpEntry
is the data type used to describe this metric, inheriting from PerformanceEntry
.
You can generate this metric by marking the rendering completion timing of important components with __lynx_timing_flag="__lynx_timing_actual_fmp"
.
In actual business rendering, the timing for Actual FMP is as follows:
Depending on different starting points, Lynx provides three metrics: actualFmp
, lynxActualFmp
, and totalActualFmp
. Each metric's definition in the rendering process is illustrated in the diagram below:
This example demonstrates how to generate and obtain a MetricActualFmpEntry
.
The type of performance event; the value for all instances of this class is fixed as metric
.
The specific name of the performance event; the value for all instances of this class is fixed as actualFmp
.
The time taken from preparing the TemplateBundle to the completion of rendering for components and tags marked with __lynx_timing_flag="__lynx_timing_actual_fmp"
, with a data type of PerformanceMetric
.
Calculation formula: actualFmp = PipelineEntry.paintEnd - InitContainerEntry.prepareTemplateStart
.
The time taken from executing the TemplateBundle to the completion of rendering for components and tags marked with __lynx_timing_flag="__lynx_timing_actual_fmp"
, with a data type of PerformanceMetric
.
Calculation formula: lynxActualFmp = PipelineEntry.paintEnd - LoadBundleEntry.loadBundleStart
.
The time taken from the user opening the page to the completion of rendering for components and tags marked with __lynx_timing_flag="__lynx_timing_actual_fmp"
, with a data type of PerformanceMetric
.
Calculation formula: totalActualFmp = PipelineEntry.paintEnd - InitContainerEntry.openTime
.