| Index: third_party/WebKit/Source/core/timing/WorkerPerformance.idl
|
| diff --git a/third_party/WebKit/Source/core/timing/WorkerPerformance.idl b/third_party/WebKit/Source/core/timing/WorkerPerformance.idl
|
| index c36253860743c987724a057a971a2135620f8092..59f366dec1acaed5aa4856d080ec5df246cc2db7 100644
|
| --- a/third_party/WebKit/Source/core/timing/WorkerPerformance.idl
|
| +++ b/third_party/WebKit/Source/core/timing/WorkerPerformance.idl
|
| @@ -36,28 +36,28 @@
|
| [
|
| NoInterfaceObject
|
| ] interface WorkerPerformance : EventTarget {
|
| - DOMHighResTimeStamp now();
|
| + [Measure] DOMHighResTimeStamp now();
|
|
|
| // Performance Timeline
|
| // https://w3c.github.io/performance-timeline/#the-performance-interface
|
| // TODO(foolip): getEntries() should take an optional FilterOptions argument.
|
| - PerformanceEntryList getEntries();
|
| - PerformanceEntryList getEntriesByType(DOMString entryType);
|
| - PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType = null);
|
| + [Measure] PerformanceEntryList getEntries();
|
| + [Measure] PerformanceEntryList getEntriesByType(DOMString entryType);
|
| + [Measure] PerformanceEntryList getEntriesByName(DOMString name, optional DOMString entryType = null);
|
|
|
| // Resource Timing
|
| // https://w3c.github.io/resource-timing/#extensions-performance-interface
|
| - void clearResourceTimings();
|
| - void setResourceTimingBufferSize(unsigned long maxSize);
|
| - attribute EventHandler onresourcetimingbufferfull;
|
| + [Measure] void clearResourceTimings();
|
| + [Measure] void setResourceTimingBufferSize(unsigned long maxSize);
|
| + [Measure] attribute EventHandler onresourcetimingbufferfull;
|
|
|
| // User Timing
|
| // https://w3c.github.io/user-timing/#extensions-performance-interface
|
| - [RaisesException] void mark(DOMString markName);
|
| - void clearMarks(optional DOMString markName = null);
|
| + [Measure, RaisesException] void mark(DOMString markName);
|
| + [Measure] void clearMarks(optional DOMString markName = null);
|
|
|
| - [RaisesException] void measure(DOMString measureName, optional DOMString startMark = null, optional DOMString endMark = null);
|
| - void clearMeasures(optional DOMString measureName = null);
|
| + [Measure, RaisesException] void measure(DOMString measureName, optional DOMString startMark = null, optional DOMString endMark = null);
|
| + [Measure] void clearMeasures(optional DOMString measureName = null);
|
|
|
| // TODO(foolip): There is no spec for the Memory Info API, see blink-dev:
|
| // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJz71NmPwJ
|
|
|