sql: Rename UMA histogram Sqlite.Stats to Sqlite.Stats2.
https://crrev.com/c/1488952 changed the data collection logic for
Sqlite.Stats, so it should have renamed the histogram.
Bug: 935824
Change-Id: I2ef7cc7409afcdf7033e8f542b0cd57c4a9a8ab4
Reviewed-on: https://chromium-review.googlesource.com/c/1492780
Commit-Queue: Victor Costan <[email protected]>
Commit-Queue: Mark Pearson <[email protected]>
Reviewed-by: Mark Pearson <[email protected]>
Auto-Submit: Victor Costan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#636689}
diff --git a/sql/database.cc b/sql/database.cc
index cc9607b3..bcd2b922 100644
--- a/sql/database.cc
+++ b/sql/database.cc
@@ -267,7 +267,7 @@
void Database::RecordEvent(Events event, size_t count) {
for (size_t i = 0; i < count; ++i) {
- UMA_HISTOGRAM_ENUMERATION("Sqlite.Stats", event, EVENT_MAX_VALUE);
+ UMA_HISTOGRAM_ENUMERATION("Sqlite.Stats2", event, EVENT_MAX_VALUE);
}
if (stats_histogram_) {
@@ -1483,7 +1483,7 @@
// Databases which won't exercise all of these probably shouldn't exist.
if (!histogram_tag_.empty()) {
stats_histogram_ = base::LinearHistogram::FactoryGet(
- "Sqlite.Stats." + histogram_tag_, 1, EVENT_MAX_VALUE,
+ "Sqlite.Stats2." + histogram_tag_, 1, EVENT_MAX_VALUE,
EVENT_MAX_VALUE + 1, base::HistogramBase::kUmaTargetedHistogramFlag);
}