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

Issue 10824236: Only track http and https in duplicate resource handler metrics (Closed)

Created:
8 years, 4 months ago by scottmg
Modified:
8 years, 4 months ago
Reviewers:
jam, frankwang, gavinp
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Only track http and https in duplicate resource handler metrics. Specifically, exclude data and blob urls because they can be generated by content. This avoids a slow leak with generated URLs. R=gavinp@chromium.org,frankwang@google.com BUG=114570 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151452

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : indent #

Patch Set 4 : only handle http and https #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 6

Patch Set 7 : early out of hash calculation #

Patch Set 8 : rebase #

Patch Set 9 : cosnt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M content/browser/renderer_host/duplicate_content_resource_handler.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/duplicate_content_resource_handler.cc View 1 2 3 4 5 6 7 8 4 chunks +16 lines, -9 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
frankwang
The point of the original patch was to track all resources going into the disk ...
8 years, 4 months ago (2012-08-09 17:21:12 UTC) #1
gavinp
http://chromiumcodereview.appspot.com/10824236/diff/2001/content/browser/renderer_host/duplicate_content_resource_handler.cc File content/browser/renderer_host/duplicate_content_resource_handler.cc (right): http://chromiumcodereview.appspot.com/10824236/diff/2001/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode95 content/browser/renderer_host/duplicate_content_resource_handler.cc:95: if (StartsWithASCII(url_spec, "data:", false) || So since data URLs ...
8 years, 4 months ago (2012-08-09 17:28:04 UTC) #2
scottmg
On 2012/08/09 17:28:04, gavinp wrote: > http://chromiumcodereview.appspot.com/10824236/diff/2001/content/browser/renderer_host/duplicate_content_resource_handler.cc > File content/browser/renderer_host/duplicate_content_resource_handler.cc > (right): > > http://chromiumcodereview.appspot.com/10824236/diff/2001/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode95 ...
8 years, 4 months ago (2012-08-09 17:34:46 UTC) #3
frankwang
Actually, can you just narrow the included URLs to http and https?
8 years, 4 months ago (2012-08-09 17:41:19 UTC) #4
gavinp
On 2012/08/09 17:41:19, frankwang wrote: > Actually, can you just narrow the included URLs to ...
8 years, 4 months ago (2012-08-09 17:44:18 UTC) #5
frankwang
LGTM if it tracks only http and https.
8 years, 4 months ago (2012-08-09 17:51:16 UTC) #6
scottmg
+sky for OWNERS
8 years, 4 months ago (2012-08-09 18:30:40 UTC) #7
gavinp
http://chromiumcodereview.appspot.com/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc File content/browser/renderer_host/duplicate_content_resource_handler.cc (right): http://chromiumcodereview.appspot.com/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode107 content/browser/renderer_host/duplicate_content_resource_handler.cc:107: MH_UINT32 hashed_with_url = PMurHash32_Result( nice cleanup.
8 years, 4 months ago (2012-08-09 18:32:00 UTC) #8
sky
I'm not familiar with this code to do a review. Maybe John can do it ...
8 years, 4 months ago (2012-08-09 19:46:03 UTC) #9
gavinp
I'm sorry, I just noticed this late in the game: but we shouldn't calculate the ...
8 years, 4 months ago (2012-08-09 20:20:45 UTC) #10
scottmg
http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc File content/browser/renderer_host/duplicate_content_resource_handler.cc (right): http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode95 content/browser/renderer_host/duplicate_content_resource_handler.cc:95: if (!request_->url().SchemeIs("http") && !request_->url().SchemeIs("https")) { On 2012/08/09 20:20:45, gavinp ...
8 years, 4 months ago (2012-08-09 20:24:56 UTC) #11
gavinp
http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc File content/browser/renderer_host/duplicate_content_resource_handler.cc (right): http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode75 content/browser/renderer_host/duplicate_content_resource_handler.cc:75: read_buffer_->data(), bytes_read); The hash is calculated incrementally here. If ...
8 years, 4 months ago (2012-08-12 16:17:13 UTC) #12
frankwang
http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc File content/browser/renderer_host/duplicate_content_resource_handler.cc (right): http://codereview.chromium.org/10824236/diff/2002/content/browser/renderer_host/duplicate_content_resource_handler.cc#newcode75 content/browser/renderer_host/duplicate_content_resource_handler.cc:75: read_buffer_->data(), bytes_read); On 2012/08/12 16:17:14, gavinp wrote: > The ...
8 years, 4 months ago (2012-08-13 04:32:17 UTC) #13
scottmg
PTAL. I'm not sure that I like the addition of extra state, but I defer ...
8 years, 4 months ago (2012-08-13 16:58:42 UTC) #14
frankwang
LGTM
8 years, 4 months ago (2012-08-13 17:15:13 UTC) #15
scottmg
jam for OWNERS
8 years, 4 months ago (2012-08-13 19:12:07 UTC) #16
gavinp
LGTM. Thanks for humouring us.
8 years, 4 months ago (2012-08-13 19:14:34 UTC) #17
jam
rubberstamp lgtm
8 years, 4 months ago (2012-08-13 20:42:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10824236/3003
8 years, 4 months ago (2012-08-13 20:44:44 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/duplicate_content_resource_handler.cc: While running patch -p1 --forward --force; patching file content/browser/renderer_host/duplicate_content_resource_handler.cc ...
8 years, 4 months ago (2012-08-13 20:44:45 UTC) #20
frankwang
On 2012/08/13 20:44:45, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
8 years, 4 months ago (2012-08-13 20:47:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10824236/2003
8 years, 4 months ago (2012-08-13 20:48:59 UTC) #22
commit-bot: I haz the power
Try job failure for 10824236-2003 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-13 21:05:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10824236/2004
8 years, 4 months ago (2012-08-13 21:29:21 UTC) #24
commit-bot: I haz the power
Try job failure for 10824236-2004 (retry) on win_rel for step "runhooks". It's a second try, ...
8 years, 4 months ago (2012-08-13 22:56:43 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10824236/2004
8 years, 4 months ago (2012-08-13 22:57:39 UTC) #26
commit-bot: I haz the power
Try job failure for 10824236-2004 (retry) (retry) on linux_chromeos for steps "browser_tests, content_browsertests". It's a ...
8 years, 4 months ago (2012-08-14 04:43:50 UTC) #27
frankwang
On 2012/08/14 04:43:50, I haz the power (commit-bot) wrote: > Try job failure for 10824236-2004 ...
8 years, 4 months ago (2012-08-14 04:46:28 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottmg@chromium.org/10824236/2004
8 years, 4 months ago (2012-08-14 04:46:50 UTC) #29
frankwang
On 2012/08/14 04:46:28, frankwang wrote: > On 2012/08/14 04:43:50, I haz the power (commit-bot) wrote: ...
8 years, 4 months ago (2012-08-14 04:47:20 UTC) #30
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 10:29:08 UTC) #31
Change committed as 151452

Powered by Google App Engine
This is Rietveld 408576698