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

Issue 2421583002: [CacheTool] Add a "list_dups" command (Closed)

Created:
4 years, 2 months ago by jkarlin
Modified:
4 years ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheTool] Add a "list_dups" command Adds a new command to cachetool called "list_dups". It md5sums the response bodies in the cache and prints out any duplicates along with their mime-type and number of bytes. This is useful for helping to explore the possible benefits to content-addressable caching. BUG=665548 Committed: https://crrev.com/ffc18a0d91f8d1f47f226cb0b837108ca6ea2cfa Cr-Commit-Position: refs/heads/master@{#438494}

Patch Set 1 #

Patch Set 2 : Add comments at end #

Patch Set 3 : More data #

Patch Set 4 : Fixes #

Total comments: 7

Patch Set 5 : Rebase #

Patch Set 6 : Nit #

Patch Set 7 : Clarify size of read buffer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -6 lines) Patch
M net/tools/cachetool/cachetool.cc View 1 2 3 4 5 6 8 chunks +169 lines, -6 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (16 generated)
jkarlin
gavinp@ PTAL when you get a chance, no rush on this one. Thanks!
4 years, 1 month ago (2016-11-15 19:42:54 UTC) #6
gavinp
lgtm, good point about tainting the cache LRU. All my suggestions are optional, although please ...
4 years ago (2016-12-08 18:05:31 UTC) #9
gavinp
On 2016/12/08 18:05:31, gavinp wrote: > lgtm, good point about tainting the cache LRU. All ...
4 years ago (2016-12-08 18:06:01 UTC) #10
gavinp
still lgtm, even after looking at it. ;-) Some questions; but not that important here. ...
4 years ago (2016-12-08 18:15:04 UTC) #11
jkarlin
Thanks! https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc File net/tools/cachetool/cachetool.cc (right): https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc#newcode15 net/tools/cachetool/cachetool.cc:15: #include "base/md5.h" On 2016/12/08 18:15:04, gavinp wrote: > ...
4 years ago (2016-12-08 18:23:50 UTC) #12
gavinp
still lgtm! https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc File net/tools/cachetool/cachetool.cc (right): https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc#newcode15 net/tools/cachetool/cachetool.cc:15: #include "base/md5.h" On 2016/12/08 18:23:50, jkarlin wrote: ...
4 years ago (2016-12-09 15:01:45 UTC) #17
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/2421583002/120001
4 years ago (2016-12-14 12:50:00 UTC) #20
jkarlin
Thanks! https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc File net/tools/cachetool/cachetool.cc (right): https://codereview.chromium.org/2421583002/diff/60001/net/tools/cachetool/cachetool.cc#newcode355 net/tools/cachetool/cachetool.cc:355: const int kInitBufferSize = 81920; On 2016/12/09 15:01:45, ...
4 years ago (2016-12-14 12:50:02 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-14 12:59:33 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-14 13:03:48 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ffc18a0d91f8d1f47f226cb0b837108ca6ea2cfa
Cr-Commit-Position: refs/heads/master@{#438494}

Powered by Google App Engine
This is Rietveld 408576698