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

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

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)
Patch Set: Created 3 years, 7 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.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.h b/content/browser/indexed_db/leveldb/leveldb_transaction.h
index 19181f0884bf434a140cccd8e3f7b46bb546eee0..bd84377c11664368f7c0d5667bcc493ed0f0a568 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -40,6 +40,8 @@ class CONTENT_EXPORT LevelDBTransaction
std::unique_ptr<LevelDBIterator> CreateIterator();
+ uint64_t GetTransactionSize() const { return size_; }
+
protected:
virtual ~LevelDBTransaction();
explicit LevelDBTransaction(LevelDBDatabase* db);
@@ -164,6 +166,7 @@ class CONTENT_EXPORT LevelDBTransaction
const LevelDBComparator* comparator_;
Comparator data_comparator_;
DataType data_;
+ uint64_t size_ = 0ull;
bool finished_ = false;
std::set<TransactionIterator*> iterators_;

Powered by Google App Engine
This is Rietveld 408576698