--- title: Performance slug: Web/API/Performance tags: - API - Web パフォーマンス - インターフェイス - ナビゲーションタイミング - パフォーマンス - リファレンス translation_of: Web/API/Performance ---
{{APIRef("High Resolution Time")}}
Performance インターフェイスは、現在のページのパフォーマンス関連情報へのアクセスを提供します。これはHigh Resolution Time API の一部ですが、Performance Timeline API、Navigation Timing API、User Timing API、および Resource Timing API によって拡張されています。
このタイプのオブジェクトは読み取り専用属性 {{domxref("window.performance")}} を呼び出すことで取得できます。
メモ: このインターフェイスとそのメンバーは、以下に示されている場合を除き、Web Workers で利用可能です。 パフォーマンスマーカーと測定値はコンテキストごとにあることにも注意してください。メインスレッド (または他のワーカー) にマークを作成した場合、それを Worker スレッドには表示できません (その逆も同様)。
Performance インターフェイスはプロパティを継承しません。
timing にリストされている時間に含まれる操作に関する有用なコンテキストを提供するレガシー {{domxref("PerformanceNavigation")}} オブジェクト。Worker では利用できません。Performance インターフェイスはメソッドを継承しません。
resource" の {{domxref("PerformanceEntry.entryType","entryType")}} を持つすべての {{domxref("PerformanceEntry","performance entries")}} を削除します。resource" {{domxref("PerformanceEntry.entryType","タイプ")}} {{domxref("PerformanceEntry","パフォーマンスエントリ")}} オブジェクトに設定します。Performance オブジェクトを表す json オブジェクトを返す jsonizer です。addEventListener() を使用するか、このインターフェイスの oneventname プロパティにイベントリスナを割り当てることで、イベントを監視します。
resourcetimingbufferfullonresourcetimingbufferfull プロパティからも利用できます。| 仕様 | ステータス | コメント |
|---|---|---|
| {{SpecName('Highres Time Level 2', '#the-performance-interface', 'toJSON()')}} | {{Spec2('Highres Time Level 2')}} | toJson() メソッドを定義します。 |
| {{SpecName('Highres Time', '#the-performance-interface', 'Performance')}} | {{Spec2('Highres Time')}} | now() メソッドを定義します。. |
| {{SpecName('Navigation Timing', '#sec-window.performance-attribute', 'Performance')}} | {{Spec2('Navigation Timing')}} | timing と navigation プロパティを定義します。 |
| {{SpecName('Performance Timeline Level 2', '#extensions-to-the-performance-interface', 'Performance extensions')}} | {{Spec2('Performance Timeline Level 2')}} | getEntries() インターフェイスを変更します。 |
| {{SpecName('Performance Timeline', '#sec-window.performance-attribute', 'Performance extensions')}} | {{Spec2('Performance Timeline')}} | getEntries()、getEntriesByType() および getEntriesByName() メソッドを定義します。 |
| {{SpecName('Resource Timing', '#extensions-performance-interface', 'Performance extensions')}} | {{Spec2('Resource Timing')}} | clearResourceTimings() と setResourceTimingBufferSize() メソッド、そして onresourcetimingbufferfull プロパティを定義します。 |
| {{SpecName('User Timing Level 2', '#extensions-performance-interface', 'Performance extensions')}} | {{Spec2('User Timing Level 2')}} | mark()、clearMark()、measure() および clearMeasure() インターフェイスを明確にします。 |
| {{SpecName('User Timing', '#extensions-performance-interface', 'Performance extensions')}} | {{Spec2('User Timing')}} | mark(), clearMark(), measure() および clearMeasure() インターフェイスを定義します。 |
{{Compat("api.Performance")}}