PerformanceMark: detail プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2015.

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

読み取り専用の detail プロパティは、(performance.mark() または PerformanceMark() コンストラクターを使用して)構築時にマークに記載された任意のメタデータを返します。

performance.mark()markOptions または PerformanceMark() コンストラクターから)設定された値を返します。

次の例は、detail プロパティの使い方を示しています。

js
performance.mark("dog", { detail: "labrador" });

const dogEntries = performance.getEntriesByName("dog");

dogEntries[0].detail; // labrador

仕様書

Specification
User Timing
# dom-performancemark-detail

ブラウザーの互換性