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

# console: profile() method

APISummary
`profile` starts recording a performance profile.

## Syntax

```ts
profile(profileName: string): undefined;
```

### Parameters

#### profileName

The name to give the profile.

### return value

None(`undefined`).

## Compatibility

**Compatibility Table**

**Query:** `lynx-api.global.console.profile`

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

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| profile | Yes (2.1) | Yes (3.4) | Yes (2.1) | Yes (3.5) | Yes (3.5) | Yes |

**`profile`**

output a message

