Skip to main content
Console.profile - node__console.d.ts - Node documentation
method Console.profile

Usage in Deno

```typescript import { type Console } from "node:node__console.d.ts"; ```
Console.profile(label?: string): void
This method does not display anything unless used in the inspector. The `console.profile()` method starts a JavaScript CPU profile with an optional label until profileEnd is called. The profile is then added to the Profile panel of the inspector. ```js console.profile('MyLabel'); // Some code console.profileEnd('MyLabel'); // Adds the profile 'MyLabel' to the Profiles panel of the inspector. ```

Parameters

optional
label: string

Return Type

void