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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.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/IDBValueWrapping.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.cpp
index a834b6a25b11c156cc75e7f2bb49687da56499bf..36969a79a5ae10d2cf8ecd4e372080034db2bcdf 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.cpp
@@ -67,7 +67,8 @@ IDBValueWrapper::IDBValueWrapper(
serialized_value_ = SerializedScriptValue::Serialize(isolate, value, options,
exception_state);
-
+ if (serialized_value_)
+ original_data_length_ = serialized_value_->DataLengthInBytes();
#if DCHECK_IS_ON()
if (exception_state.HadException())
had_exception_ = true;
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698