Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: third_party/WebKit/Source/core/timing/WorkerPerformance.idl

Issue 2572003003: NOT FOR SUBMIT: use counters for jdm@
Patch Set: Merge branch 'jdm-usecounters' into jdm-merge Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698