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

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

Issue 2386403002: Pass DOMWinow to PerformanceLongTaskTiming for attribution (Closed)
Patch Set: sync and rebase Created 4 years, 2 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/PerformanceBase.cpp
diff --git a/third_party/WebKit/Source/core/timing/PerformanceBase.cpp b/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
index 0973c1ac4a82d820e1579aaedba1b3a404a39cb0..eaeb6580d4104477ae6741b69fbc5d48c8151214 100644
--- a/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
+++ b/third_party/WebKit/Source/core/timing/PerformanceBase.cpp
@@ -361,13 +361,14 @@ bool PerformanceBase::isFrameTimingBufferFull() {
void PerformanceBase::addLongTaskTiming(double startTime,
double endTime,
- const String& frameContextUrl) {
+ const String& name,
+ DOMWindow* culpritWindow) {
if (isLongTaskTimingBufferFull() ||
!hasObserverFor(PerformanceEntry::LongTask))
return;
PerformanceEntry* entry = PerformanceLongTaskTiming::create(
monotonicTimeToDOMHighResTimeStampInMillis(startTime),
- monotonicTimeToDOMHighResTimeStampInMillis(endTime), frameContextUrl);
+ monotonicTimeToDOMHighResTimeStampInMillis(endTime), name, culpritWindow);
notifyObserversOfEntry(*entry);
addLongTaskTimingBuffer(*entry);
}
« no previous file with comments | « third_party/WebKit/Source/core/timing/PerformanceBase.h ('k') | third_party/WebKit/Source/core/timing/PerformanceBaseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698