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

Unified Diff: components/omnibox/browser/search_provider.cc

Issue 1805363002: Add traces for main omnibox providers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TBR=oysteine@chromium.org Created 4 years, 9 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 | « components/omnibox/browser/keyword_provider.cc ('k') | components/omnibox/browser/shortcuts_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/search_provider.cc
diff --git a/components/omnibox/browser/search_provider.cc b/components/omnibox/browser/search_provider.cc
index 757ab64e3a86f57116648a07ac4cc76596335e2b..d4a8e3d83332cc1f63bf1984b0a1f30c5026c298 100644
--- a/components/omnibox/browser/search_provider.cc
+++ b/components/omnibox/browser/search_provider.cc
@@ -20,6 +20,7 @@
#include "base/rand_util.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/trace_event/trace_event.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/history/core/browser/in_memory_database.h"
#include "components/history/core/browser/keyword_search_term.h"
@@ -219,6 +220,7 @@ ACMatches::iterator SearchProvider::FindTopMatch(ACMatches* matches) {
void SearchProvider::Start(const AutocompleteInput& input,
bool minimal_changes) {
+ TRACE_EVENT0("omnibox", "SearchProvider::Start");
// Do our best to load the model as early as possible. This will reduce
// odds of having the model not ready when really needed (a non-empty input).
TemplateURLService* model = client()->GetTemplateURLService();
@@ -387,6 +389,7 @@ void SearchProvider::OnTemplateURLServiceChanged() {
}
void SearchProvider::OnURLFetchComplete(const net::URLFetcher* source) {
+ TRACE_EVENT0("omnibox", "SearchProvider::OnURLFetchComplete");
DCHECK(!done_);
const bool is_keyword = source == keyword_fetcher_.get();
« no previous file with comments | « components/omnibox/browser/keyword_provider.cc ('k') | components/omnibox/browser/shortcuts_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698