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

Issue 2858133002: Add uma stats to help evaluate the impact of changes to the quota allocation logic. (Closed)

Created:
3 years, 7 months ago by michaeln
Modified:
3 years, 7 months ago
CC:
blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jkarlin+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, nhiroki, serviceworker-reviews, shimazu+serviceworker_chromium.org, tzik
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add uma stats to help evaluate the impact of changes to the quota allocation logic. This CL adds several Storage.BytesRead.XXX and Storage.BytesWritten.XXX histograms. The size of each read or write is logged at a low level for: CacheStorage, IndexedDB, ServiceWorker, and AppCache. Storage.BytesXXX.LevelDBEnv.IDB corresponds to IndexedDB. Some other leveldb consumers are also instrumented, for example LevelDBEnv.ServiceWorker, but not all of them are differentiated from one another, they are logged as LevelDBEnv, and some aren't instrumented at all. Here are the labels... <histogram_suffixes name="Storage.Bytes" separator="."> <suffix name="DiskCache.AppCache" label="AppCache usage."/> <suffix name="DiskCache.CacheStorage" label="CacheStorage usage."/> <suffix name="DiskCache.ServiceWorker" label="ServiceWorker scriptcache usage."/> <suffix name="LevelDBEnv" label="Undifferentiated leveldb usage."/> <suffix name="LevelDBEnv.IDB" label="IndexedDB usage."/> <suffix name="LevelDBEnv.ServiceWorker" label="ServiceWorker database usage."/> <suffix name="MojoLevelDBEnv" label="Mojo leveldb component usage."/> <affected-histogram name="Storage.BytesRead"/> <affected-histogram name="Storage.BytesWritten"/> </histogram_suffixes> BUG=605758 Review-Url: https://codereview.chromium.org/2858133002 Cr-Commit-Position: refs/heads/master@{#473752} Committed: https://chromium.googlesource.com/chromium/src/+/93ccede540fea5eab25f65c15bc284a5c2c2dfbf

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : xml #

Total comments: 2

Patch Set 4 : rebase #

Total comments: 9

Patch Set 5 : comments #

Patch Set 6 : labels #

Patch Set 7 : another env #

Total comments: 2

Patch Set 8 : macros #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -45 lines) Patch
M components/leveldb/env_mojo.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M components/leveldb/env_mojo.cc View 1 2 3 4 5 6 7 5 chunks +26 lines, -17 lines 0 comments Download
M content/browser/appcache/appcache_disk_cache.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/appcache/appcache_response.h View 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/appcache/appcache_response.cc View 1 5 chunks +12 lines, -2 lines 0 comments Download
M content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 5 chunks +12 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_disk_cache.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M storage/browser/blob/blob_reader.cc View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M storage/common/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A storage/common/storage_histograms.h View 1 chunk +18 lines, -0 lines 0 comments Download
A storage/common/storage_histograms.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/leveldatabase/env_chromium.h View 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 4 5 6 7 chunks +39 lines, -17 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (28 generated)
michaeln
ptal, i'm adding the histogram.xml changes now
3 years, 7 months ago (2017-05-04 00:04:21 UTC) #8
jsbell
lgtm
3 years, 7 months ago (2017-05-04 19:40:46 UTC) #14
jsbell
https://codereview.chromium.org/2858133002/diff/40001/storage/common/storage_histograms.cc File storage/common/storage_histograms.cc (right): https://codereview.chromium.org/2858133002/diff/40001/storage/common/storage_histograms.cc#newcode15 storage/common/storage_histograms.cc:15: const int kMax = 10000000; Hrm, actually... does this ...
3 years, 7 months ago (2017-05-04 19:43:37 UTC) #15
jsbell
https://codereview.chromium.org/2858133002/diff/40001/storage/common/storage_histograms.cc File storage/common/storage_histograms.cc (right): https://codereview.chromium.org/2858133002/diff/40001/storage/common/storage_histograms.cc#newcode15 storage/common/storage_histograms.cc:15: const int kMax = 10000000; On 2017/05/04 19:43:37, jsbell ...
3 years, 7 months ago (2017-05-04 19:48:00 UTC) #16
michaeln
@isherman, ptal
3 years, 7 months ago (2017-05-18 19:27:17 UTC) #18
Ilya Sherman
https://codereview.chromium.org/2858133002/diff/60001/storage/common/storage_histograms.cc File storage/common/storage_histograms.cc (right): https://codereview.chromium.org/2858133002/diff/60001/storage/common/storage_histograms.cc#newcode19 storage/common/storage_histograms.cc:19: base::Histogram::kUmaTargetedHistogramFlag); nit: Could you use base::UmaHistogramCustomCounts here? https://codereview.chromium.org/2858133002/diff/60001/storage/common/storage_histograms.cc#newcode26 storage/common/storage_histograms.cc:26: ...
3 years, 7 months ago (2017-05-19 00:17:14 UTC) #19
michaeln
ptal https://codereview.chromium.org/2858133002/diff/60001/storage/common/storage_histograms.cc File storage/common/storage_histograms.cc (right): https://codereview.chromium.org/2858133002/diff/60001/storage/common/storage_histograms.cc#newcode19 storage/common/storage_histograms.cc:19: base::Histogram::kUmaTargetedHistogramFlag); On 2017/05/19 00:17:14, Ilya Sherman wrote: > ...
3 years, 7 months ago (2017-05-19 01:22:06 UTC) #20
Ilya Sherman
LGTM % labels. Thanks. https://codereview.chromium.org/2858133002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2858133002/diff/60001/tools/metrics/histograms/histograms.xml#newcode92548 tools/metrics/histograms/histograms.xml:92548: + <suffix name="DiskCache.ServiceWorker"/> On 2017/05/19 ...
3 years, 7 months ago (2017-05-19 06:24:46 UTC) #21
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/2858133002/100001
3 years, 7 months ago (2017-05-19 19:27:38 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/372221) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-05-19 19:39:50 UTC) #26
michaeln
@mek, ptal at env_mojo.cc and h
3 years, 7 months ago (2017-05-19 21:09:05 UTC) #29
Marijn Kruisselbrink
lgtm https://codereview.chromium.org/2858133002/diff/80002/components/leveldb/env_mojo.cc File components/leveldb/env_mojo.cc (right): https://codereview.chromium.org/2858133002/diff/80002/components/leveldb/env_mojo.cc#newcode460 components/leveldb/env_mojo.cc:460: base::UmaHistogramCounts10M("Storage.BytesRead.MojoLevelDBEnv", amount); nit: since these histogram names are ...
3 years, 7 months ago (2017-05-19 21:28:28 UTC) #32
michaeln
thnx! https://codereview.chromium.org/2858133002/diff/80002/components/leveldb/env_mojo.cc File components/leveldb/env_mojo.cc (right): https://codereview.chromium.org/2858133002/diff/80002/components/leveldb/env_mojo.cc#newcode460 components/leveldb/env_mojo.cc:460: base::UmaHistogramCounts10M("Storage.BytesRead.MojoLevelDBEnv", amount); On 2017/05/19 21:28:28, Marijn Kruisselbrink wrote: ...
3 years, 7 months ago (2017-05-19 21:37:55 UTC) #33
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/2858133002/130001
3 years, 7 months ago (2017-05-19 22:01:03 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/298658)
3 years, 7 months ago (2017-05-19 23:27:38 UTC) #38
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/2858133002/130001
3 years, 7 months ago (2017-05-19 23:43:58 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/298770)
3 years, 7 months ago (2017-05-20 03:00:58 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/2858133002/130001
3 years, 7 months ago (2017-05-22 20:46:18 UTC) #44
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 00:01:40 UTC) #47
Message was sent while issue was closed.
Committed patchset #8 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/93ccede540fea5eab25f65c15bc2...

Powered by Google App Engine
This is Rietveld 408576698