| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 // https://w3c.github.io/hr-time/#the-performance-interface | 32 // https://w3c.github.io/hr-time/#the-performance-interface |
| 33 | 33 |
| 34 // TODO(foolip): This interface should be [Exposed=(Window,Worker)]. Doing that | 34 // TODO(foolip): This interface should be [Exposed=(Window,Worker)]. Doing that |
| 35 // would allow the WorkerPerformance interface to be merged into this. | 35 // would allow the WorkerPerformance interface to be merged into this. |
| 36 // TODO(foolip): None of the optional DOMString arguments in this interface | 36 // TODO(foolip): None of the optional DOMString arguments in this interface |
| 37 // should have a default value. | 37 // should have a default value. |
| 38 [ | 38 interface Performance : EventTarget { |
| 39 ] interface Performance : EventTarget { | |
| 40 DOMHighResTimeStamp now(); | 39 DOMHighResTimeStamp now(); |
| 41 | 40 |
| 42 // Performance Timeline | 41 // Performance Timeline |
| 43 // https://w3c.github.io/performance-timeline/#the-performance-interface | 42 // https://w3c.github.io/performance-timeline/#the-performance-interface |
| 44 // TODO(foolip): getEntries() should take an optional FilterOptions argument
. | 43 // TODO(foolip): getEntries() should take an optional FilterOptions argument
. |
| 45 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntries(); | 44 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntries(); |
| 46 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByT
ype(DOMString entryType); | 45 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByT
ype(DOMString entryType); |
| 47 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByN
ame(DOMString name, optional DOMString entryType = null); | 46 [MeasureAs=UnprefixedPerformanceTimeline] PerformanceEntryList getEntriesByN
ame(DOMString name, optional DOMString entryType = null); |
| 48 | 47 |
| 49 // Resource Timing | 48 // Resource Timing |
| (...skipping 28 matching lines...) Expand all Loading... |
| 78 | 77 |
| 79 // Long Task Timing | 78 // Long Task Timing |
| 80 [RuntimeEnabled=LongTaskObserver] void clearLongTaskTimings(); | 79 [RuntimeEnabled=LongTaskObserver] void clearLongTaskTimings(); |
| 81 [RuntimeEnabled=LongTaskObserver] void setLongTaskTimingBufferSize(unsigned
long maxSize); | 80 [RuntimeEnabled=LongTaskObserver] void setLongTaskTimingBufferSize(unsigned
long maxSize); |
| 82 [RuntimeEnabled=LongTaskObserver] attribute EventHandler onlongtasktimingbuf
ferfull; | 81 [RuntimeEnabled=LongTaskObserver] attribute EventHandler onlongtasktimingbuf
ferfull; |
| 83 | 82 |
| 84 // TODO(foolip): There is no spec for the Memory Info API, see blink-dev: | 83 // TODO(foolip): There is no spec for the Memory Info API, see blink-dev: |
| 85 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ | 84 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ |
| 86 [Measure] readonly attribute MemoryInfo memory; | 85 [Measure] readonly attribute MemoryInfo memory; |
| 87 }; | 86 }; |
| OLD | NEW |