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

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

Issue 2966073003: Long tasks: add a trace event for long tasks (Closed)
Patch Set: use duration instead 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e32c306a1b3a69596060ea0f1d38ce53b2e11a37..2520de25ec42511a71f15e67c40e4d6ff47af07f 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";
@@ -162,7 +162,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);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698