OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&); | 196 bool maybeEnterLayerTask(const TraceEvent&, TimelineThreadState&); |
197 void leaveLayerTask(TimelineThreadState&); | 197 void leaveLayerTask(TimelineThreadState&); |
198 | 198 |
199 void processBackgroundEvents(); | 199 void processBackgroundEvents(); |
200 void processBackgroundEventsTask(); | 200 void processBackgroundEventsTask(); |
201 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT ype, PassRefPtr<JSONObject> data = 0); | 201 PassRefPtr<JSONObject> createRecord(const TraceEvent&, const String& recordT ype, PassRefPtr<JSONObject> data = 0); |
202 | 202 |
203 void registerHandler(const char* name, char, TraceEventHandler); | 203 void registerHandler(const char* name, char, TraceEventHandler); |
204 | 204 |
205 void onBeginFrame(const TraceEvent&); | 205 void onBeginFrame(const TraceEvent&); |
206 void onRequestMainThreadFrame(const TraceEvent&); | |
207 void onCommitMainThreadFrame(const TraceEvent&); | |
206 void onUpdateLayerBegin(const TraceEvent&); | 208 void onUpdateLayerBegin(const TraceEvent&); |
207 void onUpdateLayerEnd(const TraceEvent&); | 209 void onUpdateLayerEnd(const TraceEvent&); |
208 void onPaintLayerBegin(const TraceEvent&); | 210 void onPaintLayerBegin(const TraceEvent&); |
209 void onPaintLayerEnd(const TraceEvent&); | 211 void onPaintLayerEnd(const TraceEvent&); |
210 void onPaintSetupBegin(const TraceEvent&); | 212 void onPaintSetupBegin(const TraceEvent&); |
211 void onPaintSetupEnd(const TraceEvent&); | 213 void onPaintSetupEnd(const TraceEvent&); |
212 void onRasterTaskBegin(const TraceEvent&); | 214 void onRasterTaskBegin(const TraceEvent&); |
213 void onRasterTaskEnd(const TraceEvent&); | 215 void onRasterTaskEnd(const TraceEvent&); |
214 void onPaint(const TraceEvent&); | 216 void onPaint(const TraceEvent&); |
215 void onImageDecodeTaskBegin(const TraceEvent&); | 217 void onImageDecodeTaskBegin(const TraceEvent&); |
216 void onImageDecodeTaskEnd(const TraceEvent&); | 218 void onImageDecodeTaskEnd(const TraceEvent&); |
217 void onImageDecodeBegin(const TraceEvent&); | 219 void onImageDecodeBegin(const TraceEvent&); |
218 void onImageDecodeEnd(const TraceEvent&); | 220 void onImageDecodeEnd(const TraceEvent&); |
219 void onLayerDeleted(const TraceEvent&); | 221 void onLayerDeleted(const TraceEvent&); |
220 void onDrawLazyPixelRef(const TraceEvent&); | 222 void onDrawLazyPixelRef(const TraceEvent&); |
221 void onLazyPixelRefDeleted(const TraceEvent&); | 223 void onLazyPixelRefDeleted(const TraceEvent&); |
222 | 224 |
223 WeakPtr<InspectorTimelineAgent> m_timelineAgent; | 225 WeakPtr<InspectorTimelineAgent> m_timelineAgent; |
224 TimelineTimeConverter m_timeConverter; | 226 TimelineTimeConverter m_timeConverter; |
225 InspectorClient* m_inspectorClient; | 227 InspectorClient* m_inspectorClient; |
226 unsigned long long m_pageId; | 228 unsigned long long m_pageId; |
227 int m_layerTreeId; | 229 unsigned long long m_layerTreeId; |
230 ThreadIdentifier m_mainThreadId; | |
228 | 231 |
229 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; | 232 typedef HashMap<std::pair<String, int>, TraceEventHandler> HandlersMap; |
230 HandlersMap m_handlersByType; | 233 HandlersMap m_handlersByType; |
231 Mutex m_backgroundEventsMutex; | 234 Mutex m_backgroundEventsMutex; |
232 Vector<TraceEvent> m_backgroundEvents; | 235 Vector<TraceEvent> m_backgroundEvents; |
233 double m_lastEventProcessingTime; | 236 double m_lastEventProcessingTime; |
234 bool m_processEventsTaskInFlight; | 237 bool m_processEventsTaskInFlight; |
235 | 238 |
236 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; | 239 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; |
237 ThreadStateMap m_threadStates; | 240 ThreadStateMap m_threadStates; |
238 | 241 |
239 HashMap<unsigned long long, long long> m_layerToNodeMap; | 242 HashMap<unsigned long long, long long> m_layerToNodeMap; |
240 unsigned long long m_layerId; | 243 unsigned long long m_layerId; |
241 double m_paintSetupStart; | 244 double m_paintSetupStart; |
242 double m_paintSetupEnd; | 245 double m_paintSetupEnd; |
246 bool m_mainThreadFrameBeingRendered; | |
pfeldman
2013/11/06 17:07:21
This is unused.
| |
243 | 247 |
244 struct ImageInfo { | 248 struct ImageInfo { |
245 int backendNodeId; | 249 int backendNodeId; |
246 String url; | 250 String url; |
247 | 251 |
248 ImageInfo() { } | 252 ImageInfo() { } |
249 ImageInfo(int backendNodeId, String url) : backendNodeId(backendNodeId), url(url) { } | 253 ImageInfo(int backendNodeId, String url) : backendNodeId(backendNodeId), url(url) { } |
250 }; | 254 }; |
251 typedef HashMap<unsigned long long, ImageInfo> PixelRefToImageInfoMap; | 255 typedef HashMap<unsigned long long, ImageInfo> PixelRefToImageInfoMap; |
252 PixelRefToImageInfoMap m_pixelRefToImageInfo; | 256 PixelRefToImageInfoMap m_pixelRefToImageInfo; |
253 }; | 257 }; |
254 | 258 |
255 } // namespace WebCore | 259 } // namespace WebCore |
256 | 260 |
257 #endif // !defined(TimelineTraceEventProcessor_h) | 261 #endif // !defined(TimelineTraceEventProcessor_h) |
OLD | NEW |