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

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

Issue 2300323003: Adding performance tests for HQP that represent importance of optimising HistoryItemsForTerms method (Closed)
Patch Set: Created 4 years, 3 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: components/omnibox/browser/autocomplete_controller.cc
diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc
index 4dc3b39b04d033a8c2944548ba20196a55f80603..ae109b98f7a81591672f94cc83a525e3c38502e3 100644
--- a/components/omnibox/browser/autocomplete_controller.cc
+++ b/components/omnibox/browser/autocomplete_controller.cc
@@ -241,6 +241,7 @@ AutocompleteController::~AutocompleteController() {
}
void AutocompleteController::Start(const AutocompleteInput& input) {
+ SCOPED_UMA_HISTOGRAM_TIMER("Omnibox.StartSearchToFirstResultsTime");
TRACE_EVENT1("omnibox", "AutocompleteController::Start",
"text", base::UTF16ToUTF8(input.text()));
const base::string16 old_input_text(input_.text());

Powered by Google App Engine
This is Rietveld 408576698