console.profileEnd()
非標準: この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
警告: console.profile() の直後に本 API を呼び出すと、本 API が動作しないことがあります。これを回避するには、 setTimeout の中で 5ms 以上遅延させて呼び出してください。 Firefox バグ 1240249 を参照してください。
console.profileEnd()
メソッドは、 console.profile()
で開始したプロファイルの記録を終了します。
任意で引数にプロファイル名を与えることができます。引数を与えると、複数のプロファイルを記録している場合に特定のプロファイルのみ停止することができます。
console.profileEnd()
に記録中のプロファイル名に一致する名称を渡すと、そのプロファイルを終了します。console.profileEnd()
に記録中のプロファイル名に一致しない名称を渡すと、何も行いません。console.profileEnd()
にプロファイル名を渡さない場合は、直近に開始したプロファイルを終了します。
メモ: この機能はウェブワーカー内で利用可能です。
構文
js
profileEnd(profileName);
引数
profileName
-
プロファイルにつける名前。この引数は省略可能です。
返値
なし (undefined
)。
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
profileEnd() 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.