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

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

Issue 2610063006: Create TaskAttributionTiming PerformanceEntry for attribution in PerformanceLongTaskTiming. Move cu… (Closed)
Patch Set: update layout test expectation Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 PerformanceLongTaskTiming_h 5 #ifndef PerformanceLongTaskTiming_h
6 #define PerformanceLongTaskTiming_h 6 #define PerformanceLongTaskTiming_h
7 7
8 #include "core/timing/PerformanceEntry.h" 8 #include "core/timing/PerformanceEntry.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "wtf/Forward.h" 10 #include "wtf/Forward.h"
11 #include "wtf/text/WTFString.h" 11 #include "wtf/text/WTFString.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class TaskAttributionTiming;
16 using TaskAttributionVector = HeapVector<Member<TaskAttributionTiming>>;
17
15 class PerformanceLongTaskTiming final : public PerformanceEntry { 18 class PerformanceLongTaskTiming final : public PerformanceEntry {
16 DEFINE_WRAPPERTYPEINFO(); 19 DEFINE_WRAPPERTYPEINFO();
17 20
18 public: 21 public:
19 static PerformanceLongTaskTiming* create(double startTime, 22 static PerformanceLongTaskTiming* create(double startTime,
20 double endTime, 23 double endTime,
21 String name, 24 String name,
22 String culpritFrameSrc, 25 String frameSrc,
23 String culpritFrameId, 26 String frameId,
24 String culpritFrameName) { 27 String frameName);
25 return new PerformanceLongTaskTiming(startTime, endTime, name,
26 culpritFrameSrc, culpritFrameId,
27 culpritFrameName);
28 }
29 28
30 String culpritFrameSrc() const; 29 TaskAttributionVector attribution() const;
31 String culpritFrameId() const;
32 String culpritFrameName() const;
33 30
34 DECLARE_VIRTUAL_TRACE(); 31 DECLARE_VIRTUAL_TRACE();
35 32
36 private: 33 private:
37 PerformanceLongTaskTiming(double startTime, 34 PerformanceLongTaskTiming(double startTime,
38 double endTime, 35 double endTime,
39 String name, 36 String name,
40 String culpritFrameSrc, 37 String frameSrc,
41 String culpritFrameId, 38 String frameId,
42 String culpritFrameName); 39 String frameName);
43 ~PerformanceLongTaskTiming() override; 40 ~PerformanceLongTaskTiming() override;
44 41
45 String m_culpritFrameSrc; 42 TaskAttributionVector m_attribution;
46 String m_culpritFrameId;
47 String m_culpritFrameName;
48 }; 43 };
49 44
50 } // namespace blink 45 } // namespace blink
51 46
52 #endif // PerformanceLongTaskTiming_h 47 #endif // PerformanceLongTaskTiming_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698