Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1274)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceBase.h

Issue 2395653002: Remove buffering from PerformanceLongTaskTiming as it's not in the spec. (Closed)
Patch Set: update layout test expectations Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void setResourceTimingBufferSize(unsigned); 89 void setResourceTimingBufferSize(unsigned);
90 90
91 DEFINE_ATTRIBUTE_EVENT_LISTENER(resourcetimingbufferfull); 91 DEFINE_ATTRIBUTE_EVENT_LISTENER(resourcetimingbufferfull);
92 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull); 92 DEFINE_ATTRIBUTE_EVENT_LISTENER(webkitresourcetimingbufferfull);
93 93
94 void clearFrameTimings(); 94 void clearFrameTimings();
95 void setFrameTimingBufferSize(unsigned); 95 void setFrameTimingBufferSize(unsigned);
96 96
97 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull); 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull);
98 98
99 void clearLongTaskTimings();
100 void setLongTaskTimingBufferSize(unsigned);
101
102 DEFINE_ATTRIBUTE_EVENT_LISTENER(longtasktimingbufferfull);
103
104 void addLongTaskTiming(double, double, const String&, DOMWindow*); 99 void addLongTaskTiming(double, double, const String&, DOMWindow*);
105 100
106 void addResourceTiming(const ResourceTimingInfo&); 101 void addResourceTiming(const ResourceTimingInfo&);
107 102
108 void addRenderTiming(Document*, unsigned, double, double); 103 void addRenderTiming(Document*, unsigned, double, double);
109 104
110 void addCompositeTiming(Document*, unsigned, double); 105 void addCompositeTiming(Document*, unsigned, double);
111 106
112 void mark(const String& markName, ExceptionState&); 107 void mark(const String& markName, ExceptionState&);
113 void clearMarks(const String& markName); 108 void clearMarks(const String& markName);
(...skipping 14 matching lines...) Expand all
128 123
129 protected: 124 protected:
130 explicit PerformanceBase(double timeOrigin); 125 explicit PerformanceBase(double timeOrigin);
131 126
132 bool isResourceTimingBufferFull(); 127 bool isResourceTimingBufferFull();
133 void addResourceTimingBuffer(PerformanceEntry&); 128 void addResourceTimingBuffer(PerformanceEntry&);
134 129
135 bool isFrameTimingBufferFull(); 130 bool isFrameTimingBufferFull();
136 void addFrameTimingBuffer(PerformanceEntry&); 131 void addFrameTimingBuffer(PerformanceEntry&);
137 132
138 bool isLongTaskTimingBufferFull();
139 void addLongTaskTimingBuffer(PerformanceEntry&);
140
141 void notifyObserversOfEntry(PerformanceEntry&); 133 void notifyObserversOfEntry(PerformanceEntry&);
142 bool hasObserverFor(PerformanceEntry::EntryType) const; 134 bool hasObserverFor(PerformanceEntry::EntryType) const;
143 135
144 void deliverObservationsTimerFired(TimerBase*); 136 void deliverObservationsTimerFired(TimerBase*);
145 137
146 PerformanceEntryVector m_frameTimingBuffer; 138 PerformanceEntryVector m_frameTimingBuffer;
147 unsigned m_frameTimingBufferSize; 139 unsigned m_frameTimingBufferSize;
148 PerformanceEntryVector m_resourceTimingBuffer; 140 PerformanceEntryVector m_resourceTimingBuffer;
149 unsigned m_resourceTimingBufferSize; 141 unsigned m_resourceTimingBufferSize;
150 PerformanceEntryVector m_longTaskTimingBuffer;
151 unsigned m_longTaskTimingBufferSize;
152 Member<UserTiming> m_userTiming; 142 Member<UserTiming> m_userTiming;
153 143
154 double m_timeOrigin; 144 double m_timeOrigin;
155 145
156 PerformanceEntryTypeMask m_observerFilterOptions; 146 PerformanceEntryTypeMask m_observerFilterOptions;
157 PerformanceObservers m_observers; 147 PerformanceObservers m_observers;
158 PerformanceObservers m_activeObservers; 148 PerformanceObservers m_activeObservers;
159 PerformanceObservers m_suspendedObservers; 149 PerformanceObservers m_suspendedObservers;
160 Timer<PerformanceBase> m_deliverObservationsTimer; 150 Timer<PerformanceBase> m_deliverObservationsTimer;
161 }; 151 };
162 152
163 } // namespace blink 153 } // namespace blink
164 154
165 #endif // PerformanceBase_h 155 #endif // PerformanceBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/timing/Performance.idl ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698