console.timeStamp()
非標準: この機能は標準ではなく、標準化の予定もありません。公開されているウェブサイトには使用しないでください。ユーザーによっては使用できないことがあります。実装ごとに大きな差があることもあり、将来は振る舞いが変わるかもしれません。
console.timeStamp
メソッドは、単一のマーカーをブラウザーのパフォーマンスツール(Firefox, Chrome)に追加します。これにより、コード内のポイントを、タイムライン上に記録されたほかのポイント、例えばレイアウトや描画のイベントなどと結びつけることができます。
任意で、引数を指定してタイムラインにラベル付することができ、このラベルはマーカーのそばに表示されます。
メモ: この機能はウェブワーカー内で利用可能です。
構文
js
timeStamp(label);
引数
label
-
タイムスタンプのラベル。省略可能です。
返値
なし (undefined
)。
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timeStamp() 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.