web api interface
PerformanceMeasure
Available in workers
PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser’s performance timeline.
Instance properties
detail- : Contains arbitrary metadata about the measure.
This interface extends the following PerformanceEntry properties by qualifying/constraining the properties as follows:
entryType- : Returns
"measure".
- : Returns
name- : Returns the name given to the measure when it was created via a call to
performance.measure().
- : Returns the name given to the measure when it was created via a call to
startTime- : Returns a
timestampgiven to the measure whenperformance.measure()was called.
- : Returns a
duration- : Returns a
DOMHighResTimeStampthat is the duration of the measure (typically, the measure’s end mark timestamp minus its start mark timestamp).
- : Returns a
Instance methods
This interface has no methods.
Example
See the example in Using the User Timing API.
Chrome DevTools uses performance.measure() and in particular a structured detail property as part of its extensibility API that surfaces these in custom tracks in performance traces. See the example in Performance: measure() method page and the Chrome’s extensibility API documentation for more information and examples.