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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp

Issue 2089003002: Add a trace event for IntersectionObserver computing intersections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
index 29959e6d8825017451a2f72f8282fe715ea3fe39..0b34afd398bd457d956a5c645658947970fb7199 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
@@ -6,6 +6,7 @@
#include "core/dom/Document.h"
#include "core/dom/IdleRequestOptions.h"
+#include "platform/TraceEvent.h"
namespace blink {
@@ -70,6 +71,7 @@ void IntersectionObserverController::deliverIntersectionObservations()
void IntersectionObserverController::computeTrackedIntersectionObservations()
{
+ TRACE_EVENT0("blink", "IntersectionObserverController::computeTrackedIntersectionObservations");
for (auto& observer : m_trackedIntersectionObservers) {
observer->computeIntersectionObservations();
if (observer->hasEntries())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698