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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)
Patch Set: added histograms, fixed kb 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: third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index e799703de7fdd455cf1246e44287fb97eba5a2ee..ebe882f762fd9791512e60d1043ed8a3d323af2b 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -511,6 +511,9 @@ IDBRequest* IDBObjectStore::put(ScriptState* script_state,
serialized_value->ToWireBytes(wire_bytes);
RefPtr<SharedBuffer> value_buffer = SharedBuffer::AdoptVector(wire_bytes);
+ UMA_HISTOGRAM_MEMORY_KB("WebCore.IndexedDB.PutValueSize",
+ value_buffer->size() / 1024);
+
request->StorePutOperationBlobs(serialized_value->BlobDataHandles());
BackendDB()->Put(transaction_->Id(), Id(), WebData(value_buffer), blob_info,

Powered by Google App Engine
This is Rietveld 408576698