New issue
Advanced search Search tips

Issue 688145 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 669108



Sign in to add a comment

Instrument memory usage in net/disk_cache/memory/

Project Member Reported by xunji...@chromium.org, Feb 2 2017

Issue description

The 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.

 
Cc: jkarlin@chromium.org
+jkarlin who might be able to help out with this one.
Cc: -jkarlin@chromium.org
Owner: jkarlin@chromium.org
Status: Started (was: Untriaged)
Status: Fixed (was: Started)

Sign in to add a comment