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 22 matching lines...) Expand all Loading... |
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, [Default=NullString] optional DOMString entryType); |
43 [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntries] sequence<
PerformanceEntry> webkitGetEntries(); | |
44 [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByType] seq
uence<PerformanceEntry> webkitGetEntriesByType(DOMString entryType); | |
45 [DeprecateAs=PrefixedPerformanceTimeline,ImplementedAs=getEntriesByName] seq
uence<PerformanceEntry> webkitGetEntriesByName(DOMString name, [Default=NullStri
ng] optional DOMString entryType); | |
46 | 43 |
47 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); | 44 [MeasureAs=PrefixedPerformanceClearResourceTimings] void webkitClearResource
Timings(); |
48 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); | 45 [MeasureAs=PrefixedPerformanceSetResourceTimingBufferSize] void webkitSetRes
ourceTimingBufferSize(unsigned long maxSize); |
49 | 46 |
50 attribute EventHandler onwebkitresourcetimingbufferfull; | 47 attribute EventHandler onwebkitresourcetimingbufferfull; |
51 | 48 |
52 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ | 49 // See http://www.w3.org/TR/2012/CR-user-timing-20120726/ |
53 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam
e); | 50 [RaisesException,MeasureAs=UnprefixedUserTiming] void mark(DOMString markNam
e); |
54 [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] option
al DOMString markName); | 51 [MeasureAs=UnprefixedUserTiming] void clearMarks([Default=NullString] option
al DOMString markName); |
55 | 52 |
56 [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, [Default=NullString] optional DOMString startMark, [Default=NullString]
optional DOMString endMark); |
57 [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] opt
ional DOMString measureName); | 54 [MeasureAs=UnprefixedUserTiming] void clearMeasures([Default=NullString] opt
ional DOMString measureName); |
58 | 55 |
59 // See http://www.w3.org/TR/hr-time/ for details. | 56 // See http://www.w3.org/TR/hr-time/ for details. |
60 double now(); | 57 double now(); |
61 }; | 58 }; |
62 | 59 |
OLD | NEW |