console.profile([label])
添加於:v8.0.0
參數
label
<string>
除非在檢查器中使用,否則此方法不會顯示任何內容。 console.profile()
方法使用可選標簽啟動 JavaScript CPU 配置文件,直到調用
。然後將配置文件添加到檢查器的配置文件麵板中。console.profileEnd()
console.profile('MyLabel');
// Some code
console.profileEnd('MyLabel');
// Adds the profile 'MyLabel' to the Profiles panel of the inspector.
相關用法
- Node.js console.profile()用法及代碼示例
- Node.js console.profileEnd()用法及代碼示例
- Node.js console.timeEnd()用法及代碼示例
- Node.js console.countReset()用法及代碼示例
- Node.js console.trace()用法及代碼示例
- Node.js console.timeLog()用法及代碼示例
- Node.js console.timeStamp()用法及代碼示例
- Node.js console.dir()用法及代碼示例
- Node.js console.log()用法及代碼示例
- Node.js console.clear()用法及代碼示例
- Node.js console.assert()用法及代碼示例
- Node.js console.groupEnd()用法及代碼示例
- Node.js console.debug()用法及代碼示例
- Node.js console.dirxml()用法及代碼示例
- Node.js console.table()用法及代碼示例
- Node.js console.warn()用法及代碼示例
- Node.js console.group()用法及代碼示例
- Node.js console.groupCollapsed()用法及代碼示例
- Node.js console.info()用法及代碼示例
- Node.js console.time()用法及代碼示例
- Node.js console.error()用法及代碼示例
- Node.js console.count()用法及代碼示例
- Node.js certificate.verifySpkac(spkac[, encoding])用法及代碼示例
- Node.js child_process.spawn(command[, args][, options])用法及代碼示例
- Node.js crypto.randomFill()用法及代碼示例
注:本文由純淨天空篩選整理自nodejs.org大神的英文原創作品 console.profile([label])。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。