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

# isProfileRecording()

APISummary
Checks if trace recording is currently active.

## Syntax

```typescript
isProfileRecording(): boolean
```

## Return Value

Return `true` if trace recording is currently active;

## Examples

```typescript
if (lynx.performance.isProfileRecording()) {
  lynx.performance.profileMark('RecordingIsActive');
}
```

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.lynx.performance.isProfileRecording()`

[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 |
| --- | --- | --- | --- | --- | --- | --- |
| isProfileRecording() | Yes (3.3) | Unknown | Yes (3.3) | Yes (3.5) | Yes (3.5) | Partial |

**`isProfileRecording()`**

- **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).

