Skip to main content
Console.profile - Web documentation
method Console.profile
Private
Console.profile(label?: string): void

Starts recording a performance profile

Examples

Example 1

console.profile('Performance Profile');
// ... code to profile
console.profileEnd('Performance Profile');

Parameters

optional
label: string

Profile label

Return Type

void
Back to top