| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 void AddLongTaskTiming(double start_time, | 106 void AddLongTaskTiming(double start_time, |
| 107 double end_time, | 107 double end_time, |
| 108 const String& name, | 108 const String& name, |
| 109 const String& culprit_frame_src, | 109 const String& culprit_frame_src, |
| 110 const String& culprit_frame_id, | 110 const String& culprit_frame_id, |
| 111 const String& culprit_frame_name); | 111 const String& culprit_frame_name); |
| 112 | 112 |
| 113 void AddResourceTiming(const ResourceTimingInfo&); | 113 void AddResourceTiming(const ResourceTimingInfo&); |
| 114 | 114 |
| 115 enum class ShouldAddToBuffer { |
| 116 Always, |
| 117 Never, |
| 118 }; |
| 119 void AddServerTiming(const ResourceResponse&, ShouldAddToBuffer); |
| 120 |
| 115 void NotifyNavigationTimingToObservers(); | 121 void NotifyNavigationTimingToObservers(); |
| 116 | 122 |
| 117 void AddFirstPaintTiming(double start_time); | 123 void AddFirstPaintTiming(double start_time); |
| 118 | 124 |
| 119 void AddFirstContentfulPaintTiming(double start_time); | 125 void AddFirstContentfulPaintTiming(double start_time); |
| 120 | 126 |
| 121 void mark(const String& mark_name, ExceptionState&); | 127 void mark(const String& mark_name, ExceptionState&); |
| 122 void clearMarks(const String& mark_name); | 128 void clearMarks(const String& mark_name); |
| 123 | 129 |
| 124 void measure(const String& measure_name, | 130 void measure(const String& measure_name, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 return nullptr; | 163 return nullptr; |
| 158 } | 164 } |
| 159 | 165 |
| 160 bool IsResourceTimingBufferFull(); | 166 bool IsResourceTimingBufferFull(); |
| 161 void AddResourceTimingBuffer(PerformanceEntry&); | 167 void AddResourceTimingBuffer(PerformanceEntry&); |
| 162 | 168 |
| 163 bool IsFrameTimingBufferFull(); | 169 bool IsFrameTimingBufferFull(); |
| 164 void AddFrameTimingBuffer(PerformanceEntry&); | 170 void AddFrameTimingBuffer(PerformanceEntry&); |
| 165 | 171 |
| 166 void NotifyObserversOfEntry(PerformanceEntry&); | 172 void NotifyObserversOfEntry(PerformanceEntry&); |
| 173 void NotifyObserversOfEntries(PerformanceEntryVector&); |
| 167 bool HasObserverFor(PerformanceEntry::EntryType) const; | 174 bool HasObserverFor(PerformanceEntry::EntryType) const; |
| 168 | 175 |
| 169 void DeliverObservationsTimerFired(TimerBase*); | 176 void DeliverObservationsTimerFired(TimerBase*); |
| 170 | 177 |
| 171 PerformanceEntryVector frame_timing_buffer_; | 178 PerformanceEntryVector frame_timing_buffer_; |
| 172 unsigned frame_timing_buffer_size_; | 179 unsigned frame_timing_buffer_size_; |
| 173 PerformanceEntryVector resource_timing_buffer_; | 180 PerformanceEntryVector resource_timing_buffer_; |
| 174 unsigned resource_timing_buffer_size_; | 181 unsigned resource_timing_buffer_size_; |
| 182 PerformanceEntryVector server_timing_buffer_; |
| 175 Member<PerformanceEntry> navigation_timing_; | 183 Member<PerformanceEntry> navigation_timing_; |
| 176 Member<UserTiming> user_timing_; | 184 Member<UserTiming> user_timing_; |
| 177 | 185 |
| 178 double time_origin_; | 186 double time_origin_; |
| 179 | 187 |
| 180 PerformanceEntryTypeMask observer_filter_options_; | 188 PerformanceEntryTypeMask observer_filter_options_; |
| 181 PerformanceObservers observers_; | 189 PerformanceObservers observers_; |
| 182 PerformanceObservers active_observers_; | 190 PerformanceObservers active_observers_; |
| 183 PerformanceObservers suspended_observers_; | 191 PerformanceObservers suspended_observers_; |
| 184 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_; | 192 TaskRunnerTimer<PerformanceBase> deliver_observations_timer_; |
| 185 }; | 193 }; |
| 186 | 194 |
| 187 } // namespace blink | 195 } // namespace blink |
| 188 | 196 |
| 189 #endif // PerformanceBase_h | 197 #endif // PerformanceBase_h |
| OLD | NEW |