console.profile()
非標準: この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
console.profile()
はパフォーマンスプロファイル(例えば Firefox の パフォーマンスツール)の記録を開始します。
任意でプロファイル名を引数として与えることができ、複数のプロファイルを記録している場合に特定のプロファイルのみ停止することができます。引数の解釈方法については、console.profileEnd()
をご覧ください。
console.profileEnd()
を呼び出すと、記録を終了します。
メモ: この機能はウェブワーカー内で利用可能です。
構文
js
profile(profileName);
引数
profileName
-
プロファイルにつける名前。省略可能です。
返値
なし (undefined
)。
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
profile() static method |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- User must explicitly enable this feature.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.