Definition
High Resolution Time defines Performance
[Exposed=(Window,Worker)]
interface Performance : EventTarget {
DOMHighResTimeStamp now();
readonly attribute DOMHighResTimeStamp timeOrigin;
[Default] object toJSON();
};
This interface is extended in the following specifications:
- Measure Memory API
partial interface Performance { [Exposed=(Window,ServiceWorker,SharedWorker), CrossOriginIsolated] Promise<MemoryMeasurement> measureUserAgentSpecificMemory(); };
- Event Timing API
[Exposed=Window] partial interface Performance { [SameObject] readonly attribute EventCounts eventCounts; readonly attribute unsigned long long interactionCount; };
- Navigation Timing Level 2
[Exposed=Window] partial interface Performance { [SameObject] readonly attribute PerformanceTiming timing; };
- Performance Timeline
partial interface Performance { PerformanceEntryList getEntries (); PerformanceEntryList getEntriesByType (DOMString type); PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type); };
- Resource Timing
partial interface Performance { undefined clearResourceTimings (); undefined setResourceTimingBufferSize (unsigned long maxSize); attribute EventHandler onresourcetimingbufferfull; };
- User Timing
partial interface Performance { PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions = {}); undefined clearMarks(optional DOMString markName); PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions = {}, optional DOMString endMark); undefined clearMeasures(optional DOMString measureName); };
Consolidated IDL (across mixin and partials)
[Exposed=(Window,Worker)]
interface Performance : EventTarget {
DOMHighResTimeStamp now();
readonly attribute DOMHighResTimeStamp timeOrigin;
[Default] object toJSON();
[Exposed=(Window,ServiceWorker,SharedWorker), CrossOriginIsolated] Promise<MemoryMeasurement> measureUserAgentSpecificMemory();
[SameObject] readonly attribute EventCounts eventCounts;
readonly attribute unsigned long long interactionCount;
[SameObject]
readonly attribute PerformanceTiming timing;
PerformanceEntryList getEntries ();
PerformanceEntryList getEntriesByType (DOMString type);
PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type);
undefined clearResourceTimings ();
undefined setResourceTimingBufferSize (unsigned long maxSize);
attribute EventHandler onresourcetimingbufferfull;
PerformanceMark mark(DOMString markName, optional PerformanceMarkOptions markOptions = {});
undefined clearMarks(optional DOMString markName);
PerformanceMeasure measure(DOMString measureName, optional (DOMString or PerformanceMeasureOptions) startOrMeasureOptions = {}, optional DOMString endMark);
undefined clearMeasures(optional DOMString measureName);
};
Methods and attributes that return objects implementing Performance
Referring IDL interfaces/dictionaries
Referring specifications
- Measure Memory API refers to
Performance
- Event Timing API refers to
Performance
- Navigation Timing Level 2 refers to
Performance
- Performance Timeline refers to
Performance
- Resource Timing refers to
Performance
- User Timing refers to
Performance