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

Issue 823533004: Move memory histograms generation to MetricsMemoryDetails. (Closed)

Created:
5 years, 11 months ago by Alexei Svitkine (slow)
Modified:
5 years, 11 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move memory histograms generation to MetricsMemoryDetails. Also moves MetricsMemoryDetails (and MemoryGrowthTracker) to its own file as well as moving the corresponding browser test. This allows the base MemoryDetails class to be simplified, as it now needs to do a lot less. Also, disables logging of these histograms from a couple places that use the MemoryDetails that didn't need to log the histograms but were doing it anyways (with TODOs). BUG=448834 Committed: https://crrev.com/89406d1fbe69fc8a87e30315b17c2a76aac33517 Cr-Commit-Position: refs/heads/master@{#312026}

Patch Set 1 : #

Patch Set 2 : clang-format #

Total comments: 12

Patch Set 3 : #

Total comments: 2

Patch Set 4 : Better class comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -439 lines) Patch
M chrome/browser/chromeos/memory/oom_priority_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/memory_details.h View 5 chunks +8 lines, -48 lines 0 comments Download
M chrome/browser/memory_details.cc View 5 chunks +4 lines, -280 lines 0 comments Download
M chrome/browser/memory_details_android.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/memory_details_browsertest.cc View 1 chunk +0 lines, -57 lines 0 comments Download
M chrome/browser/memory_details_linux.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/memory_details_mac.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/memory_details_win.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 2 chunks +1 line, -24 lines 0 comments Download
A chrome/browser/metrics/metrics_memory_details.h View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/metrics/metrics_memory_details.cc View 1 2 1 chunk +296 lines, -0 lines 0 comments Download
A + chrome/browser/metrics/metrics_memory_details_browsertest.cc View 1 2 4 chunks +12 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/about_ui.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
Alexei Svitkine (slow)
PTAL isherman: overall review jamescook: take a look at the TODO(jamescook)'s I'm addressing
5 years, 11 months ago (2015-01-15 20:55:43 UTC) #8
James Cook
OK, so this looks like it stops reporting memory statistics in two cases: * When ...
5 years, 11 months ago (2015-01-15 21:13:24 UTC) #9
Ilya Sherman
Are you 100% sure that there's no need to update the various memory histograms in ...
5 years, 11 months ago (2015-01-16 04:57:36 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/823533004/diff/50016/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc File chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc (right): https://codereview.chromium.org/823533004/diff/50016/chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc#newcode48 chrome/browser/feedback/system_logs/log_sources/memory_details_log_source.cc:48: handler->StartFetch(); On 2015/01/16 04:57:36, Ilya Sherman wrote: > Are ...
5 years, 11 months ago (2015-01-16 16:07:50 UTC) #12
Ilya Sherman
LGTM, thanks.
5 years, 11 months ago (2015-01-17 00:18:43 UTC) #13
Alexei Svitkine (slow)
+thestig for owners review for chrome/
5 years, 11 months ago (2015-01-17 00:41:57 UTC) #15
Lei Zhang
lgtm https://codereview.chromium.org/823533004/diff/170001/chrome/browser/metrics/metrics_memory_details.h File chrome/browser/metrics/metrics_memory_details.h (right): https://codereview.chromium.org/823533004/diff/170001/chrome/browser/metrics/metrics_memory_details.h#newcode40 chrome/browser/metrics/metrics_memory_details.h:40: // Will run the provided task after finished. ...
5 years, 11 months ago (2015-01-17 01:41:53 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/823533004/diff/170001/chrome/browser/metrics/metrics_memory_details.h File chrome/browser/metrics/metrics_memory_details.h (right): https://codereview.chromium.org/823533004/diff/170001/chrome/browser/metrics/metrics_memory_details.h#newcode40 chrome/browser/metrics/metrics_memory_details.h:40: // Will run the provided task after finished. On ...
5 years, 11 months ago (2015-01-17 06:06:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/823533004/190001
5 years, 11 months ago (2015-01-17 06:07:56 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:190001)
5 years, 11 months ago (2015-01-17 06:57:37 UTC) #20
commit-bot: I haz the power
5 years, 11 months ago (2015-01-17 06:58:45 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/89406d1fbe69fc8a87e30315b17c2a76aac33517
Cr-Commit-Position: refs/heads/master@{#312026}

Powered by Google App Engine
This is Rietveld 408576698