PerformanceMark

PerformanceMark is an abstract interface for PerformanceEntry objects with an entryType of " mark ". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark ) to the browser's performance timeline .

特性

This interface has no properties but it extends the following PerformanceEntry properties by qualifying/constraining the properties as follows:

PerformanceEntry.entryType
Returns " mark ".
PerformanceEntry.name
Returns the name given to the mark when it was created via a call to performance.mark() .
PerformanceEntry.startTime
返回 DOMHighResTimeStamp when performance.mark() was called.
PerformanceEntry.duration
Returns " 0 ". (A mark has no duration .)

方法

This interface has no methods.

范例

See the example in Using the User Timing API .

规范

规范 状态 Comment
User Timing Level 2
The definition of 'PerformanceMark' in that specification.
工作草案
User Timing
The definition of 'PerformanceMark' in that specification.
Recommendation Basic definition.

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
PerformanceMark Chrome 43 Edge 12 Firefox 41 IE 10 Opera 33 Safari 11 WebView Android 43 Chrome Android 43 Firefox Android 42 Opera Android 33 Safari iOS 11 Samsung Internet Android 4.0

图例

完整支持
完整支持

另请参阅