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

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

Issue 2386403002: Pass DOMWinow to PerformanceLongTaskTiming for attribution (Closed)
Patch Set: sync and rebase 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 27 matching lines...) Expand all
38 #include "core/timing/PerformanceEntry.h" 38 #include "core/timing/PerformanceEntry.h"
39 #include "platform/Timer.h" 39 #include "platform/Timer.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 #include "wtf/HashSet.h" 42 #include "wtf/HashSet.h"
43 #include "wtf/ListHashSet.h" 43 #include "wtf/ListHashSet.h"
44 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 class DOMWindow;
48 class Document; 49 class Document;
49 class ExceptionState; 50 class ExceptionState;
50 class PerformanceObserver; 51 class PerformanceObserver;
51 class PerformanceTiming; 52 class PerformanceTiming;
52 class ResourceTimingInfo; 53 class ResourceTimingInfo;
53 class UserTiming; 54 class UserTiming;
54 55
55 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>; 56 using PerformanceEntryVector = HeapVector<Member<PerformanceEntry>>;
56 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>; 57 using PerformanceObservers = HeapListHashSet<Member<PerformanceObserver>>;
57 58
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void clearFrameTimings(); 94 void clearFrameTimings();
94 void setFrameTimingBufferSize(unsigned); 95 void setFrameTimingBufferSize(unsigned);
95 96
96 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull); 97 DEFINE_ATTRIBUTE_EVENT_LISTENER(frametimingbufferfull);
97 98
98 void clearLongTaskTimings(); 99 void clearLongTaskTimings();
99 void setLongTaskTimingBufferSize(unsigned); 100 void setLongTaskTimingBufferSize(unsigned);
100 101
101 DEFINE_ATTRIBUTE_EVENT_LISTENER(longtasktimingbufferfull); 102 DEFINE_ATTRIBUTE_EVENT_LISTENER(longtasktimingbufferfull);
102 103
103 void addLongTaskTiming(double, double, const String& frameContextUrl); 104 void addLongTaskTiming(double, double, const String&, DOMWindow*);
104 105
105 void addResourceTiming(const ResourceTimingInfo&); 106 void addResourceTiming(const ResourceTimingInfo&);
106 107
107 void addRenderTiming(Document*, unsigned, double, double); 108 void addRenderTiming(Document*, unsigned, double, double);
108 109
109 void addCompositeTiming(Document*, unsigned, double); 110 void addCompositeTiming(Document*, unsigned, double);
110 111
111 void mark(const String& markName, ExceptionState&); 112 void mark(const String& markName, ExceptionState&);
112 void clearMarks(const String& markName); 113 void clearMarks(const String& markName);
113 114
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 PerformanceEntryTypeMask m_observerFilterOptions; 156 PerformanceEntryTypeMask m_observerFilterOptions;
156 PerformanceObservers m_observers; 157 PerformanceObservers m_observers;
157 PerformanceObservers m_activeObservers; 158 PerformanceObservers m_activeObservers;
158 PerformanceObservers m_suspendedObservers; 159 PerformanceObservers m_suspendedObservers;
159 Timer<PerformanceBase> m_deliverObservationsTimer; 160 Timer<PerformanceBase> m_deliverObservationsTimer;
160 }; 161 };
161 162
162 } // namespace blink 163 } // namespace blink
163 164
164 #endif // PerformanceBase_h 165 #endif // PerformanceBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698