New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 688139 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Feb 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 669108



Sign in to add a comment

Instrument memory usage in NetworkQualityEstimator net/nqe

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/nqe. The member method should return the size of dynamically allocated memory in bytes (see more info in base/trace_event/memory_usage_estimator.h/cc)


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.



 
Labels: NQE
Owner: tbansal@chromium.org
Status: Assigned (was: Untriaged)
Cc: mariakho...@chromium.org ssid@chromium.org dskiba@chromium.org
A side note: base::trace_event::EstimateMemoryUsage() support for std::deque and scoped_refptr<> will be added soon by dskiba@.

Please also cc dskiba@, ssid@ and me on your CLs. 
Thanks a lot for the help, Tarun!
Components: Internals>Network>NetworkQuality
Labels: -nqe
Components: -Internals>Network>DataUse
Status: WontFix (was: Assigned)
There have been some discussions on the MemoryDumpProvider approach. The conclusion is that MDP should go after major allocations and skip anything under 100KB to keep maintenance burden at a minimum. We see nqe/ allocates about ~30KB in traces, so I will close this issue as WontFix.
Thanks Tarun.

Sign in to add a comment