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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.cc

Issue 1238393003: [IndexedDB] Adding traces, perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forgot to start the old test Created 5 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
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | tools/perf/benchmarks/indexeddb_perf.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/leveldb/leveldb_transaction.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.cc b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
index a9e7109332288b1b1fc5b9af2b9a91789691ccbe..91a7956d7aabcc07b21c75eb59389930f7996ff1 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "base/time/time.h"
+#include "content/browser/indexed_db/indexed_db_tracing.h"
#include "content/browser/indexed_db/leveldb/leveldb_database.h"
#include "content/browser/indexed_db/leveldb/leveldb_write_batch.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
@@ -88,6 +89,7 @@ leveldb::Status LevelDBTransaction::Get(const StringPiece& key,
leveldb::Status LevelDBTransaction::Commit() {
DCHECK(!finished_);
+ IDB_TRACE("LevelDBTransaction::Commit");
if (data_.empty()) {
finished_ = true;
@@ -482,6 +484,7 @@ void LevelDBDirectTransaction::Remove(const StringPiece& key) {
leveldb::Status LevelDBDirectTransaction::Commit() {
DCHECK(!finished_);
+ IDB_TRACE("LevelDBDirectTransaction::Commit");
leveldb::Status s = db_->Write(*write_batch_);
if (s.ok()) {
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | tools/perf/benchmarks/indexeddb_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698