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

Side by Side Diff: third_party/WebKit/Source/core/timing/Performance.cpp

Issue 2238883005: POC for InspectorInstrumentation adding InspectorWebPerfAgent Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add task observer to WebPerfAgent Created 4 years, 4 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 PerformanceTiming* Performance::timing() const 87 PerformanceTiming* Performance::timing() const
88 { 88 {
89 if (!m_timing) 89 if (!m_timing)
90 m_timing = PerformanceTiming::create(m_frame); 90 m_timing = PerformanceTiming::create(m_frame);
91 91
92 return m_timing.get(); 92 return m_timing.get();
93 } 93 }
94 94
95 void Performance::enableInspectorInstrumentation() const
96 {
97 frame()->enableWebPerfInspectorInstrumentation();
pfeldman 2016/08/17 21:12:11 ... which you call here.
98 }
99
95 DEFINE_TRACE(Performance) 100 DEFINE_TRACE(Performance)
96 { 101 {
97 visitor->trace(m_navigation); 102 visitor->trace(m_navigation);
98 visitor->trace(m_timing); 103 visitor->trace(m_timing);
99 DOMWindowProperty::trace(visitor); 104 DOMWindowProperty::trace(visitor);
100 PerformanceBase::trace(visitor); 105 PerformanceBase::trace(visitor);
101 } 106 }
102 107
103 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698