summaryrefslogtreecommitdiffstats
path: root/components/url_matcher/url_matcher.cc
diff options
context:
space:
mode:
authorvadimt <vadimt@chromium.org>2014-09-26 08:32:18 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-26 15:32:28 +0000
commit9aa4f709a65b691fa70b1a129b2d7fa1330c84b4 (patch)
treec629ea3f48e624ea862095a9a86f83dfa0d80a3a /components/url_matcher/url_matcher.cc
parent24ce55da5ac28d3e63cc4427c3d9d71b004c6fbd (diff)
downloadchromium_src-9aa4f709a65b691fa70b1a129b2d7fa1330c84b4.zip
chromium_src-9aa4f709a65b691fa70b1a129b2d7fa1330c84b4.tar.gz
chromium_src-9aa4f709a65b691fa70b1a129b2d7fa1330c84b4.tar.bz2
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}
Diffstat (limited to 'components/url_matcher/url_matcher.cc')
-rw-r--r--components/url_matcher/url_matcher.cc5
1 files changed, 5 insertions, 0 deletions
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();