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

Issue 2793023002: memory-infra: port peak detection logic to MemoryPeakDetector (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, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

memory-infra: port peak detection logic to MemoryPeakDetector This CL ports the memory peak detection of MemoryDumpScheduler into the new, self-contained, MemoryPeakDetector. This CL has no functional effects, since the new peak detector is not used yet. BUG=607533 Review-Url: https://codereview.chromium.org/2793023002 Cr-Commit-Position: refs/heads/master@{#463642} Committed: https://chromium.googlesource.com/chromium/src/+/3821fa74fa559fbaabda7c9ca82ffa244c2e45a7

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : fix lambdas for MSVC #

Patch Set 5 : fix lambdas for MSVC #

Total comments: 29

Patch Set 6 : NaCL, as usual #

Total comments: 4

Patch Set 7 : ssid review #

Patch Set 8 : rebase, no changes #

Total comments: 4

Patch Set 9 : ssid comments, clear -> throttle #

Patch Set 10 : fix uint64_t cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -44 lines) Patch
M base/trace_event/memory_peak_detector.h View 1 2 3 4 5 6 7 8 5 chunks +43 lines, -3 lines 0 comments Download
M base/trace_event/memory_peak_detector.cc View 1 2 3 4 5 6 7 8 9 7 chunks +133 lines, -22 lines 0 comments Download
M base/trace_event/memory_peak_detector_unittest.cc View 1 2 3 4 5 6 7 8 17 chunks +194 lines, -19 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 65 (50 generated)
Primiano Tucci (use gerrit)
Not fully finished (see TODOs left around) but could you folks have an initial pass?
3 years, 8 months ago (2017-04-04 18:04:34 UTC) #14
Primiano Tucci (use gerrit)
Ready for review. if lgty will ditch the peak code from memorydumpscheduler and update MDM ...
3 years, 8 months ago (2017-04-05 14:36:37 UTC) #24
ssid
https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc File base/trace_event/memory_peak_detector.cc (right): https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc#newcode100 base/trace_event/memory_peak_detector.cc:100: state_ = ENABLED; DCHECK_GT(polling_interval_ms, 0) DCHECK_GT(min_time_between_peaks_ms, 0) https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc#newcode172 base/trace_event/memory_peak_detector.cc:172: ...
3 years, 8 months ago (2017-04-05 21:23:47 UTC) #31
ssid
https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc File base/trace_event/memory_peak_detector.cc (right): https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc#newcode102 base/trace_event/memory_peak_detector.cc:102: ResetPollHistory(); Should we test if Start() Stop() Start() happened, ...
3 years, 8 months ago (2017-04-05 21:26:46 UTC) #32
hjd
https://codereview.chromium.org/2793023002/diff/160001/base/trace_event/memory_peak_detector.cc File base/trace_event/memory_peak_detector.cc (right): https://codereview.chromium.org/2793023002/diff/160001/base/trace_event/memory_peak_detector.cc#newcode53 base/trace_event/memory_peak_detector.cc:53: #if !defined(OS_NACL) The previous check also excluded iOS I ...
3 years, 8 months ago (2017-04-06 11:33:48 UTC) #33
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc File base/trace_event/memory_peak_detector.cc (right): https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc#newcode100 base/trace_event/memory_peak_detector.cc:100: state_ = ENABLED; On 2017/04/05 21:23:46, ssid wrote: > ...
3 years, 8 months ago (2017-04-06 20:07:10 UTC) #35
Primiano Tucci (use gerrit)
Ping: folks can you get a final pass on this? Unless I missed to address ...
3 years, 8 months ago (2017-04-10 12:29:10 UTC) #45
hjd
On 2017/04/10 12:29:10, Primiano Tucci wrote: > Ping: folks can you get a final pass ...
3 years, 8 months ago (2017-04-10 14:12:54 UTC) #48
ssid
lgtm % the Clear() function logic. Please look at it before landing. Thanks! https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc File ...
3 years, 8 months ago (2017-04-10 20:55:06 UTC) #49
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/2793023002/240001
3 years, 8 months ago (2017-04-11 11:10:59 UTC) #53
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/2793023002/240001
3 years, 8 months ago (2017-04-11 11:11:25 UTC) #56
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc File base/trace_event/memory_peak_detector.cc (right): https://codereview.chromium.org/2793023002/diff/140001/base/trace_event/memory_peak_detector.cc#newcode239 base/trace_event/memory_peak_detector.cc:239: last_dump_memory_total_ = 0; On 2017/04/10 20:55:06, ssid wrote: > ...
3 years, 8 months ago (2017-04-11 11:12:09 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/50423)
3 years, 8 months ago (2017-04-11 11:30:34 UTC) #59
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/2793023002/260001
3 years, 8 months ago (2017-04-11 14:46:49 UTC) #62
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 15:51:45 UTC) #65
Message was sent while issue was closed.
Committed patchset #10 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/3821fa74fa559fbaabda7c9ca82f...

Powered by Google App Engine
This is Rietveld 408576698