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

Side by Side Diff: third_party/WebKit/Source/core/dom/FrameRequestCallbackCollection.cpp

Issue 2737863002: DevTools: move counter-related devtools.timeline trace events into probe:: probes. (Closed)
Patch Set: same Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "core/dom/FrameRequestCallbackCollection.h" 5 #include "core/dom/FrameRequestCallbackCollection.h"
6 6
7 #include "core/dom/FrameRequestCallback.h" 7 #include "core/dom/FrameRequestCallback.h"
8 #include "core/inspector/InspectorInstrumentation.h" 8 #include "core/inspector/InspectorInstrumentation.h"
9 #include "core/inspector/InspectorTraceEvents.h" 9 #include "core/inspector/InspectorTraceEvents.h"
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 TRACE_EVENT1( 69 TRACE_EVENT1(
70 "devtools.timeline", "FireAnimationFrame", "data", 70 "devtools.timeline", "FireAnimationFrame", "data",
71 InspectorAnimationFrameEvent::data(m_context, callback->m_id)); 71 InspectorAnimationFrameEvent::data(m_context, callback->m_id));
72 probe::AsyncTask asyncTask(m_context, callback); 72 probe::AsyncTask asyncTask(m_context, callback);
73 probe::UserCallback probe(m_context, "requestAnimationFrame", 73 probe::UserCallback probe(m_context, "requestAnimationFrame",
74 AtomicString(), true); 74 AtomicString(), true);
75 if (callback->m_useLegacyTimeBase) 75 if (callback->m_useLegacyTimeBase)
76 callback->handleEvent(highResNowMsLegacy); 76 callback->handleEvent(highResNowMsLegacy);
77 else 77 else
78 callback->handleEvent(highResNowMs); 78 callback->handleEvent(highResNowMs);
79 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"),
80 "UpdateCounters", TRACE_EVENT_SCOPE_THREAD, "data",
81 InspectorUpdateCountersEvent::data());
82 } 79 }
83 } 80 }
84 81
85 m_callbacksToInvoke.clear(); 82 m_callbacksToInvoke.clear();
86 } 83 }
87 84
88 DEFINE_TRACE(FrameRequestCallbackCollection) { 85 DEFINE_TRACE(FrameRequestCallbackCollection) {
89 visitor->trace(m_callbacks); 86 visitor->trace(m_callbacks);
90 visitor->trace(m_callbacksToInvoke); 87 visitor->trace(m_callbacksToInvoke);
91 visitor->trace(m_context); 88 visitor->trace(m_context);
92 } 89 }
93 90
94 } // namespace blink 91 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698