> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# PerformanceEntry

APISummary
`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](/next/guide/spec.md#container) initialization, page loading, and rendering times.

All performance events are summarized in the figure below:

![](https://lf-lynx.tiktok-cdns.com/obj/lynx-artifacts-oss-sg/plugin/static/performance-entry-3-7-compressed.png)
## Instance Properties

### entryType

```tsx
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.
- **`resource`**: Records performance events for resource loading.

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

|  entryType |                                                                                                                                                            subclasses                                                                                                                                                           |
| :--------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|   `init`   | [`InitContainerEntry`](/next/api/lynx-api/performance-api/performance-entry/init-container-entry.md), [`InitLynxviewEntry`](/next/api/lynx-api/performance-api/performance-entry/init-lynxview-entry.md), [`InitBackgroundRuntimeEntry`](/next/api/lynx-api/performance-api/performance-entry/init-background-runtime-entry.md) |
|  `metric`  |                                                             [`MetricFcpEntry`](/next/api/lynx-api/performance-api/performance-entry/metric-fcp-entry.md), [`MetricActualfmpEntry`](/next/api/lynx-api/performance-api/performance-entry/metric-actual-fmp-entry.md)                                                             |
| `pipeline` |                  [`PipelineEntry`](/next/api/lynx-api/performance-api/performance-entry/pipeline-entry.md), [`LoadBundleEntry`](/next/api/lynx-api/performance-api/performance-entry/load-bundle-entry.md), [`ReloadBundleEntry`](/next/api/lynx-api/performance-api/performance-entry/reload-bundle-entry.md)                  |
| `resource` |                                                                                                                  [`LazyBundleEntry`](/next/api/lynx-api/performance-api/performance-entry/lazy-bundle-entry.md)                                                                                                                 |

### name

```tsx
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:

|                                                       subclasses                                                      |                                           name                                           |
| :-------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------: |
|          [`InitContainerEntry`](/next/api/lynx-api/performance-api/performance-entry/init-container-entry.md)         |                                        `container`                                       |
|           [`InitLynxviewEntry`](/next/api/lynx-api/performance-api/performance-entry/init-lynxview-entry.md)          |                                        `lynxview`                                        |
| [`InitBackgroundRuntimeEntry`](/next/api/lynx-api/performance-api/performance-entry/init-background-runtime-entry.md) |                                    `backgroundRuntime`                                   |
|              [`MetricFcpEntry`](/next/api/lynx-api/performance-api/performance-entry/metric-fcp-entry.md)             |                                           `fcp`                                          |
|       [`MetricActualFmpEntry`](/next/api/lynx-api/performance-api/performance-entry/metric-actual-fmp-entry.md)       |                                        `actualFmp`                                       |
|               [`PipelineEntry`](/next/api/lynx-api/performance-api/performance-entry/pipeline-entry.md)               | `updateTriggeredByBts`, `updateTriggeredByNative`, `updateGlobalProps`, `setNativeProps` |
|             [`LoadBundleEntry`](/next/api/lynx-api/performance-api/performance-entry/load-bundle-entry.md)            |                  `loadBundle`, `reloadBundleFromNative`, `reloadFromBts`                 |
|             [`LazyBundleEntry`](/next/api/lynx-api/performance-api/performance-entry/lazy-bundle-entry.md)            |                                       `lazyBundle`                                       |

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.performance-api.performance-entry`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/performance-api/performance-entry.json)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| performance-entry | Yes (3.1) | Yes (3.4) | Yes (3.1) | Yes (3.7) | Yes (3.7) | No |

