From eb104eb06f1321cc23d9a4f16f6d28ebcbfda2ac Mon Sep 17 00:00:00 2001
From: Ian Clelland Extensions to the {{Performance}} interface
performance metric data from the Performance Timeline.
partial interface Performance {
- PerformanceEntryList getEntries ();
- PerformanceEntryList getEntriesByType (DOMString type);
- PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type);
+ PerformanceEntryList getEntries (optional boolean includeFrames = false);
+ PerformanceEntryList getEntriesByType (DOMString type, optional boolean includeFrames = false);
+ PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type, optional boolean includeFrames = false);
};
typedef sequence<PerformanceEntry> PerformanceEntryList;
@@ -276,22 +278,27 @@ Returns a PerformanceEntryList object returned by the
filter buffer map by name and type algorithm with
- name and type set to null.
null, and
+ includeFrames set to the method's input
+ includeFrames parameter.
Returns a PerformanceEntryList object returned by filter
buffer map by name and type algorithm with name set to
- null, and type set to the method's input
- type parameter.
null, type set to the method's input
+ type parameter, and includeFrames set to the
+ method's input includeFrames parameter.
Returns a PerformanceEntryList object returned by filter
buffer map by name and type algorithm with name set to
- the method input name parameter, and type set
- to null if optional `entryType` is omitted, or set to the
- method's input type parameter otherwise.
name parameter, type set to
+ either null if optional `entryType` is omitted, or the
+ method's input type parameter otherwise, and
+ includeFrames set to the method's input
+ includeFrames parameter.
0.
+ When toJSON is called, run [[WebIDL]]'s default toJSON steps.
+The toJSON method should not attempt to serialize + the source object reference.
The observe() method instructs the user agent to register @@ -557,6 +572,7 @@
PerformanceEntryTo queue a PerformanceEntry (newEntry), run - these steps:
+To queue a PerformanceEntry (newEntry) + with optional boolean traverse, run these steps:
PerformanceEntryPerformanceEntryWhen asked to run the filter buffer map by name and type - algorithm with optional name and type, run the - following steps:
+ algorithm with optional name, type, and + includeFrames, run the following steps:When asked to run the filter buffer by name and type - algorithm, with buffer, name, and type - as inputs, run the following steps:
+ algorithm, with buffer, name, type and + includeFrames as inputs, run the following steps:entryType attribute, continue to next entry.
@@ -885,6 +930,19 @@ This specification defines a [=configuration point=] with the name
+ share-performance-timeline-with. Its type is
+ set, and its default value is the empty set.
Set members must be strings representing origins, or the token `*`, + representing all origins.
+This integration requires a currently-non-specified + "set" type and "string" type in Document Policy.
+This specification extends the {{Performance}} interface defined by [[HR-TIME-3]] and
From 285408684da0002a8dd68ac5adf1dce0dccf1f5e Mon Sep 17 00:00:00 2001
From: Ian Clelland Extensions to the {{Performance}} interface
hosts performance related attributes and methods used to retrieve the
performance metric data from the Performance Timeline.
+ dictionary PerformanceEntryOptions {
+ DOMString type;
+ DOMString name;
+ boolean includeFrames;
+ };
+
partial interface Performance {
- PerformanceEntryList getEntries (optional boolean includeFrames = false);
- PerformanceEntryList getEntriesByType (DOMString type, optional boolean includeFrames = false);
- PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type, optional boolean includeFrames = false);
+ PerformanceEntryList getEntries (optional PerformanceEntryOptions options = {});
+ PerformanceEntryList getEntriesByType (DOMString type);
+ PerformanceEntryList getEntriesByName (DOMString name, optional DOMString type);
};
typedef sequence<PerformanceEntry> PerformanceEntryList;
The PerformanceEntryList represents a sequence of PerformanceEntry, providing developers with all the convenience methods found on JavaScript arrays.
+Returns a PerformanceEntryList object returned by the
filter buffer map by name and type algorithm with
- name and type set to null, and
- includeFrames set to the method's input
- includeFrames parameter.
options
+ parameter.
Returns a PerformanceEntryList object returned by filter
buffer map by name and type algorithm with name set to
null, type set to the method's input
- type parameter, and includeFrames set to the
- method's input includeFrames parameter.
type parameter, and includeFrames set to
+ false.
name parameter, type set to
either null if optional `entryType` is omitted, or the
method's input type parameter otherwise, and
- includeFrames set to the method's input
- includeFrames parameter.
+ includeFrames set to false.