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

Unified Diff: third_party/WebKit/Source/core/timing/Performance.cpp

Issue 2966073003: Long tasks: add a trace event for long tasks (Closed)
Patch Set: remove unrelated files Created 3 years, 5 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/timing/Performance.cpp
diff --git a/third_party/WebKit/Source/core/timing/Performance.cpp b/third_party/WebKit/Source/core/timing/Performance.cpp
index a60c520b94f94b3757d865b804b8e0504dd77656..33a85e4e5c7e9990b2790504ff9483dc6e451c3a 100644
--- a/third_party/WebKit/Source/core/timing/Performance.cpp
+++ b/third_party/WebKit/Source/core/timing/Performance.cpp
@@ -46,7 +46,7 @@
#include "platform/loader/fetch/ResourceTimingInfo.h"
#include "platform/RuntimeEnabledFeatures.h"
-static const double kLongTaskThreshold = 0.05;
+static const double kLongTaskObserverThreshold = 0.05;
static const char kUnknownAttribution[] = "unknown";
static const char kAmbiguousAttribution[] = "multiple-contexts";
@@ -158,7 +158,7 @@ void Performance::UpdateLongTaskInstrumentation() {
UseCounter::Count(&GetFrame()->LocalFrameRoot(),
WebFeature::kLongTaskObserver);
GetFrame()->GetPerformanceMonitor()->Subscribe(
- PerformanceMonitor::kLongTask, kLongTaskThreshold, this);
+ PerformanceMonitor::kLongTask, kLongTaskObserverThreshold, this);
} else {
GetFrame()->GetPerformanceMonitor()->UnsubscribeAll(this);
}

Powered by Google App Engine
This is Rietveld 408576698