Chromium Code Reviews| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 | 104 |
| 105 void addLongTaskTiming(double startTime, | 105 void addLongTaskTiming(double startTime, |
| 106 double endTime, | 106 double endTime, |
| 107 const String& name, | 107 const String& name, |
| 108 const String& culpritFrameSrc, | 108 const String& culpritFrameSrc, |
| 109 const String& culpritFrameId, | 109 const String& culpritFrameId, |
| 110 const String& culpritFrameName); | 110 const String& culpritFrameName); |
| 111 | 111 |
| 112 void addResourceTiming(const ResourceTimingInfo&); | 112 void addResourceTiming(const ResourceTimingInfo&); |
| 113 | 113 |
| 114 enum class ShouldAddToBuffer { | |
| 115 Always, | |
| 116 Never, | |
| 117 }; | |
| 118 void addServerTiming(const ResourceResponse&, const ShouldAddToBuffer&); | |
|
Charlie Harrison
2017/04/07 12:43:01
ShouldAddtoBuffer does not need to be const.
| |
| 119 | |
| 114 void notifyNavigationTimingToObservers(); | 120 void notifyNavigationTimingToObservers(); |
| 115 | 121 |
| 116 void addFirstPaintTiming(double startTime); | 122 void addFirstPaintTiming(double startTime); |
| 117 | 123 |
| 118 void addFirstContentfulPaintTiming(double startTime); | 124 void addFirstContentfulPaintTiming(double startTime); |
| 119 | 125 |
| 120 void mark(const String& markName, ExceptionState&); | 126 void mark(const String& markName, ExceptionState&); |
| 121 void clearMarks(const String& markName); | 127 void clearMarks(const String& markName); |
| 122 | 128 |
| 123 void measure(const String& measureName, | 129 void measure(const String& measureName, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 | 170 |
| 165 void notifyObserversOfEntry(PerformanceEntry&); | 171 void notifyObserversOfEntry(PerformanceEntry&); |
| 166 bool hasObserverFor(PerformanceEntry::EntryType) const; | 172 bool hasObserverFor(PerformanceEntry::EntryType) const; |
| 167 | 173 |
| 168 void deliverObservationsTimerFired(TimerBase*); | 174 void deliverObservationsTimerFired(TimerBase*); |
| 169 | 175 |
| 170 PerformanceEntryVector m_frameTimingBuffer; | 176 PerformanceEntryVector m_frameTimingBuffer; |
| 171 unsigned m_frameTimingBufferSize; | 177 unsigned m_frameTimingBufferSize; |
| 172 PerformanceEntryVector m_resourceTimingBuffer; | 178 PerformanceEntryVector m_resourceTimingBuffer; |
| 173 unsigned m_resourceTimingBufferSize; | 179 unsigned m_resourceTimingBufferSize; |
| 180 PerformanceEntryVector m_serverTimingBuffer; | |
| 174 Member<PerformanceEntry> m_navigationTiming; | 181 Member<PerformanceEntry> m_navigationTiming; |
| 175 Member<UserTiming> m_userTiming; | 182 Member<UserTiming> m_userTiming; |
| 176 | 183 |
| 177 double m_timeOrigin; | 184 double m_timeOrigin; |
| 178 | 185 |
| 179 PerformanceEntryTypeMask m_observerFilterOptions; | 186 PerformanceEntryTypeMask m_observerFilterOptions; |
| 180 PerformanceObservers m_observers; | 187 PerformanceObservers m_observers; |
| 181 PerformanceObservers m_activeObservers; | 188 PerformanceObservers m_activeObservers; |
| 182 PerformanceObservers m_suspendedObservers; | 189 PerformanceObservers m_suspendedObservers; |
| 183 TaskRunnerTimer<PerformanceBase> m_deliverObservationsTimer; | 190 TaskRunnerTimer<PerformanceBase> m_deliverObservationsTimer; |
| 184 }; | 191 }; |
| 185 | 192 |
| 186 } // namespace blink | 193 } // namespace blink |
| 187 | 194 |
| 188 #endif // PerformanceBase_h | 195 #endif // PerformanceBase_h |
| OLD | NEW |