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

# lynx: performance readonly object

APISummary
This object provides access to performance metrics related to the current page.

## Instance Methods

[`createObserver()`](/next/api/lynx-api/lynx/lynx-performance/create-observer.md) Creates a [`PerformanceObserver`](/next/api/lynx-api/performance-api/performance-observer.md) object that will be used to receive performance events generated by Lynx engine.

[`profileStart()`](/next/api/lynx-api/lynx/lynx-performance/profile-start.md) Marks the start of a [trace event](https://perfetto.dev/docs/instrumentation/track-events).

[`profileEnd()`](/next/api/lynx-api/lynx/lynx-performance/profile-end.md) Marks the end of the most recent [trace event](https://perfetto.dev/docs/instrumentation/track-events).

[`profileMark()`](/next/api/lynx-api/lynx/lynx-performance/profile-mark.md) Marks an instant(point-in-time) event.

[`profileFlowId()`](/next/api/lynx-api/lynx/lynx-performance/profile-flow-id.md) Generates a unique flow id for [flow events](https://perfetto.dev/docs/instrumentation/track-events#flows).

[`isProfileRecording()`](/next/api/lynx-api/lynx/lynx-performance/is-profile-recording.md) Checks if trace recording is currently active.

[`getMemoryUsage()`](/next/api/lynx-api/lynx/lynx-performance/get-memory-usage.md) Added in Lynx 4.4. Asynchronously queries the current page's memory usage when memory monitoring is enabled.

## Compatibility

**Compatibility Table**

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

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| performance | Yes (2.3) | Yes (3.4) | Yes (2.3) | Yes (3.5) | Yes (3.5) | Yes |
| createObserver() | Yes (3.1) | Yes (3.4) | Yes (3.1) | Yes (3.5) | Yes (3.5) | No |
| getMemoryUsage() | Yes (4.4) | Yes (4.4) | Yes (4.4) | Yes (4.4) | Yes (4.4) | No |
| profileStart() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Yes |
| profileEnd() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Yes |
| profileMark() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Yes |
| profileFlowId() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Yes |
| isProfileRecording() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Partial |

**`performance`**

- **Web — Supported (version unknown):** Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

**`createObserver()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/create-observer)

**`getMemoryUsage()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/get-memory-usage)

**Specifications:**

**`profileStart()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/profile-start)

- **Web — Supported (version unknown):** Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

**`profileEnd()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/profile-end)

- **Web — Supported (version unknown):** Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

**`profileMark()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/profile-mark)

- **Web — Supported (version unknown):** Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

**`profileFlowId()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/profile-flow-id)

- **Web — Supported (version unknown):** Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

**`isProfileRecording()`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/lynx/performance.json) · [API Reference](/next/api/lynx-api/lynx/lynx-performance/is-profile-recording)

- **Web — Supported (version unknown):** Partial support; Reports whether the browser User Timing API (`performance.mark`/`performance.measure`) is available, not whether trace recording is currently active. In practice this is always `true` in a browser, so it cannot be used to gate profiling work the way it can on other platforms. Implemented since `@lynx-js/web-core@0.22.0` (lynx-family/lynx-stack#2874).

