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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 | 75 |
76 PerformanceEntryVector getEntries() const; | 76 PerformanceEntryVector getEntries() const; |
77 PerformanceEntryVector getEntriesByType(const String& entryType); | 77 PerformanceEntryVector getEntriesByType(const String& entryType); |
78 PerformanceEntryVector getEntriesByName(const String& name, const String& en tryType); | 78 PerformanceEntryVector getEntriesByName(const String& name, const String& en tryType); |
79 | 79 |
80 void webkitClearResourceTimings(); | 80 void webkitClearResourceTimings(); |
81 void webkitSetResourceTimingBufferSize(unsigned); | 81 void webkitSetResourceTimingBufferSize(unsigned); |
82 | 82 |
83 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); |
84 | 84 |
85 void webkitClearFrameTimings(); | |
chrishtr
2015/04/30 01:07:33
Remove webkit prefixes.
MikeB
2015/05/07 23:09:47
Done.
| |
86 void webkitSetFrameTimingBufferSize(unsigned); | |
87 | |
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitframetimingbufferfull); | |
89 | |
85 void addResourceTiming(const ResourceTimingInfo&, Document*); | 90 void addResourceTiming(const ResourceTimingInfo&, Document*); |
86 | 91 |
92 void addRenderTiming(Document*, unsigned, double); | |
93 | |
94 void addCompositeTiming(Document*, unsigned, double); | |
95 | |
87 void mark(const String& markName, ExceptionState&); | 96 void mark(const String& markName, ExceptionState&); |
88 void clearMarks(const String& markName); | 97 void clearMarks(const String& markName); |
89 | 98 |
90 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&); | 99 void measure(const String& measureName, const String& startMark, const Strin g& endMark, ExceptionState&); |
91 void clearMeasures(const String& measureName); | 100 void clearMeasures(const String& measureName); |
92 | 101 |
93 DECLARE_VIRTUAL_TRACE(); | 102 DECLARE_VIRTUAL_TRACE(); |
94 | 103 |
95 private: | 104 private: |
96 explicit Performance(LocalFrame*); | 105 explicit Performance(LocalFrame*); |
97 | 106 |
98 bool isResourceTimingBufferFull(); | 107 bool isResourceTimingBufferFull(); |
99 void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>); | 108 void addResourceTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>); |
100 | 109 |
110 bool isFrameTimingBufferFull(); | |
111 void addFrameTimingBuffer(PassRefPtrWillBeRawPtr<PerformanceEntry>); | |
112 | |
101 mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation; | 113 mutable RefPtrWillBeMember<PerformanceNavigation> m_navigation; |
102 mutable RefPtrWillBeMember<PerformanceTiming> m_timing; | 114 mutable RefPtrWillBeMember<PerformanceTiming> m_timing; |
103 | 115 |
116 PerformanceEntryVector m_frameTimingBuffer; | |
117 unsigned m_frameTimingBufferSize; | |
104 PerformanceEntryVector m_resourceTimingBuffer; | 118 PerformanceEntryVector m_resourceTimingBuffer; |
105 unsigned m_resourceTimingBufferSize; | 119 unsigned m_resourceTimingBufferSize; |
106 double m_referenceTime; | 120 double m_referenceTime; |
107 | 121 |
108 RefPtrWillBeMember<UserTiming> m_userTiming; | 122 RefPtrWillBeMember<UserTiming> m_userTiming; |
109 }; | 123 }; |
110 | 124 |
111 } // namespace blink | 125 } // namespace blink |
112 | 126 |
113 #endif // Performance_h | 127 #endif // Performance_h |
OLD | NEW |