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

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)

Created:
3 years, 7 months ago by dmurph
Modified:
3 years, 6 months ago
Reviewers:
Mark P, mpearson, pwnall
CC:
chromium-reviews, jam, blink-reviews, darin-cc_chromium.org, cmumford, haraken, jsbell+idb_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[IndexedDB] Adding txn, value, and key size metrics, and update txn cost. Metrics for transaction, value, and key sizes. Transaction size cost for quota updated to include key size estimation. BUG=723129 Review-Url: https://codereview.chromium.org/2904603003 Cr-Commit-Position: refs/heads/master@{#476089} Committed: https://chromium.googlesource.com/chromium/src/+/4dc3da85cabab5ebae5807dbb4ecb3d270e9072b

Patch Set 1 #

Total comments: 8

Patch Set 2 : Added blob metrics, comments, and fix for kb #

Patch Set 3 : added histograms, fixed kb #

Total comments: 4

Patch Set 4 : comments and compile #

Patch Set 5 : updated fakes and size interface to let tests pass #

Patch Set 6 : fixed tests, ran tests #

Patch Set 7 : doing math in test #

Patch Set 8 : rebase #

Patch Set 9 : build fix #

Patch Set 10 : rebase again #

Patch Set 11 : fix for error cases #

Patch Set 12 : made sure size is 0'd out #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -9 lines) Patch
M content/browser/indexed_db/database_impl.cc View 1 5 chunks +20 lines, -5 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_fake_backing_store.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/indexed_db/indexed_db_transaction.cc View 1 2 3 4 5 6 7 8 9 1 chunk +26 lines, -0 lines 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.h View 1 4 chunks +5 lines, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction.cc View 1 2 3 4 5 6 5 chunks +10 lines, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_transaction_unittest.cc View 1 2 3 4 5 6 3 chunks +12 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 2 chunks +93 lines, -0 lines 0 comments Download

Messages

Total messages: 77 (56 generated)
dmurph
Victor, can you PTAL?
3 years, 7 months ago (2017-05-23 22:14:08 UTC) #3
pwnall
This is really good stuff! Thanks for putting together the CL! https://codereview.chromium.org/2904603003/diff/1/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): ...
3 years, 7 months ago (2017-05-23 23:01:10 UTC) #4
dmurph
Thanks! Can you PTAL again? https://codereview.chromium.org/2904603003/diff/1/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): https://codereview.chromium.org/2904603003/diff/1/content/browser/indexed_db/indexed_db_transaction.cc#newcode357 content/browser/indexed_db/indexed_db_transaction.cc:357: UMA_HISTOGRAM_MEMORY_KB("WebCore.IndexedDB.TransactionSize", On 2017/05/23 23:01:09, ...
3 years, 7 months ago (2017-05-24 02:01:58 UTC) #6
pwnall
LGTM. Thank you for adding these metrics!
3 years, 7 months ago (2017-05-24 02:14:22 UTC) #8
dmurph
+ Mark for histograms review. I'm trying to get this in before Thursday evening (branch ...
3 years, 7 months ago (2017-05-24 02:22:04 UTC) #11
Mark P
https://codereview.chromium.org/2904603003/diff/40001/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): https://codereview.chromium.org/2904603003/diff/40001/content/browser/indexed_db/indexed_db_transaction.cc#newcode365 content/browser/indexed_db/indexed_db_transaction.cc:365: UMA_HISTOGRAM_MEDIUM_TIMES(time_uma_name, I don't think these macros will work. Have ...
3 years, 7 months ago (2017-05-24 18:57:39 UTC) #16
dmurph
Thanks Mark! Can you ptal again? https://codereview.chromium.org/2904603003/diff/40001/content/browser/indexed_db/indexed_db_transaction.cc File content/browser/indexed_db/indexed_db_transaction.cc (right): https://codereview.chromium.org/2904603003/diff/40001/content/browser/indexed_db/indexed_db_transaction.cc#newcode365 content/browser/indexed_db/indexed_db_transaction.cc:365: UMA_HISTOGRAM_MEDIUM_TIMES(time_uma_name, On 2017/05/24 ...
3 years, 7 months ago (2017-05-24 19:25:59 UTC) #17
Mark P
histograms.xml lgtm
3 years, 7 months ago (2017-05-24 19:42:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/80001
3 years, 7 months ago (2017-05-24 21:03:23 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/82069)
3 years, 7 months ago (2017-05-24 21:37:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/100001
3 years, 7 months ago (2017-05-24 21:55:54 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/82228)
3 years, 7 months ago (2017-05-24 23:44:35 UTC) #35
dmurph
Turns out I'm using sizeof(Record), which depends on the system, so my tests can't be ...
3 years, 7 months ago (2017-05-25 02:33:39 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/120001
3 years, 7 months ago (2017-05-25 18:08:35 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/180001
3 years, 6 months ago (2017-05-30 22:29:53 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/382096)
3 years, 6 months ago (2017-05-31 00:57:30 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/180001
3 years, 6 months ago (2017-05-31 17:28:00 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/220001
3 years, 6 months ago (2017-05-31 18:01:06 UTC) #70
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/468595)
3 years, 6 months ago (2017-05-31 20:23:46 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904603003/220001
3 years, 6 months ago (2017-05-31 21:02:00 UTC) #74
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 23:26:59 UTC) #77
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/4dc3da85cabab5ebae5807dbb4ec...

Powered by Google App Engine
This is Rietveld 408576698