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

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

Issue 565793003: [Invalidation Tracking] Add trace events for compositor based invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use cmacro Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef InspectorTraceEvents_h 5 #ifndef InspectorTraceEvents_h
6 #define InspectorTraceEvents_h 6 #define InspectorTraceEvents_h
7 7
8 #include "platform/EventTracer.h" 8 #include "platform/EventTracer.h"
9 #include "platform/TraceEvent.h" 9 #include "platform/TraceEvent.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Document; 14 class Document;
15 class Event; 15 class Event;
16 class ExecutionContext; 16 class ExecutionContext;
17 class FrameView; 17 class FrameView;
18 class GraphicsContext; 18 class GraphicsContext;
19 class GraphicsLayer; 19 class GraphicsLayer;
20 class KURL; 20 class KURL;
21 class LayoutRect; 21 class LayoutRect;
22 class LocalFrame; 22 class LocalFrame;
23 class RenderImage;
24 class RenderLayer;
23 class RenderObject; 25 class RenderObject;
24 class RenderImage;
25 class ResourceRequest; 26 class ResourceRequest;
26 class ResourceResponse; 27 class ResourceResponse;
27 class ScriptSourceCode; 28 class ScriptSourceCode;
28 class ScriptCallStack; 29 class ScriptCallStack;
29 class WorkerThread; 30 class WorkerThread;
30 class XMLHttpRequest; 31 class XMLHttpRequest;
31 32
32 class InspectorLayoutEvent { 33 class InspectorLayoutEvent {
33 public: 34 public:
34 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* ); 35 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* );
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 class InspectorXhrReadyStateChangeEvent { 94 class InspectorXhrReadyStateChangeEvent {
94 public: 95 public:
95 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex t*, XMLHttpRequest*); 96 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex t*, XMLHttpRequest*);
96 }; 97 };
97 98
98 class InspectorXhrLoadEvent { 99 class InspectorXhrLoadEvent {
99 public: 100 public:
100 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex t*, XMLHttpRequest*); 101 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(ExecutionContex t*, XMLHttpRequest*);
101 }; 102 };
102 103
104 class InspectorLayerInvalidationTrackingEvent {
105 public:
106 static const char SquashingLayerGeometryWasUpdated[];
107 static const char AddedToSquashingLayer[];
108 static const char RemovedFromSquashingLayer[];
109 static const char ReflectionLayerChanged[];
110 static const char NewCompositedLayer[];
111 static const char AncestorRequiresNewLayer[];
112
113 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderLay er*, const char* reason);
114 };
115 #define TRACE_LAYER_INVALIDATION(LAYER, REASON) \
116 TRACE_EVENT_INSTANT1( \
117 TRACE_DISABLED_BY_DEFAULT("devtools.timeine.invalidationTracking"), \
118 "LayerInvalidationTracking", \
119 "data", \
120 InspectorLayerInvalidationTrackingEvent::data((LAYER), (REASON)))
121
103 class InspectorPaintEvent { 122 class InspectorPaintEvent {
104 public: 123 public:
105 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(RenderObject*, const LayoutRect& clipRect, const GraphicsLayer*); 124 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(RenderObject*, const LayoutRect& clipRect, const GraphicsLayer*);
106 }; 125 };
107 126
108 class InspectorPaintImageEvent { 127 class InspectorPaintImageEvent {
109 public: 128 public:
110 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderIma ge&); 129 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderIma ge&);
111 }; 130 };
112 131
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 171
153 class InspectorTracingSessionIdForWorkerEvent { 172 class InspectorTracingSessionIdForWorkerEvent {
154 public: 173 public:
155 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*); 174 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*);
156 }; 175 };
157 176
158 } // namespace blink 177 } // namespace blink
159 178
160 179
161 #endif // !defined(InspectorTraceEvents_h) 180 #endif // !defined(InspectorTraceEvents_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorTraceEvents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698