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

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

Issue 580373002: [Invalidation Tracking] Trace StyleInvalidator setNeedsStyleRecalc (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: minimize diff Created 6 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 // 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 "platform/heap/Handle.h"
10 #include "wtf/Forward.h" 11 #include "wtf/Forward.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
15 class DescendantInvalidationSet;
14 class Document; 16 class Document;
17 class Element;
15 class Event; 18 class Event;
16 class ExecutionContext; 19 class ExecutionContext;
17 class FrameView; 20 class FrameView;
18 class GraphicsContext; 21 class GraphicsContext;
19 class GraphicsLayer; 22 class GraphicsLayer;
20 class KURL; 23 class KURL;
21 class LayoutRect; 24 class LayoutRect;
22 class LocalFrame; 25 class LocalFrame;
23 class RenderImage; 26 class RenderImage;
24 class RenderLayer; 27 class RenderLayer;
25 class RenderObject; 28 class RenderObject;
26 class ResourceRequest; 29 class ResourceRequest;
27 class ResourceResponse; 30 class ResourceResponse;
28 class ScriptSourceCode; 31 class ScriptSourceCode;
29 class ScriptCallStack; 32 class ScriptCallStack;
30 class WorkerThread; 33 class WorkerThread;
31 class XMLHttpRequest; 34 class XMLHttpRequest;
32 35
36 class InspectorStyleInvalidatorInvalidateEvent {
37 public:
38 static const char ElementHasPendingInvalidationMap[];
39 static const char InvalidateCustomPseudo[];
40 static const char InvalidationSetMatchedAttribute[];
41 static const char InvalidationSetMatchedClass[];
42 static const char InvalidationSetMatchedId[];
43 static const char InvalidationSetMatchedTagName[];
44 static const char PreventStyleSharingForParent[];
45
46 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(Element&, const char* reason);
47 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> withExtraData(Elemen t&, const char* reason, const String&);
48 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> invalidationList(Ele ment&, const WillBeHeapVector<RefPtrWillBeMember<DescendantInvalidationSet> >&);
49 };
50 #define TRACE_STYLE_INVALIDATOR_INVALIDATION(ELEMENT, REASON) \
51 TRACE_EVENT_INSTANT1( \
52 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
53 "StyleInvalidatorInvalidationTracking", \
54 "data", \
55 InspectorStyleInvalidatorInvalidateEvent::data((ELEMENT), (InspectorStyl eInvalidatorInvalidateEvent::REASON)))
56 #define TRACE_STYLE_INVALIDATOR_INVALIDATION_EXTRADATA(ELEMENT, REASON, EXTRADAT A) \
57 TRACE_EVENT_INSTANT1( \
58 TRACE_DISABLED_BY_DEFAULT("devtools.timeline.invalidationTracking"), \
59 "StyleInvalidatorInvalidationTracking", \
60 "data", \
61 InspectorStyleInvalidatorInvalidateEvent::withExtraData((ELEMENT), (Insp ectorStyleInvalidatorInvalidateEvent::REASON), (EXTRADATA)))
62
33 class InspectorLayoutEvent { 63 class InspectorLayoutEvent {
34 public: 64 public:
35 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* ); 65 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> beginData(FrameView* );
36 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(RenderObject * rootForThisLayout); 66 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> endData(RenderObject * rootForThisLayout);
37 }; 67 };
38 68
39 class InspectorLayoutInvalidationTrackingEvent { 69 class InspectorLayoutInvalidationTrackingEvent {
40 public: 70 public:
41 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect*); 71 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const RenderObj ect*);
42 }; 72 };
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 211
182 class InspectorTracingSessionIdForWorkerEvent { 212 class InspectorTracingSessionIdForWorkerEvent {
183 public: 213 public:
184 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*); 214 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> data(const String& s essionId, WorkerThread*);
185 }; 215 };
186 216
187 } // namespace blink 217 } // namespace blink
188 218
189 219
190 #endif // !defined(InspectorTraceEvents_h) 220 #endif // !defined(InspectorTraceEvents_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698