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

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: update Created 5 years, 4 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: 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..b15d6e7199823ca41ea1c9936d8997b42b691fa5 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 "base/trace_event/trace_event.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_);
+ TRACE_EVENT0("LevelDB", "LevelDBTransaction::Commit");
if (data_.empty()) {
finished_ = true;
@@ -482,6 +484,7 @@ void LevelDBDirectTransaction::Remove(const StringPiece& key) {
leveldb::Status LevelDBDirectTransaction::Commit() {
DCHECK(!finished_);
+ TRACE_EVENT0("LevelDB", "LevelDBDirectTransaction::Commit");
leveldb::Status s = db_->Write(*write_batch_);
if (s.ok()) {

Powered by Google App Engine
This is Rietveld 408576698