For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-api/performance-api/performance-metric.md.
Lynx
  • English
  • PerformanceMetric BTS

    Describes the type that includes the performance metric name, metric value, and start/end timestamps.

    In Lynx, several metric types are provided, such as MetricFcpEntry and MetricActualFmpEntry. Each metric type contains multiple metrics based on different starting points (for example, MetricFcpEntry includes metrics like fcp, lynxFcp, and totalFcp). To better describe the duration and timestamps of each metric, the PerformanceMetric type is designed.

    Attributes

    name

    name: string;

    The name of the metric, such as fcp, lynxFcp, totalFcp, etc.

    duration

    duration: number;

    The metric value in milliseconds with a microsecond precision(0.001ms). An example value is 100.099.

    The calculation formula is: duration = endTimestamp - startTimestamp.

    startTimestampName

    startTimestampName: string;

    The name of the metric's start timestamp, such as loadBundleStart in LoadBundleEntry.

    startTimestamp

    startTimestamp: number;

    The start timestamp of the metric, an Unix timestamp in milliseconds with a microsecond precision(0.001ms). An example value is 1739594612307.429.

    endTimestampName

    endTimestampName: string;

    The name of the metric's end timestamp, such as paintEnd in LoadBundleEntry.

    endTimestamp

    endTimestamp: number;

    The end timestamp of the metric, an Unix timestamp in milliseconds with a microsecond precision(0.001ms). An example value is 1739594612307.429.

    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.