Index: content/browser/indexed_db/indexed_db_database.cc |
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc |
index 4b50a9e32905eb93185ada1fbac965ed52d504f2..3bdbf5fb4eaa46fc4daf3ff165aa02128a9c2e8e 100644 |
--- a/content/browser/indexed_db/indexed_db_database.cc |
+++ b/content/browser/indexed_db/indexed_db_database.cc |
@@ -1058,19 +1058,22 @@ void IndexedDBDatabase::PutOperation(scoped_ptr<PutOperationParams> params, |
error); |
return; |
} |
- |
- for (size_t i = 0; i < index_writers.size(); ++i) { |
- IndexWriter* index_writer = index_writers[i]; |
- index_writer->WriteIndexKeys(record_identifier, |
- backing_store_.get(), |
- transaction->BackingStoreTransaction(), |
- id(), |
- params->object_store_id); |
+ { |
+ IDB_TRACE1("IndexedDBDatabase::PutOperation::UpdateIndexes", "txn.id", |
+ transaction->id()); |
+ for (size_t i = 0; i < index_writers.size(); ++i) { |
+ IndexWriter* index_writer = index_writers[i]; |
+ index_writer->WriteIndexKeys(record_identifier, backing_store_.get(), |
+ transaction->BackingStoreTransaction(), id(), |
+ params->object_store_id); |
+ } |
} |
if (object_store.auto_increment && |
params->put_mode != blink::WebIDBPutModeCursorUpdate && |
key->type() == WebIDBKeyTypeNumber) { |
+ IDB_TRACE1("IndexedDBDatabase::PutOperation::AutoIncrement", "txn.id", |
+ transaction->id()); |
leveldb::Status s = UpdateKeyGenerator(backing_store_.get(), |
transaction, |
id(), |
@@ -1087,8 +1090,11 @@ void IndexedDBDatabase::PutOperation(scoped_ptr<PutOperationParams> params, |
return; |
} |
} |
- |
- params->callbacks->OnSuccess(*key); |
+ { |
+ IDB_TRACE1("IndexedDBDatabase::PutOperation::Callbacks", "txn.id", |
+ transaction->id()); |
+ params->callbacks->OnSuccess(*key); |
+ } |
} |
void IndexedDBDatabase::SetIndexKeys(int64 transaction_id, |
@@ -1547,6 +1553,7 @@ void IndexedDBDatabase::VersionChangeOperation( |
void IndexedDBDatabase::TransactionFinished(IndexedDBTransaction* transaction, |
bool committed) { |
+ IDB_TRACE1("IndexedDBTransaction::TransactionFinished", "txn.id", id()); |
DCHECK(transactions_.find(transaction->id()) != transactions_.end()); |
DCHECK_EQ(transactions_[transaction->id()], transaction); |
transactions_.erase(transaction->id()); |