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

Issue 6621052: Remove unused memory usage collection in MetricsService (Closed)

Created:
9 years, 9 months ago by sail
Modified:
9 years, 7 months ago
CC:
chromium-reviews, stuartmorgan
Visibility:
Public.

Description

Remove unused memory usage collection in MetricsService MetricsService was calling MemoryDetails::StartFetch but wasn't using the result so I'm removing the call entirely. BUG=43207 TEST=None

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -38 lines) Patch
M chrome/browser/metrics/metrics_service.h View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 5 chunks +7 lines, -35 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sail
9 years, 9 months ago (2011-03-07 20:16:33 UTC) #1
Mark Mentovai
If it’s unused, it’s unused. LGTM.
9 years, 9 months ago (2011-03-07 20:36:10 UTC) #2
viettrungluu
lgtm
9 years, 9 months ago (2011-03-08 02:04:01 UTC) #3
jar (doing other things)
9 years, 8 months ago (2011-04-19 17:18:31 UTC) #4
Please explain why you removed this call.  The call was historically made for
side effects to load histogram data.  I would expect this CL to have vanquished
our memory histograms, by not recording data.

When choosing reviewers, please be sure to use svn blame to find folks that
created or recently edited code that you are changing.

When you look at a call, and see the return value is "not used," you can't
assume the call can be discarded.  If that were true, we could rip out calls to
all functions that return void.

I'm also sad that this was not linked to your landing (it does not show as being
committed).  As a result, it is more painful to track what was landed and when.

Assuming you don't have a clean replacement that gathers the memory stats (I
didn't see it in this CL), please revert this change ASAP, and go though the
regular review process for a change (and I'd be pleased to review such a
change).

Powered by Google App Engine
This is Rietveld 408576698