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

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

Issue 2513483002: DevTools: introduce perf monitor actions w/ time budget for violations that are event handlers. (Closed)
Patch Set: expose locations instead of functions 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 afc43d59f3b1afbe7be35f85275c3fb5d047ba36..79b829ee754791055b807876614e49c488a17437 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLogAgent.cpp
@@ -173,6 +173,10 @@ static PerformanceMonitor::Violation parseViolation(const String& name) {
return PerformanceMonitor::kBlockedEvent;
if (name == ViolationSetting::NameEnum::BlockedParser)
return PerformanceMonitor::kBlockedParser;
+ if (name == ViolationSetting::NameEnum::Handler)
+ return PerformanceMonitor::kHandler;
+ if (name == ViolationSetting::NameEnum::RecurringHandler)
+ return PerformanceMonitor::kRecurringHandler;
return PerformanceMonitor::kAfterLast;
}

Powered by Google App Engine
This is Rietveld 408576698