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

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

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)
Patch Set: made sure size is 0'd out 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 02a187d672923a8cff43b851bedaad1b09fcc2a7..b8c6a606eba54ca2cce82595db13b56bb6bc3d4c 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -495,6 +495,8 @@ IDBRequest* IDBObjectStore::put(ScriptState* script_state,
index_ids.push_back(it.key);
index_keys.push_back(keys);
}
+ UMA_HISTOGRAM_MEMORY_KB("WebCore.IndexedDB.PutValueSize",
+ value_wrapper.DataLengthBeforeWrapInBytes() / 1024);
IDBRequest* request =
IDBRequest::Create(script_state, source, transaction_.Get());

Powered by Google App Engine
This is Rietveld 408576698