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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp

Issue 2732643003: DevTools: remove PerformanceMonitor::HandlerCall, migrate to the new scoped probes. (Closed)
Patch Set: Introduce progress monitor 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp
index 32df617a610235b02d84e81020eb1546b4f943d6..d873b576e8e38bfb5d094ca3b98ae5211093161a 100644
--- a/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptedIdleTaskController.cpp
@@ -7,7 +7,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/dom/IdleRequestCallback.h"
#include "core/dom/IdleRequestOptions.h"
-#include "core/frame/PerformanceMonitor.h"
+#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/InspectorTraceEvents.h"
#include "platform/Histogram.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
@@ -170,8 +170,8 @@ void ScriptedIdleTaskController::runCallback(
("WebCore.ScriptedIdleTaskController.IdleCallbackDeadline", 0, 50, 50));
idleCallbackDeadlineHistogram.count(allottedTimeMillis);
- PerformanceMonitor::HandlerCall handlerCall(getExecutionContext(),
- "requestIdleCallback", true);
+ probe::UserCallback probe(getExecutionContext(), "requestIdleCallback",
+ AtomicString(), true);
TRACE_EVENT1(
"devtools.timeline", "FireIdleCallback", "data",
InspectorIdleCallbackFireEvent::data(

Powered by Google App Engine
This is Rietveld 408576698