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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 [MeasureAs=UnprefixedUserTiming, RaisesException] void measure(DOMString mea
sureName, optional DOMString startMark = null, optional DOMString endMark = null
); | 70 [MeasureAs=UnprefixedUserTiming, RaisesException] void measure(DOMString mea
sureName, optional DOMString startMark = null, optional DOMString endMark = null
); |
71 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu
reName = null); | 71 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu
reName = null); |
72 | 72 |
73 // Frame Timing | 73 // Frame Timing |
74 // https://w3c.github.io/frame-timing/#extensions-performance-interface | 74 // https://w3c.github.io/frame-timing/#extensions-performance-interface |
75 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c
learFrameTimings(); | 75 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void c
learFrameTimings(); |
76 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s
etFrameTimingBufferSize(unsigned long maxSize); | 76 [RuntimeEnabled=FrameTimingSupport, MeasureAs=PerformanceFrameTiming] void s
etFrameTimingBufferSize(unsigned long maxSize); |
77 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff
erfull; | 77 [RuntimeEnabled=FrameTimingSupport] attribute EventHandler onframetimingbuff
erfull; |
78 | 78 |
| 79 // Long Task Timing |
| 80 [RuntimeEnabled=LongTaskObserver] void clearLongTaskTimings(); |
| 81 [RuntimeEnabled=LongTaskObserver] void setLongTaskTimingBufferSize(unsigned
long maxSize); |
| 82 [RuntimeEnabled=LongTaskObserver] attribute EventHandler onlongtasktimingbuf
ferfull; |
| 83 |
79 // TODO(foolip): There is no spec for the Memory Info API, see blink-dev: | 84 // TODO(foolip): There is no spec for the Memory Info API, see blink-dev: |
80 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ | 85 // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJ
z71NmPwJ |
81 [Measure] readonly attribute MemoryInfo memory; | 86 [Measure] readonly attribute MemoryInfo memory; |
82 }; | 87 }; |
OLD | NEW |