MetricActualFmpEntry

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:

Example

This example demonstrates how to generate and obtain a MetricActualFmpEntry.

Instance Properties

entryType

entryType: string;

The type of performance event; the value for all instances of this class is fixed as metric.

name

name: string;

The specific name of the performance event; the value for all instances of this class is fixed as actualFmp.

actualFmp

actualFmp: PerformanceMetric;

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.

lynxActualFmp

lynxActualFmp: PerformanceMetric;

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.

totalActualFmp

totalActualFmp: PerformanceMetric;

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.

Compatibility

Loading

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.