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

Issue 2779733002: [HttpCache] Store some memcache info to memory dumps for debugging (Closed)

Created:
3 years, 9 months ago by jkarlin
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[HttpCache] Store some memcache info to memory dumps for debugging Add some memcache variables to the memory dumps (cache max_size, amount of physical memory, and the size the backend thinks it is) so we can debug cases where svelte devices have large memory backends. BUG=705053 Review-Url: https://codereview.chromium.org/2779733002 Cr-Commit-Position: refs/heads/master@{#460181} Committed: https://chromium.googlesource.com/chromium/src/+/1f2ef177650cf95c87765a0c8a8ce4a758b5ff2a

Patch Set 1 #

Patch Set 2 : Tidying #

Total comments: 2

Patch Set 3 : Fix test backends as well #

Patch Set 4 : Whitelist strings #

Total comments: 10

Patch Set 5 : Address comments from PS4 #

Patch Set 6 : Rebase #

Patch Set 7 : Rebase xunjieli's change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -38 lines) Patch
M base/trace_event/memory_infra_background_whitelist.cc View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M net/disk_cache/backend_unittest.cc View 1 2 3 4 5 6 5 chunks +71 lines, -8 lines 0 comments Download
M net/disk_cache/blockfile/backend_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M net/disk_cache/blockfile/backend_impl.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M net/disk_cache/disk_cache.h View 2 chunks +8 lines, -1 line 0 comments Download
M net/disk_cache/memory/mem_backend_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M net/disk_cache/memory/mem_backend_impl.cc View 1 2 3 4 2 chunks +18 lines, -3 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 chunk +3 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download
M net/http/http_cache.cc View 2 chunks +14 lines, -13 lines 0 comments Download
M net/http/mock_http_cache.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M net/http/mock_http_cache.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 48 (31 generated)
jkarlin
xunjieli@ PTAL, thanks!
3 years, 9 months ago (2017-03-27 17:19:28 UTC) #3
xunjieli
Thanks, Josh. I will review this asap. +ssid: FHI.
3 years, 9 months ago (2017-03-27 17:39:07 UTC) #8
ssid
https://codereview.chromium.org/2779733002/diff/20001/net/disk_cache/memory/mem_backend_impl.cc File net/disk_cache/memory/mem_backend_impl.cc (right): https://codereview.chromium.org/2779733002/diff/20001/net/disk_cache/memory/mem_backend_impl.cc#newcode292 net/disk_cache/memory/mem_backend_impl.cc:292: pmd->CreateAllocatorDump(parent_absolute_name + "/memory_backend"); I think you should whitelist these ...
3 years, 9 months ago (2017-03-27 17:41:45 UTC) #9
jkarlin
https://codereview.chromium.org/2779733002/diff/20001/net/disk_cache/memory/mem_backend_impl.cc File net/disk_cache/memory/mem_backend_impl.cc (right): https://codereview.chromium.org/2779733002/diff/20001/net/disk_cache/memory/mem_backend_impl.cc#newcode292 net/disk_cache/memory/mem_backend_impl.cc:292: pmd->CreateAllocatorDump(parent_absolute_name + "/memory_backend"); On 2017/03/27 17:41:45, ssid wrote: > ...
3 years, 9 months ago (2017-03-27 17:59:28 UTC) #11
xunjieli
lgtm with one nit and one question below. https://codereview.chromium.org/2779733002/diff/50001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/2779733002/diff/50001/net/disk_cache/backend_unittest.cc#newcode330 net/disk_cache/backend_unittest.cc:330: base::trace_event::MemoryDumpLevelOfDetail::DETAILED}; ...
3 years, 9 months ago (2017-03-27 18:29:07 UTC) #13
ssid
Sorry, i missed the discussion about system RAM. https://crash.corp.google.com/browse?stbtiq=649b648d20000000#2 is seen for each report and ...
3 years, 9 months ago (2017-03-27 18:59:42 UTC) #16
ssid
also +primiano for owner
3 years, 9 months ago (2017-03-27 19:08:51 UTC) #18
Primiano Tucci (use gerrit)
Base/Trace_event whitelist lgtm
3 years, 9 months ago (2017-03-27 23:22:59 UTC) #19
jkarlin
PTAL, thanks! https://codereview.chromium.org/2779733002/diff/50001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/2779733002/diff/50001/net/disk_cache/backend_unittest.cc#newcode327 net/disk_cache/backend_unittest.cc:327: // base::trace_event::EstimateMemoryUsage(cache_) is added to make sure ...
3 years, 8 months ago (2017-03-28 15:09:46 UTC) #30
xunjieli
On 2017/03/28 15:09:46, jkarlin wrote: > PTAL, thanks! > > https://codereview.chromium.org/2779733002/diff/50001/net/disk_cache/backend_unittest.cc > File net/disk_cache/backend_unittest.cc (right): ...
3 years, 8 months ago (2017-03-28 16:24:59 UTC) #33
xunjieli
sorry for skipping base/trace_event/memory_infra_background_whitelist.cc in the last pass. The new patch LGTM
3 years, 8 months ago (2017-03-28 16:43:56 UTC) #38
jkarlin
Primiano Tucci PTAL as the whitelist had to change after Helen's patch.
3 years, 8 months ago (2017-03-28 16:45:37 UTC) #39
Primiano Tucci (use gerrit)
On 2017/03/28 16:45:37, jkarlin wrote: > Primiano Tucci PTAL as the whitelist had to change ...
3 years, 8 months ago (2017-03-28 16:56:41 UTC) #40
jkarlin
Thanks! PTAL ssid.
3 years, 8 months ago (2017-03-28 16:58:09 UTC) #41
ssid
lgtm thanks!
3 years, 8 months ago (2017-03-28 17:04:16 UTC) #42
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/2779733002/150001
3 years, 8 months ago (2017-03-28 17:38:13 UTC) #45
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 19:05:28 UTC) #48
Message was sent while issue was closed.
Committed patchset #7 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/1f2ef177650cf95c87765a0c8a8c...

Powered by Google App Engine
This is Rietveld 408576698