Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. PerformanceMark

PerformanceMark

Baseline Widely available

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

Note: This feature is available inWeb Workers.

PerformanceMark is an interface forPerformanceEntry objects with anentryType of"mark".

Entries of this type are typically created by callingperformance.mark() to add anamedDOMHighResTimeStamp (themark) to the browser's performance timeline. To create a performance mark that isn't added to the browser's performance timeline, use the constructor.

PerformanceEntry PerformanceMark

Constructor

PerformanceMark()

Creates a newPerformanceMark object that isn't added to the browser's performance timeline.

Instance properties

PerformanceMark.detail

Contains arbitrary metadata about the measure.

This interface extends the followingPerformanceEntry properties by qualifying/constraining the properties as follows:

PerformanceEntry.entryTypeRead only

Returns"mark".

PerformanceEntry.nameRead only

Returns the name given to the mark when it was created via a call toperformance.mark().

PerformanceEntry.startTimeRead only

Returns theDOMHighResTimeStamp whenperformance.mark() was called.

PerformanceEntry.durationRead only

Returns0. (A mark has noduration.)

Instance methods

This interface has no methods.

Example

See the example inUsing the User Timing API.

Chrome DevTools usesperformance.mark() and in particular a structureddetail property as part of its extensibility API that surfaces these in custom tracks in performance traces. See the example inPerformance: mark() method page and theChrome's extensibility API documentation for more information and examples.

Specifications

Specification
User Timing
# performancemark

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp