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

Issue 378063002: Adding cache hit/miss histograms to DiskBasedCertCache. (Closed)

Created:
6 years, 5 months ago by brandonsalmon
Modified:
6 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@DBCC_MRU_Implement
Project:
chromium
Visibility:
Public.

Description

Adding cache hit/miss histograms to DiskBasedCertCache. There are separate histograms for the in-memory MRU cache and the disk cache. This cl is closely related to https://codereview.chromium.org/356953003/, which implements similar histograms in the http_cache. and a follow up to https://codereview.chromium.org/361513003/ BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282584

Patch Set 1 #

Total comments: 5

Patch Set 2 : Added enum and edited histogram descriptions/names. #

Total comments: 1

Patch Set 3 : Fixed wtc nits from previous cl (#361513003) #

Total comments: 2

Patch Set 4 : Made changes to histograms. #

Total comments: 4

Patch Set 5 : Fixed nits #

Patch Set 6 : Corruption no longer counted as a DiskCache hit, now counted separately. #

Total comments: 8

Patch Set 7 : Fixed nits and added error case. #

Patch Set 8 : Resolved merge conflicts (hopefully). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -12 lines) Patch
M net/http/disk_based_cert_cache.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M net/http/disk_based_cert_cache.cc View 1 2 3 4 5 6 7 9 chunks +36 lines, -8 lines 0 comments Download
M net/http/disk_based_cert_cache_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
brandonsalmon
I added a few histograms to deal with cache hits/misses. Note: I made a new ...
6 years, 5 months ago (2014-07-08 23:57:10 UTC) #1
Ryan Sleevi
jar: Should we prefix these histograms with "Net." or not? net/ seems inconsistent in this ...
6 years, 5 months ago (2014-07-09 00:10:10 UTC) #2
wtc
Patch set 1 LGTM. I skimmed through histograms.xml, but I checked the code in disk_based_cert_cache.cc ...
6 years, 5 months ago (2014-07-09 14:55:36 UTC) #3
brandonsalmon
I added an enum to histograms.xml to use for my histograms. Not sure why a ...
6 years, 5 months ago (2014-07-09 18:17:06 UTC) #4
Ryan Sleevi
lgtm https://codereview.chromium.org/378063002/diff/20001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/378063002/diff/20001/tools/metrics/histograms/histograms.xml#newcode35338 tools/metrics/histograms/histograms.xml:35338: +<enum name="CacheHit" type="int"> Jar can confirm, but I ...
6 years, 5 months ago (2014-07-09 19:00:52 UTC) #5
wtc
Patch set 3 LGTM. https://codereview.chromium.org/378063002/diff/60001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://codereview.chromium.org/378063002/diff/60001/net/http/disk_based_cert_cache.cc#newcode443 net/http/disk_based_cert_cache.cc:443: // Errors other than CACHE_MISS ...
6 years, 5 months ago (2014-07-09 21:07:37 UTC) #6
jar (doing other things)
https://codereview.chromium.org/378063002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/378063002/diff/60001/tools/metrics/histograms/histograms.xml#newcode3510 tools/metrics/histograms/histograms.xml:3510: +<histogram name="DiskBasedCertCache.MemCacheHit" enum="CacheHit"> nit: Suggest one histogram, tot replace ...
6 years, 5 months ago (2014-07-09 22:22:49 UTC) #7
jar (doing other things)
LGTM % nits below. Please add them before hitting the CQ. https://chromiumcodereview.appspot.com/378063002/diff/80001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): ...
6 years, 5 months ago (2014-07-10 00:04:58 UTC) #8
brandonsalmon
I added one more possibility to the CacheResult enum, so that it is possible to ...
6 years, 5 months ago (2014-07-10 17:46:21 UTC) #9
wtc
Patch set 6 LGTM. https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc#newcode42 net/http/disk_based_cert_cache.cc:42: CACHE_ERROR, Nit: without looking at ...
6 years, 5 months ago (2014-07-10 18:21:38 UTC) #10
brandonsalmon
https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc#newcode469 net/http/disk_based_cert_cache.cc:469: return ERR_FAILED; On 2014/07/10 18:21:38, wtc wrote: > > ...
6 years, 5 months ago (2014-07-10 18:33:38 UTC) #11
brandonsalmon
https://chromiumcodereview.appspot.com/378063002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://chromiumcodereview.appspot.com/378063002/diff/120001/tools/metrics/histograms/histograms.xml#newcode3502 tools/metrics/histograms/histograms.xml:3502: +<histogram name="DiskBasedCertCache.CertIoCacheResult" enum="CacheResult"> On 2014/07/10 18:21:38, wtc wrote: > ...
6 years, 5 months ago (2014-07-10 18:42:39 UTC) #12
wtc
https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc File net/http/disk_based_cert_cache.cc (right): https://chromiumcodereview.appspot.com/378063002/diff/120001/net/http/disk_based_cert_cache.cc#newcode469 net/http/disk_based_cert_cache.cc:469: return ERR_FAILED; On 2014/07/10 18:33:38, brandonsalmon wrote: > > ...
6 years, 5 months ago (2014-07-10 18:49:36 UTC) #13
brandonsalmon
I added another error case and edited the description of the cache result histogram.
6 years, 5 months ago (2014-07-10 19:24:08 UTC) #14
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-07-10 21:31:28 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/378063002/140001
6 years, 5 months ago (2014-07-10 21:32:14 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 02:10:29 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 02:13:27 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/79307)
6 years, 5 months ago (2014-07-11 02:13:28 UTC) #19
brandonsalmon
After talking with Ryan I believe the issue with the patch was a merge conflict. ...
6 years, 5 months ago (2014-07-11 02:26:42 UTC) #20
brandonsalmon
The CQ bit was checked by brandonsalmon@chromium.org
6 years, 5 months ago (2014-07-11 02:29:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brandonsalmon@chromium.org/378063002/160001
6 years, 5 months ago (2014-07-11 02:31:53 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 06:09:26 UTC) #23
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 07:45:13 UTC) #24
Message was sent while issue was closed.
Change committed as 282584

Powered by Google App Engine
This is Rietveld 408576698