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

Side by Side Diff: Source/core/inspector/InspectorTimelineAgent.h

Issue 327203002: Revert of DevTools: notify backend agents about profiler started/stopped events (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 usedGPUMemoryBytes(usedGPUMemoryBytes), 108 usedGPUMemoryBytes(usedGPUMemoryBytes),
109 limitGPUMemoryBytes(limitGPUMemoryBytes) { } 109 limitGPUMemoryBytes(limitGPUMemoryBytes) { }
110 double timestamp; 110 double timestamp;
111 Phase phase; 111 Phase phase;
112 bool foreign; 112 bool foreign;
113 uint64_t usedGPUMemoryBytes; 113 uint64_t usedGPUMemoryBytes;
114 uint64_t limitGPUMemoryBytes; 114 uint64_t limitGPUMemoryBytes;
115 }; 115 };
116 116
117 static PassOwnPtr<InspectorTimelineAgent> create(InspectorPageAgent* pageAge nt, InspectorLayerTreeAgent* layerTreeAgent, 117 static PassOwnPtr<InspectorTimelineAgent> create(InspectorPageAgent* pageAge nt, InspectorLayerTreeAgent* layerTreeAgent,
118 InspectorOverlay* overlay, InspectorType type, InspectorClient* client, InspectorAgentRegistry* registry) 118 InspectorOverlay* overlay, InspectorType type, InspectorClient* client)
119 { 119 {
120 return adoptPtr(new InspectorTimelineAgent(pageAgent, layerTreeAgent, ov erlay, type, client, registry)); 120 return adoptPtr(new InspectorTimelineAgent(pageAgent, layerTreeAgent, ov erlay, type, client));
121 } 121 }
122 122
123 virtual ~InspectorTimelineAgent(); 123 virtual ~InspectorTimelineAgent();
124 124
125 virtual void setFrontend(InspectorFrontend*) OVERRIDE; 125 virtual void setFrontend(InspectorFrontend*) OVERRIDE;
126 virtual void clearFrontend() OVERRIDE; 126 virtual void clearFrontend() OVERRIDE;
127 virtual void restore() OVERRIDE; 127 virtual void restore() OVERRIDE;
128 128
129 virtual void enable(ErrorString*) OVERRIDE; 129 virtual void enable(ErrorString*) OVERRIDE;
130 virtual void disable(ErrorString*) OVERRIDE; 130 virtual void disable(ErrorString*) OVERRIDE;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // PlatformInstrumentationClient methods. 224 // PlatformInstrumentationClient methods.
225 virtual void willDecodeImage(const String& imageType) OVERRIDE; 225 virtual void willDecodeImage(const String& imageType) OVERRIDE;
226 virtual void didDecodeImage() OVERRIDE; 226 virtual void didDecodeImage() OVERRIDE;
227 virtual void willResizeImage(bool shouldCache) OVERRIDE; 227 virtual void willResizeImage(bool shouldCache) OVERRIDE;
228 virtual void didResizeImage() OVERRIDE; 228 virtual void didResizeImage() OVERRIDE;
229 229
230 private: 230 private:
231 231
232 friend class TimelineRecordStack; 232 friend class TimelineRecordStack;
233 233
234 InspectorTimelineAgent(InspectorPageAgent*, InspectorLayerTreeAgent*, Inspec torOverlay*, InspectorType, InspectorClient*, InspectorAgentRegistry*); 234 InspectorTimelineAgent(InspectorPageAgent*, InspectorLayerTreeAgent*, Inspec torOverlay*, InspectorType, InspectorClient*);
235 235
236 // Trace event handlers 236 // Trace event handlers
237 void onBeginImplSideFrame(const TraceEventDispatcher::TraceEvent&); 237 void onBeginImplSideFrame(const TraceEventDispatcher::TraceEvent&);
238 void onPaintSetupBegin(const TraceEventDispatcher::TraceEvent&); 238 void onPaintSetupBegin(const TraceEventDispatcher::TraceEvent&);
239 void onPaintSetupEnd(const TraceEventDispatcher::TraceEvent&); 239 void onPaintSetupEnd(const TraceEventDispatcher::TraceEvent&);
240 void onRasterTaskBegin(const TraceEventDispatcher::TraceEvent&); 240 void onRasterTaskBegin(const TraceEventDispatcher::TraceEvent&);
241 void onRasterTaskEnd(const TraceEventDispatcher::TraceEvent&); 241 void onRasterTaskEnd(const TraceEventDispatcher::TraceEvent&);
242 void onImageDecodeBegin(const TraceEventDispatcher::TraceEvent&); 242 void onImageDecodeBegin(const TraceEventDispatcher::TraceEvent&);
243 void onImageDecodeEnd(const TraceEventDispatcher::TraceEvent&); 243 void onImageDecodeEnd(const TraceEventDispatcher::TraceEvent&);
244 void onLayerDeleted(const TraceEventDispatcher::TraceEvent&); 244 void onLayerDeleted(const TraceEventDispatcher::TraceEvent&);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 HashMap<unsigned long long, long long> m_layerToNodeMap; 311 HashMap<unsigned long long, long long> m_layerToNodeMap;
312 double m_paintSetupStart; 312 double m_paintSetupStart;
313 double m_paintSetupEnd; 313 double m_paintSetupEnd;
314 RefPtr<JSONObject> m_gpuTask; 314 RefPtr<JSONObject> m_gpuTask;
315 RefPtr<JSONValue> m_pendingLayerTreeData; 315 RefPtr<JSONValue> m_pendingLayerTreeData;
316 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap; 316 typedef HashMap<ThreadIdentifier, TimelineThreadState> ThreadStateMap;
317 ThreadStateMap m_threadStates; 317 ThreadStateMap m_threadStates;
318 bool m_mayEmitFirstPaint; 318 bool m_mayEmitFirstPaint;
319 HashSet<String> m_liveEvents; 319 HashSet<String> m_liveEvents;
320 double m_lastProgressTimestamp; 320 double m_lastProgressTimestamp;
321 InspectorAgentRegistry* m_registry;
322 }; 321 };
323 322
324 } // namespace WebCore 323 } // namespace WebCore
325 324
326 #endif // !defined(InspectorTimelineAgent_h) 325 #endif // !defined(InspectorTimelineAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorProfilerAgent.cpp ('k') | Source/core/inspector/InspectorTimelineAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698