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 #ifndef PerformanceBase_h | 32 #ifndef PerformanceBase_h |
33 #define PerformanceBase_h | 33 #define PerformanceBase_h |
34 | 34 |
35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
36 #include "core/dom/DOMHighResTimeStamp.h" | 36 #include "core/dom/DOMHighResTimeStamp.h" |
37 #include "core/events/EventTarget.h" | 37 #include "core/events/EventTarget.h" |
38 #include "core/loader/FrameLoaderTypes.h" | 38 #include "core/loader/FrameLoaderTypes.h" |
39 #include "core/timing/PerformanceEntry.h" | 39 #include "core/timing/PerformanceEntry.h" |
40 #include "core/timing/PerformanceNavigationTiming.h" | 40 #include "core/timing/PerformanceNavigationTiming.h" |
41 #include "core/timing/PerformancePaintTiming.h" | 41 #include "core/timing/PerformancePaintTiming.h" |
42 #include "core/timing/PerformanceServerTiming.h" | |
Yoav Weiss
2017/06/29 16:23:21
I think you no longer need that include
| |
42 #include "platform/Timer.h" | 43 #include "platform/Timer.h" |
43 #include "platform/heap/Handle.h" | 44 #include "platform/heap/Handle.h" |
44 #include "platform/wtf/Forward.h" | 45 #include "platform/wtf/Forward.h" |
45 #include "platform/wtf/HashSet.h" | 46 #include "platform/wtf/HashSet.h" |
46 #include "platform/wtf/ListHashSet.h" | 47 #include "platform/wtf/ListHashSet.h" |
47 #include "platform/wtf/Vector.h" | 48 #include "platform/wtf/Vector.h" |
48 | 49 |
49 namespace blink { | 50 namespace blink { |
50 | 51 |
51 class ExceptionState; | 52 class ExceptionState; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
105 | 106 |
106 void AddLongTaskTiming(double start_time, | 107 void AddLongTaskTiming(double start_time, |
107 double end_time, | 108 double end_time, |
108 const String& name, | 109 const String& name, |
109 const String& culprit_frame_src, | 110 const String& culprit_frame_src, |
110 const String& culprit_frame_id, | 111 const String& culprit_frame_id, |
111 const String& culprit_frame_name); | 112 const String& culprit_frame_name); |
112 | 113 |
113 void AddResourceTiming(const ResourceTimingInfo&); | 114 void AddResourceTiming(const ResourceTimingInfo&); |
114 | 115 |
115 enum class ShouldAddToBuffer { | |
116 Always, | |
117 Never, | |
118 }; | |
119 void AddServerTiming(const ResourceResponse&, ShouldAddToBuffer); | |
120 | |
121 void NotifyNavigationTimingToObservers(); | 116 void NotifyNavigationTimingToObservers(); |
122 | 117 |
123 void AddFirstPaintTiming(double start_time); | 118 void AddFirstPaintTiming(double start_time); |
124 | 119 |
125 void AddFirstContentfulPaintTiming(double start_time); | 120 void AddFirstContentfulPaintTiming(double start_time); |
126 | 121 |
127 void mark(const String& mark_name, ExceptionState&); | 122 void mark(const String& mark_name, ExceptionState&); |
128 void clearMarks(const String& mark_name); | 123 void clearMarks(const String& mark_name); |
129 | 124 |
130 void measure(const String& measure_name, | 125 void measure(const String& measure_name, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
172 void NotifyObserversOfEntry(PerformanceEntry&); | 167 void NotifyObserversOfEntry(PerformanceEntry&); |
173 void NotifyObserversOfEntries(PerformanceEntryVector&); | 168 void NotifyObserversOfEntries(PerformanceEntryVector&); |
174 bool HasObserverFor(PerformanceEntry::EntryType) const; | 169 bool HasObserverFor(PerformanceEntry::EntryType) const; |
175 | 170 |
176 void DeliverObservationsTimerFired(TimerBase*); | 171 void DeliverObservationsTimerFired(TimerBase*); |
177 | 172 |
178 PerformanceEntryVector frame_timing_buffer_; | 173 PerformanceEntryVector frame_timing_buffer_; |
179 unsigned frame_timing_buffer_size_; | 174 unsigned frame_timing_buffer_size_; |
180 PerformanceEntryVector resource_timing_buffer_; | 175 PerformanceEntryVector resource_timing_buffer_; |
181 unsigned resource_timing_buffer_size_; | 176 unsigned resource_timing_buffer_size_; |
182 PerformanceEntryVector server_timing_buffer_; | |
183 Member<PerformanceEntry> navigation_timing_; | 177 Member<PerformanceEntry> navigation_timing_; |
184 Member<UserTiming> user_timing_; | 178 Member<UserTiming> user_timing_; |
185 Member<PerformanceEntry> first_paint_timing_; | 179 Member<PerformanceEntry> first_paint_timing_; |
186 Member<PerformanceEntry> first_contentful_paint_timing_; | 180 Member<PerformanceEntry> first_contentful_paint_timing_; |
187 | 181 |
188 double time_origin_; | 182 double time_origin_; |
189 | 183 |
190 PerformanceEntryTypeMask observer_filter_options_; | 184 PerformanceEntryTypeMask observer_filter_options_; |
191 PerformanceObservers observers_; | 185 PerformanceObservers observers_; |
192 PerformanceObservers active_observers_; | 186 PerformanceObservers active_observers_; |
193 PerformanceObservers suspended_observers_; | 187 PerformanceObservers suspended_observers_; |
194 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_; | 188 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_; |
195 }; | 189 }; |
196 | 190 |
197 } // namespace blink | 191 } // namespace blink |
198 | 192 |
199 #endif // PerformanceBase_h | 193 #endif // PerformanceBase_h |
OLD | NEW |