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

Issue 2799023002: memory-infra: Switch to MemoryPeakDetector and simplify MemoryDumpScheduler (Closed)

Created:
3 years, 8 months ago by Primiano Tucci (use gerrit)
Modified:
3 years, 8 months ago
Reviewers:
ssid, hjd
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, danakj+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

memory-infra: Switch to MemoryPeakDetector and simplify MemoryDumpScheduler This CL concludes the refactoring of the old monolithic MemoryDumpScheduler in the new MemoryPeakDetector (for peaks) + MemoryDumpScheduler (for periodic dumps only). This refactoring was mostly done to clean up the entanglement of threading dependencies between MemoryDumpManager and the scheduler. Note for perf sheriffs: ---------------------- If memory metrics are skewed, or system_health memory benchmarks start failing this is very likely the culprit. Proceed with revert in this case. BUG=607533 Review-Url: https://codereview.chromium.org/2799023002 Cr-Commit-Position: refs/heads/master@{#463991} Committed: https://chromium.googlesource.com/chromium/src/+/57cee813cd7d1c400275a5cb8e95612a4fae0fd4

Patch Set 1 #

Patch Set 2 : . #

Total comments: 17

Patch Set 3 : ssid comments + add more tests #

Total comments: 11

Patch Set 4 : address reviews comments #

Patch Set 5 : Add extra BASE_EXPORT to make win happy, mah #

Patch Set 6 : rebase bind -> bindonce #

Unified diffs Side-by-side diffs Delta from patch set Stats (+431 lines, -677 lines) Patch
M base/trace_event/memory_dump_manager.h View 4 chunks +4 lines, -20 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 11 chunks +75 lines, -101 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 7 chunks +37 lines, -57 lines 0 comments Download
M base/trace_event/memory_dump_scheduler.h View 1 2 3 4 1 chunk +35 lines, -122 lines 0 comments Download
M base/trace_event/memory_dump_scheduler.cc View 1 2 3 4 5 1 chunk +67 lines, -284 lines 0 comments Download
M base/trace_event/memory_dump_scheduler_unittest.cc View 1 2 1 chunk +166 lines, -66 lines 0 comments Download
M base/trace_event/memory_peak_detector.h View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M base/trace_event/memory_peak_detector.cc View 1 2 3 4 5 7 chunks +26 lines, -13 lines 0 comments Download
M base/trace_event/memory_peak_detector_unittest.cc View 1 2 3 7 chunks +15 lines, -13 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
Primiano Tucci (use gerrit)
Still WIP here, but you can get a feeling of the final picture. ARchitectural comments ...
3 years, 8 months ago (2017-04-05 18:41:42 UTC) #2
ssid
https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode869 base/trace_event/memory_dump_manager.cc:869: Bind(&OnPeakDetected, trigger.level_of_detail)); Actually there is no reason to have ...
3 years, 8 months ago (2017-04-05 22:04:22 UTC) #3
hjd
https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode463 base/trace_event/memory_dump_manager.cc:463: for (const scoped_refptr<MemoryDumpProviderInfo>& mdp : dump_providers_) { We could ...
3 years, 8 months ago (2017-04-06 12:14:17 UTC) #4
Primiano Tucci (use gerrit)
CL Updated, PTAL https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode463 base/trace_event/memory_dump_manager.cc:463: for (const scoped_refptr<MemoryDumpProviderInfo>& mdp : dump_providers_) ...
3 years, 8 months ago (2017-04-10 19:16:42 UTC) #8
ssid
lgtm Thanks! https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode876 base/trace_event/memory_dump_manager.cc:876: On 2017/04/10 19:16:41, Primiano Tucci wrote: > ...
3 years, 8 months ago (2017-04-10 21:35:51 UTC) #11
hjd
https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.cc File base/trace_event/memory_dump_scheduler.cc (right): https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.cc#newcode63 base/trace_event/memory_dump_scheduler.cc:63: min_period_ms = std::min(min_period_ms, trigger.period_ms); #include <algorithm>?
3 years, 8 months ago (2017-04-11 09:42:55 UTC) #12
hjd
https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.h File base/trace_event/memory_dump_scheduler.h (right): https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.h#newcode48 base/trace_event/memory_dump_scheduler.h:48: bool is_enabled_for_testing() const { return task_runner_ ? true : ...
3 years, 8 months ago (2017-04-11 10:02:30 UTC) #13
hjd
On 2017/04/11 10:02:30, hjd wrote: > https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.h > File base/trace_event/memory_dump_scheduler.h (right): > > https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_scheduler.h#newcode48 > ...
3 years, 8 months ago (2017-04-11 11:07:19 UTC) #14
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2799023002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode878 base/trace_event/memory_dump_manager.cc:878: MemoryPeakDetector::GetInstance()->Start(peak_config); On 2017/04/10 21:35:51, ssid wrote: > On 2017/04/10 ...
3 years, 8 months ago (2017-04-11 11:43:08 UTC) #17
ssid
https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/2799023002/diff/40001/base/trace_event/memory_dump_manager_unittest.cc#newcode789 base/trace_event/memory_dump_manager_unittest.cc:789: EXPECT_CALL(*mdp1, SuspendFastMemoryPolling()).Times(1); On 2017/04/11 11:43:08, Primiano Tucci wrote: > ...
3 years, 8 months ago (2017-04-11 17:47:32 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799023002/100001
3 years, 8 months ago (2017-04-11 18:32:22 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/191729)
3 years, 8 months ago (2017-04-11 18:41:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2799023002/120001
3 years, 8 months ago (2017-04-12 10:19:31 UTC) #33
commit-bot: I haz the power
3 years, 8 months ago (2017-04-12 11:16:30 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/57cee813cd7d1c400275a5cb8e95...

Powered by Google App Engine
This is Rietveld 408576698