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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.cpp

Issue 2459443004: Add tracing to custom elements operations (Closed)
Patch Set: Bring patch to head. 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/dom/custom/CustomElementReactionQueue.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.cpp
index f1341f29c60c6418304fe889987e2353cfa71c15..c54fd41a03b2d3fcfc9775f790edfb719f6ce1e8 100644
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementReactionQueue.cpp
@@ -4,7 +4,9 @@
#include "core/dom/custom/CustomElementReactionQueue.h"
+#include "core/dom/Element.h"
#include "core/dom/custom/CustomElementReaction.h"
+#include "platform/tracing/TraceEvent.h"
namespace blink {
@@ -23,6 +25,8 @@ void CustomElementReactionQueue::add(CustomElementReaction* reaction) {
// There is one queue per element, so this could be invoked
// recursively.
void CustomElementReactionQueue::invokeReactions(Element* element) {
+ TRACE_EVENT1("blink", "CustomElementReactionQueue::invokeReactions", "name",
+ element->localName().utf8());
while (m_index < m_reactions.size()) {
CustomElementReaction* reaction = m_reactions[m_index];
m_reactions[m_index++] = nullptr;

Powered by Google App Engine
This is Rietveld 408576698