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

Unified Diff: content/browser/indexed_db/indexed_db_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/indexed_db_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index 92679997104233f29b6b871cb0f51a773d2522ac..ff948a1620b5cb7e1cb6e2a3b5c12e3cd3b611e5 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -315,7 +315,11 @@ leveldb::Status IndexedDBTransaction::CommitPhaseTwo() {
if (committed) {
abort_task_stack_.clear();
- callbacks_->OnComplete(id_);
+ {
+ IDB_TRACE1("IndexedDBTransaction:TransactionCompleteCallbacks:", "txn.id",
cmumford 2015/08/03 17:31:33 colon in wrong place.
dmurph 2015/08/05 15:30:32 Done.
+ id());
+ callbacks_->OnComplete(id_);
+ }
database_->TransactionFinished(this, true);
} else {
while (!abort_task_stack_.empty())
@@ -407,6 +411,7 @@ void IndexedDBTransaction::Timeout() {
}
void IndexedDBTransaction::CloseOpenCursors() {
+ IDB_TRACE1("IndexedDBTransaction::CloseOpenCursors", "txn.id", id());
for (auto* cursor : open_cursors_)
cursor->Close();
open_cursors_.clear();

Powered by Google App Engine
This is Rietveld 408576698