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

Issue 2168123002: [CacheStorage] Add metrics to the scheduler (Closed)

Created:
4 years, 5 months ago by jkarlin
Modified:
4 years, 4 months ago
Reviewers:
rkaplow, jsbell
CC:
chromium-reviews, Peter Beverloo, jam, chasej+watch_chromium.org, nhiroki, iclelland+watch_chromium.org, darin-cc_chromium.org, jkarlin+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Add metrics to the scheduler This CL adds UMA to keep track of operation stats such as how long the queue is when adding an operation, how long each operation waits on the queue, how long each operation takes, and whether operations freeze. BUG=630285 Committed: https://crrev.com/8fdce7026ee44b2d26fa31bdd3f713d1fd9f92ff Cr-Commit-Position: refs/heads/master@{#407878}

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : Nits #

Patch Set 4 : Moar #

Patch Set 5 : Even moar! #

Patch Set 6 : Don't use unnamed namespace in header file #

Total comments: 12

Patch Set 7 : Address comments from PS6 #

Total comments: 4

Patch Set 8 : Address comments from PS7 #

Patch Set 9 : Copyright date #

Patch Set 10 : Rebase #

Patch Set 11 : Add unit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+349 lines, -20 lines) Patch
M content/browser/background_sync/background_sync_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
A content/browser/cache_storage/cache_storage_histogram_macros.h View 1 2 3 4 5 1 chunk +43 lines, -0 lines 0 comments Download
A content/browser/cache_storage/cache_storage_operation.h View 1 2 3 1 chunk +61 lines, -0 lines 0 comments Download
A content/browser/cache_storage/cache_storage_operation.cc View 1 2 3 4 5 6 7 1 chunk +49 lines, -0 lines 0 comments Download
A content/browser/cache_storage/cache_storage_operation_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +87 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_scheduler.h View 1 2 3 4 5 6 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/cache_storage/cache_storage_scheduler.cc View 1 2 3 1 chunk +28 lines, -13 lines 0 comments Download
A content/browser/cache_storage/cache_storage_scheduler_client.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_scheduler_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 2 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
jkarlin
jsbell@ PTAL at everything, thanks!
4 years, 5 months ago (2016-07-21 17:33:36 UTC) #4
jsbell
lgtm with a few nits https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_operation_unittest.cc File content/browser/cache_storage/cache_storage_operation_unittest.cc (right): https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_operation_unittest.cc#newcode14 content/browser/cache_storage/cache_storage_operation_unittest.cc:14: #include "content/public/test/test_browser_thread_bundle.h" Needed? https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_operation_unittest.cc#newcode28 ...
4 years, 5 months ago (2016-07-21 18:13:31 UTC) #7
jkarlin
rkaplow@ PTAL at histograms.xml, thanks!
4 years, 5 months ago (2016-07-21 18:24:54 UTC) #9
jkarlin
Thanks jsbell! https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_operation_unittest.cc File content/browser/cache_storage/cache_storage_operation_unittest.cc (right): https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_operation_unittest.cc#newcode14 content/browser/cache_storage/cache_storage_operation_unittest.cc:14: #include "content/public/test/test_browser_thread_bundle.h" On 2016/07/21 18:13:31, jsbell wrote: ...
4 years, 5 months ago (2016-07-21 18:29:24 UTC) #11
jkarlin
https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_scheduler.h File content/browser/cache_storage/cache_storage_scheduler.h (right): https://codereview.chromium.org/2168123002/diff/100001/content/browser/cache_storage/cache_storage_scheduler.h#newcode13 content/browser/cache_storage/cache_storage_scheduler.h:13: #include "base/memory/ref_counted.h" On 2016/07/21 18:13:31, jsbell wrote: > Needed? ...
4 years, 5 months ago (2016-07-21 18:29:49 UTC) #12
rkaplow
https://codereview.chromium.org/2168123002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2168123002/diff/120001/tools/metrics/histograms/histograms.xml#newcode52003 tools/metrics/histograms/histograms.xml:52003: +<histogram name="ServiceWorkerCache.Scheduler.OperationSlow" enum="BooleanSlow"> instead of making a custom enum, ...
4 years, 5 months ago (2016-07-21 18:40:01 UTC) #14
jkarlin
Thanks rkaplow@, PTAL https://codereview.chromium.org/2168123002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2168123002/diff/120001/tools/metrics/histograms/histograms.xml#newcode52003 tools/metrics/histograms/histograms.xml:52003: +<histogram name="ServiceWorkerCache.Scheduler.OperationSlow" enum="BooleanSlow"> On 2016/07/21 18:40:01, ...
4 years, 5 months ago (2016-07-21 20:19:30 UTC) #18
jkarlin
rkaplow@ PTAL, thanks!
4 years, 5 months ago (2016-07-22 19:05:52 UTC) #29
rkaplow
On 2016/07/21 20:19:30, jkarlin wrote: > Thanks rkaplow@, PTAL > > https://codereview.chromium.org/2168123002/diff/120001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml ...
4 years, 4 months ago (2016-07-25 18:32:35 UTC) #30
rkaplow
lgtm
4 years, 4 months ago (2016-07-25 18:33:16 UTC) #31
jkarlin
On 2016/07/25 18:32:35, rkaplow wrote: > On 2016/07/21 20:19:30, jkarlin wrote: > > Thanks rkaplow@, ...
4 years, 4 months ago (2016-07-26 18:11:16 UTC) #32
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/2168123002/220001
4 years, 4 months ago (2016-07-26 18:12:09 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 4 months ago (2016-07-26 19:30:31 UTC) #36
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 19:33:53 UTC) #38
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/8fdce7026ee44b2d26fa31bdd3f713d1fd9f92ff
Cr-Commit-Position: refs/heads/master@{#407878}

Powered by Google App Engine
This is Rietveld 408576698