W3cubDocs

/Web APIs

PerformanceMeasure: detail property

The read-only detail property returns arbitrary metadata that was included in the mark upon construction (when using performance.measure().

Value

Returns the value it was set to (from markOptions of performance.measure()).

Examples

The following example demonstrates the detail property.

js

performance.measure("dog", { detail: "labrador", start: 0, end: 12345 });

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

dogEntries[0].detail; // labrador

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
detail 78 79 103 No 65 14.1 78 78 103 56 14.5 12.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure/detail