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 21 matching lines...) Expand all Loading... |
32 // See: http://www.w3.org/TR/navigation-timing/ | 32 // See: http://www.w3.org/TR/navigation-timing/ |
33 [ | 33 [ |
34 WillBeGarbageCollected | 34 WillBeGarbageCollected |
35 ] interface Performance : EventTarget { | 35 ] interface Performance : EventTarget { |
36 readonly attribute PerformanceNavigation navigation; | 36 readonly attribute PerformanceNavigation navigation; |
37 readonly attribute PerformanceTiming timing; | 37 readonly attribute PerformanceTiming timing; |
38 readonly attribute MemoryInfo memory; | 38 readonly attribute MemoryInfo memory; |
39 | 39 |
40 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
ies(); | 40 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
ies(); |
41 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
iesByType(DOMString entryType); | 41 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
iesByType(DOMString entryType); |
42 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
iesByName(DOMString name, [Default=NullString] optional DOMString entryType); | 42 [MeasureAs=UnprefixedPerformanceTimeline] sequence<PerformanceEntry> getEntr
iesByName(DOMString name, optional DOMString entryType = null); |
43 | 43 |
44 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); | 44 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); |
45 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); | 45 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); |
46 | 46 |
47 attribute EventHandler onwebkitresourcetimingbufferfull; | 47 attribute EventHandler onwebkitresourcetimingbufferfull; |
48 | 48 |
49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ | 49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ |
50 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam
e); | 50 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam
e); |
51 [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] option
al DOMString markName); | 51 [MeasureAs=UnprefixedUserTiming] void clearMarks(optional DOMString markName
= null); |
52 | 52 |
53 [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString meas
ureName, [Default=NullString] optional DOMString startMark, [Default=NullString]
optional DOMString endMark); | 53 [RaisesException,MeasureAs=UnprefixedUserTiming] void measure(DOMString meas
ureName, optional DOMString startMark = null, optional DOMString endMark = null)
; |
54 [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] opt
ional DOMString measureName); | 54 [MeasureAs=UnprefixedUserTiming] void clearMeasures(optional DOMString measu
reName = null); |
55 | 55 |
56 // See http://www.w3.org/TR/hr-time/ for details. | 56 // See http://www.w3.org/TR/hr-time/ for details. |
57 double now(); | 57 double now(); |
58 }; | 58 }; |
59 | 59 |
OLD | NEW |