method Console.profile
Jump to headingConsole.profile(label?: string): void
Starts recording a performance profile
Examples Jump to heading
Jump to heading
Example 1
Example 1
console.profile('Performance Profile');
// ... code to profile
console.profileEnd('Performance Profile');
Parameters Jump to heading
optional
Jump to headinglabel: string
Profile label
Return Type Jump to heading
void