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

Issue 10808047: Add HttpCache histograms focussed on blocking and transaction type. (Closed)

Created:
8 years, 5 months ago by gavinp
Modified:
8 years, 4 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Add HttpCache histograms focussed on blocking and transaction type. Most of our existing disk cache histograms focus on the speed of operations on the cache itself. This CL adds a bunch that break down http transactions by type, and track both time spent reading (either from disk cache or network), and time spent waiting for the disk cache to allow us to send the network request. Note that these patches are based on http://codereview.chromium.org/10797042/ , which must land first. R=rvargas@chromium.org, tburkhard@chromium.org BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150902

Patch Set 1 #

Patch Set 2 : rebase onto http://codereview.chromium.org/10797042/ #

Patch Set 3 : catch more special cases #

Total comments: 49

Patch Set 4 : remediate to rvargas review #

Patch Set 5 : ... bonus braces ... #

Total comments: 9

Patch Set 6 : remediate to rvargas review #

Patch Set 7 : add GetCacheType() #

Patch Set 8 : lose unreferenced variable #

Patch Set 9 : rename parameter #

Total comments: 2

Patch Set 10 : remediate to review #

Total comments: 2

Patch Set 11 : merge to trunk #

Patch Set 12 : fix merge... #

Patch Set 13 : move UpdateTransactionPattern #

Patch Set 14 : style fixes #

Patch Set 15 : fix for short time spans #

Patch Set 16 : ... how about a fix that compiles. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -9 lines) Patch
M net/disk_cache/backend_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/disk_cache.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M net/disk_cache/mem_backend_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/mem_backend_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +24 lines, -1 line 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 25 chunks +178 lines, -8 lines 0 comments Download
M net/http/mock_http_cache.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/http/mock_http_cache.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
gavinp
WDYT?
8 years, 5 months ago (2012-07-20 17:13:55 UTC) #1
gavinp
http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc#newcode2181 net/http/http_cache_transaction.cc:2181: DCHECK_NE(DISPOSITION_UNDEFINED, disposition_); Should these DCHECKs be changed into early ...
8 years, 5 months ago (2012-07-20 17:19:24 UTC) #2
gavinp
Timo's email is tburkard. tburkhard is some other guy.
8 years, 5 months ago (2012-07-21 00:27:22 UTC) #3
gavinp
I was just discussing this with Timo, and he suggested this CL should serialize on ...
8 years, 5 months ago (2012-07-21 00:48:09 UTC) #4
rvargas (doing something else)
I may be missing something with the actual logic (setting of each state), because I ...
8 years, 5 months ago (2012-07-21 02:24:20 UTC) #5
gavinp
Here's what I hacked up on my flight... I haven't done a full test run ...
8 years, 4 months ago (2012-07-25 01:07:01 UTC) #6
gavinp
http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc#newcode2165 net/http/http_cache_transaction.cc:2165: if (disposition_ == DISPOSITION_DO_NOT_RECORD) On 2012/07/25 01:07:01, gavinp wrote: ...
8 years, 4 months ago (2012-07-25 14:00:27 UTC) #7
rvargas (doing something else)
http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/10808047/diff/2004/net/http/http_cache_transaction.cc#newcode44 net/http/http_cache_transaction.cc:44: namespace { On 2012/07/25 01:07:01, gavinp wrote: > On ...
8 years, 4 months ago (2012-07-25 19:41:03 UTC) #8
gavinp
Another few uploads later, and I think this is much better. Adding Backend::GetCacheType() added a ...
8 years, 4 months ago (2012-07-28 01:36:05 UTC) #9
rvargas (doing something else)
http://codereview.chromium.org/10808047/diff/18002/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/10808047/diff/18002/net/http/http_cache_transaction.cc#newcode830 net/http/http_cache_transaction.cc:830: next_state_ = STATE_OVERWRITE_CACHED_RESPONSE; On 2012/07/28 01:36:06, gavinp wrote: > ...
8 years, 4 months ago (2012-07-30 21:09:31 UTC) #10
tburkard
One thing I would add: You are differentiating the different pattern types, and e.g. for ...
8 years, 4 months ago (2012-07-30 21:19:01 UTC) #11
gavinp
On 2012/07/30 21:19:01, tburkard wrote: > One thing I would add: > You are differentiating ...
8 years, 4 months ago (2012-07-31 13:32:21 UTC) #12
gavinp
Now I'm catching the DOOM case properly, and I renamed the histograms and cleaned up ...
8 years, 4 months ago (2012-07-31 15:58:47 UTC) #13
rvargas (doing something else)
http://codereview.chromium.org/10808047/diff/21005/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): http://codereview.chromium.org/10808047/diff/21005/net/http/http_cache_transaction.cc#newcode807 net/http/http_cache_transaction.cc:807: transaction_pattern_ == PATTERN_NOT_COVERED); What I really don't like about ...
8 years, 4 months ago (2012-07-31 17:43:57 UTC) #14
tburkard
lgtm On Tue, Jul 31, 2012 at 10:43 AM, <rvargas@chromium.org> wrote: > > http://codereview.chromium.**org/10808047/diff/21005/net/** > ...
8 years, 4 months ago (2012-07-31 18:15:45 UTC) #15
gavinp
How's this? I can go back to the pattern from UL 9 if you don't ...
8 years, 4 months ago (2012-07-31 20:16:31 UTC) #16
rvargas (doing something else)
LGTM (I wish we were not sprinkling the code with PATTERN_NOT_COVERED)
8 years, 4 months ago (2012-07-31 22:16:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/25011
8 years, 4 months ago (2012-07-31 22:28:30 UTC) #18
commit-bot: I haz the power
Try job failure for 10808047-25011 (retry) on win_rel for steps "nacl_integration, net_unittests". It's a second ...
8 years, 4 months ago (2012-08-01 00:36:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/25011
8 years, 4 months ago (2012-08-01 00:53:00 UTC) #20
commit-bot: I haz the power
Try job failure for 10808047-25011 (retry) on win_rel for steps "nacl_integration, net_unittests". It's a second ...
8 years, 4 months ago (2012-08-01 03:06:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/25011
8 years, 4 months ago (2012-08-01 04:27:44 UTC) #22
commit-bot: I haz the power
Try job failure for 10808047-25011 (retry) on win_rel for steps "nacl_integration, net_unittests". It's a second ...
8 years, 4 months ago (2012-08-01 06:39:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/25011
8 years, 4 months ago (2012-08-01 11:54:28 UTC) #24
commit-bot: I haz the power
Try job failure for 10808047-25011 (retry) on win_rel for steps "nacl_integration, net_unittests". It's a second ...
8 years, 4 months ago (2012-08-01 14:59:27 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/16035
8 years, 4 months ago (2012-08-09 20:10:38 UTC) #26
commit-bot: I haz the power
Try job failure for 10808047-16035 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-09 20:24:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10808047/16038
8 years, 4 months ago (2012-08-09 20:31:30 UTC) #28
commit-bot: I haz the power
8 years, 4 months ago (2012-08-09 21:34:35 UTC) #29
Change committed as 150902

Powered by Google App Engine
This is Rietveld 408576698