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

Unified Diff: third_party/WebKit/Source/core/frame/DOMTimer.cpp

Issue 2514643002: DevTools: support all handlers that end up with function call in perfmonitor. (Closed)
Patch Set: review comments addressed. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/DOMTimer.cpp
diff --git a/third_party/WebKit/Source/core/frame/DOMTimer.cpp b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
index 30fe1c046957604f6eb63a6c780979c91333e446..f3cd7206b7826207d9a7198b07e43f128a53a349 100644
--- a/third_party/WebKit/Source/core/frame/DOMTimer.cpp
+++ b/third_party/WebKit/Source/core/frame/DOMTimer.cpp
@@ -134,7 +134,8 @@ void DOMTimer::fired() {
TRACE_EVENT1("devtools.timeline", "TimerFire", "data",
InspectorTimerFireEvent::data(context, m_timeoutID));
- PerformanceMonitor::HandlerCall handlerCall(context, m_action);
+ PerformanceMonitor::HandlerCall handlerCall(
+ context, repeatInterval() ? "setInterval" : "setTimeout", true);
InspectorInstrumentation::NativeBreakpoint nativeBreakpoint(
context, "timerFired", false);
InspectorInstrumentation::AsyncTask asyncTask(context, this);
« no previous file with comments | « third_party/WebKit/Source/core/events/EventTarget.cpp ('k') | third_party/WebKit/Source/core/frame/PerformanceMonitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698