Instrument memory usage in net/disk_cache/memory/ |
|||
Issue descriptionThe general idea is to have a "size_t EstimateMemoryUsage() const" method for every non-trivial class in net/disk_cache/memory. The member method should return the size of dynamically allocated memory in bytes (see more info in base/trace_event/memory_usage_estimator.h) Then the memory usage can be hooked up in net/'s MemoryDumpProvider (see URLRequestContext::OnMemoryDump() or HttpNetworkSession::DumpMemoryStats()). An example to do this can be found crrev.com/2661333002 or b4199f82689fd146d52d8352f4d07bd79d6cfbd6.
,
Feb 27 2017
,
Feb 28 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/161c9a742555daaabaca73d24dafecfc14e2ba99 commit 161c9a742555daaabaca73d24dafecfc14e2ba99 Author: jkarlin <jkarlin@chromium.org> Date: Tue Feb 28 18:43:00 2017 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} [modify] https://crrev.com/161c9a742555daaabaca73d24dafecfc14e2ba99/base/trace_event/memory_usage_estimator.h [modify] https://crrev.com/161c9a742555daaabaca73d24dafecfc14e2ba99/net/disk_cache/memory/mem_backend_impl.cc [modify] https://crrev.com/161c9a742555daaabaca73d24dafecfc14e2ba99/net/disk_cache/memory/mem_entry_impl.cc [modify] https://crrev.com/161c9a742555daaabaca73d24dafecfc14e2ba99/net/disk_cache/memory/mem_entry_impl.h
,
Mar 7 2017
|
|||
►
Sign in to add a comment |
|||
Comment 1 by xunji...@chromium.org
, Feb 23 2017