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

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: 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
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 7e4a9f38c7d37d3b5b602c50de5bcee63e00e4c1..36faa51da0f10ae60d4cf1f1ced48e0e20be3a80 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -315,7 +315,12 @@ leveldb::Status IndexedDBTransaction::CommitPhaseTwo() {
if (committed) {
abort_task_stack_.clear();
- callbacks_->OnComplete(id_);
+ {
+ IDB_TRACE1(
+ "IndexedDBTransaction::CommitPhaseTwo.TransactionCompleteCallbacks",
+ "txn.id", id());
+ callbacks_->OnComplete(id_);
+ }
database_->TransactionFinished(this, true);
} else {
while (!abort_task_stack_.empty())
@@ -409,6 +414,7 @@ void IndexedDBTransaction::Timeout() {
}
void IndexedDBTransaction::CloseOpenCursors() {
+ IDB_TRACE1("IndexedDBTransaction::CloseOpenCursors", "txn.id", id());
for (auto* cursor : open_cursors_)
cursor->Close();
open_cursors_.clear();
« no previous file with comments | « content/browser/indexed_db/indexed_db_tracing.h ('k') | content/browser/indexed_db/leveldb/leveldb_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698