summaryrefslogtreecommitdiffstats
path: root/storage/browser
diff options
context:
space:
mode:
authorshess <shess@chromium.org>2015-06-02 17:19:32 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-03 00:19:59 +0000
commit58b8df8572e25ff91b3073213651aed4ebd675b5 (patch)
tree8e92bdbc754f347c05515489799fc798baa17e19 /storage/browser
parented09d907684cb6209090cf9dcbad91bfc2b11f56 (diff)
downloadchromium_src-58b8df8572e25ff91b3073213651aed4ebd675b5.zip
chromium_src-58b8df8572e25ff91b3073213651aed4ebd675b5.tar.gz
chromium_src-58b8df8572e25ff91b3073213651aed4ebd675b5.tar.bz2
[sql] Stats gathering for sql/ APIs.
Generate stats for how many SQL statements are executed, how many results they return, and how many changes they make. Generate timing values for how long is spent doing all queries, doing updating operations, doing autocommit updates, and commiting transactions. The goal of these metrics is to quantify results of decisions like enabling write-ahead log or memory-mapped I/O. BUG=489788,489444 Review URL: https://codereview.chromium.org/1145833002 Cr-Commit-Position: refs/heads/master@{#332503}
Diffstat (limited to 'storage/browser')
-rw-r--r--storage/browser/database/database_tracker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/browser/database/database_tracker.cc b/storage/browser/database/database_tracker.cc
index 2058b2c..3d579dc 100644
--- a/storage/browser/database/database_tracker.cc
+++ b/storage/browser/database/database_tracker.cc
@@ -459,6 +459,8 @@ bool DatabaseTracker::LazyInit() {
}
}
+ db_->set_histogram_tag("DatabaseTracker");
+
// If the tracker database exists, but it's corrupt or doesn't
// have a meta table, delete the database directory.
const base::FilePath kTrackerDatabaseFullPath =
@@ -472,8 +474,6 @@ bool DatabaseTracker::LazyInit() {
return false;
}
- db_->set_histogram_tag("DatabaseTracker");
-
databases_table_.reset(new DatabasesTable(db_.get()));
meta_table_.reset(new sql::MetaTable());