From 9aa4f709a65b691fa70b1a129b2d7fa1330c84b4 Mon Sep 17 00:00:00 2001
From: vadimt <vadimt@chromium.org>
Date: Fri, 26 Sep 2014 08:32:18 -0700
Subject: Adding tracking to verify the theory that jankiness of
 ExtensionMessageFilter::OnExtensionAddListener is because of rebuilding
 matchers.

BUG=417106

Review URL: https://codereview.chromium.org/597413004

Cr-Commit-Position: refs/heads/master@{#296945}
---
 components/url_matcher/url_matcher.cc | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'components')

diff --git a/components/url_matcher/url_matcher.cc b/components/url_matcher/url_matcher.cc
index 3798f7e..13a4896 100644
--- a/components/url_matcher/url_matcher.cc
+++ b/components/url_matcher/url_matcher.cc
@@ -8,6 +8,7 @@
 #include <iterator>
 
 #include "base/logging.h"
+#include "base/profiler/scoped_profile.h"
 #include "url/gurl.h"
 #include "url/url_canon.h"
 
@@ -1081,6 +1082,10 @@ void URLMatcher::UpdateConditionFactory() {
 }
 
 void URLMatcher::UpdateInternalDatastructures() {
+  // TODO(vadimt): Remove ScopedProfile below once crbug.com/417106 is fixed.
+  tracked_objects::ScopedProfile tracking_profile(
+      FROM_HERE_WITH_EXPLICIT_FUNCTION(
+          "URLMatcher_UpdateInternalDatastructures"));
   UpdateSubstringSetMatcher(false);
   UpdateSubstringSetMatcher(true);
   UpdateRegexSetMatcher();
-- 
cgit v1.1