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

Unified Diff: chrome/browser/history/in_memory_database.cc

Issue 8379009: Add a field trial for using lower sqlite cache sizes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: chrome/browser/history/in_memory_database.cc
===================================================================
--- chrome/browser/history/in_memory_database.cc (revision 106923)
+++ chrome/browser/history/in_memory_database.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "build/build_config.h"
+#include "chrome/browser/history/history_field_trial.h"
namespace history {
@@ -91,8 +92,9 @@
// just not exist yet.
}
base::TimeTicks end_load = base::TimeTicks::Now();
- UMA_HISTOGRAM_MEDIUM_TIMES("History.InMemoryDBPopulate",
- end_load - begin_load);
+ UMA_HISTOGRAM_MEDIUM_TIMES(
+ "History.InMemoryDBPopulate" + HistoryFieldTrial::GetGroupSuffix(),
jar (doing other things) 2011/10/24 18:40:55 There is a nicer(?) or at least common patterns fo
brettw 2011/10/25 01:55:02 I guess that sounds worse to my thinking. Wouldn't
Scott Hess - ex-Googler 2011/10/26 21:44:59 Can you have it both ways? Old histogram for non-
jar (doing other things) 2011/10/27 00:23:55 The usual pattern is to keep the old histogram unc
+ end_load - begin_load);
UMA_HISTOGRAM_COUNTS("History.InMemoryDBItemCount", db_.GetLastChangeCount());
{

Powered by Google App Engine
This is Rietveld 408576698