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

Issue 2723553002: Keep track of byte usage of the memory cache backend (Closed)

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

Description

Keep track of byte usage of the memory cache backend BUG=688145 Review-Url: https://codereview.chromium.org/2723553002 Cr-Commit-Position: refs/heads/master@{#453649} Committed: https://chromium.googlesource.com/chromium/src/+/161c9a742555daaabaca73d24dafecfc14e2ba99

Patch Set 1 #

Total comments: 13

Patch Set 2 : Address comments from PS1 #

Patch Set 3 : Address comment from PS2 #

Patch Set 4 : Address comments from PS3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M base/trace_event/memory_usage_estimator.h View 1 3 chunks +16 lines, -0 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M net/disk_cache/memory/mem_entry_impl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M net/disk_cache/memory/mem_entry_impl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 34 (19 generated)
jkarlin
xunjieli@chromium.org: Please take a look at net/ dsinclair@chromium.org: Please review changes in base/ Thanks!
3 years, 9 months ago (2017-02-27 18:02:06 UTC) #2
dsinclair
Switching to primiano@ for memory stuff.
3 years, 9 months ago (2017-02-27 18:09:37 UTC) #4
Primiano Tucci (use gerrit)
+dskiba who added the EMU stuff. RS-LGTM for base/trace_event/ to not be blocked on me. ...
3 years, 9 months ago (2017-02-27 18:14:54 UTC) #6
xunjieli
net/ lgtm. Thanks! one question below. https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc File net/disk_cache/memory/mem_entry_impl.cc (right): https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc#newcode259 net/disk_cache/memory/mem_entry_impl.cc:259: base::trace_event::EstimateMemoryUsage(children_); I suppose ...
3 years, 9 months ago (2017-02-27 18:51:32 UTC) #7
DmitrySkiba
https://codereview.chromium.org/2723553002/diff/1/base/trace_event/memory_usage_estimator.h File base/trace_event/memory_usage_estimator.h (right): https://codereview.chromium.org/2723553002/diff/1/base/trace_event/memory_usage_estimator.h#newcode361 base/trace_event/memory_usage_estimator.h:361: size_t memory_usage = sizeof(LinkedList<T>); We don't need to account ...
3 years, 9 months ago (2017-02-27 19:17:42 UTC) #8
jkarlin
Thanks! PTAL. https://codereview.chromium.org/2723553002/diff/1/base/trace_event/memory_usage_estimator.h File base/trace_event/memory_usage_estimator.h (right): https://codereview.chromium.org/2723553002/diff/1/base/trace_event/memory_usage_estimator.h#newcode361 base/trace_event/memory_usage_estimator.h:361: size_t memory_usage = sizeof(LinkedList<T>); On 2017/02/27 19:17:42, ...
3 years, 9 months ago (2017-02-28 13:10:50 UTC) #10
xunjieli
https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc File net/disk_cache/memory/mem_entry_impl.cc (right): https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc#newcode259 net/disk_cache/memory/mem_entry_impl.cc:259: base::trace_event::EstimateMemoryUsage(children_); On 2017/02/28 13:10:50, jkarlin wrote: > On 2017/02/27 ...
3 years, 9 months ago (2017-02-28 14:51:24 UTC) #15
jkarlin
https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc File net/disk_cache/memory/mem_entry_impl.cc (right): https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_entry_impl.cc#newcode259 net/disk_cache/memory/mem_entry_impl.cc:259: base::trace_event::EstimateMemoryUsage(children_); On 2017/02/28 14:51:23, xunjieli wrote: > On 2017/02/28 ...
3 years, 9 months ago (2017-02-28 15:50:54 UTC) #17
xunjieli
lgtm!
3 years, 9 months ago (2017-02-28 15:51:36 UTC) #19
DmitrySkiba
https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_backend_impl.cc File net/disk_cache/memory/mem_backend_impl.cc (right): https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_backend_impl.cc#newcode288 net/disk_cache/memory/mem_backend_impl.cc:288: return base::trace_event::EstimateMemoryUsage(lru_list_); On 2017/02/28 13:10:50, jkarlin wrote: > On ...
3 years, 9 months ago (2017-02-28 16:44:52 UTC) #20
jkarlin
Thanks for the review. PTAL. https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_backend_impl.cc File net/disk_cache/memory/mem_backend_impl.cc (right): https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_backend_impl.cc#newcode288 net/disk_cache/memory/mem_backend_impl.cc:288: return base::trace_event::EstimateMemoryUsage(lru_list_); On 2017/02/28 ...
3 years, 9 months ago (2017-02-28 17:20:35 UTC) #24
DmitrySkiba
On 2017/02/28 17:20:35, jkarlin wrote: > Thanks for the review. PTAL. > > https://codereview.chromium.org/2723553002/diff/1/net/disk_cache/memory/mem_backend_impl.cc > ...
3 years, 9 months ago (2017-02-28 18:20:33 UTC) #26
jkarlin
Thanks all!
3 years, 9 months ago (2017-02-28 18:28:20 UTC) #30
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/2723553002/80001
3 years, 9 months ago (2017-02-28 18:28:24 UTC) #31
commit-bot: I haz the power
3 years, 9 months ago (2017-02-28 18:43:49 UTC) #34
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/161c9a742555daaabaca73d24daf...

Powered by Google App Engine
This is Rietveld 408576698