Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
Since December 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
EventCounts はパフォーマンス APIのインターフェイスで、それぞれのイベント型で配信されたイベントの数を提供します。
EventCounts インスタンスは読み取り専用の Map 風オブジェクトで、各キーはイベント型の名前の文字列で、対応する値はそのイベント型で配信されたイベントの数を示す整数です。
このインターフェイスにはコンストラクターがありません。通常は performance.eventCounts プロパティを使用してこのオブジェクトのインスタンスを取得します。
詳しくは Map.prototype.size を参照してください。
詳しくは Map.prototype.entries() を参照してください。
forEach()詳しくは Map.prototype.forEach() を参照してください。
get()詳しくは Map.prototype.get() を参照してください。
has()詳しくは Map.prototype.has() を参照してください。
keys()詳しくは Map.prototype.keys() を参照してください。
values()詳しくは Map.prototype.values() を参照してください。
以下は EventCounts マップから情報を取得するいくつかの例です。マップは読み取り専用のため、 clear(), delete(), set() メソッドは利用できないことに注意してください。
| Event Timing API # sec-event-counts |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2024年5月16日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.