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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp

Issue 2515693003: DevTools: bring violations and timeline warnings in sync. (Closed)
Patch Set: idle callback test fixed. 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/inspector/InspectorLogAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
index 79b829ee754791055b807876614e49c488a17437..62bc2d7b7fe044a54fcf96206c19f36b7078b46d 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
@@ -207,18 +207,6 @@ Response InspectorLogAgent::stopViolationsReport() {
return Response::OK();
}
-void InspectorLogAgent::reportLongTask(
- double startTime,
- double endTime,
- const HeapHashSet<Member<Frame>>& contextFrames) {
- double time = (endTime - startTime) * 1000;
- String messageText =
- String::format("Long running JavaScript task took %ldms", lround(time));
- ConsoleMessage* message = ConsoleMessage::create(
- ViolationMessageSource, WarningMessageLevel, messageText);
- consoleMessageAdded(message);
-}
-
void InspectorLogAgent::reportLongLayout(double duration) {
String messageText =
String::format("Forced reflow while executing JavaScript took %ldms",

Powered by Google App Engine
This is Rietveld 408576698