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

Issue 2743993004: [memory-infra] Make MemoryDumpScheduler non-thread safe singleton (Closed)

Created:
3 years, 9 months ago by ssid
Modified:
3 years, 9 months ago
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] Make MemoryDumpScheduler non-thread safe singleton The MemoryDumpScheduler thread restrictions and lifetime were complicated to follow. So, make it singleton with thread safety handled by MemoryDumpManager. MDM always accesses the schduler holding a lock. BUG=607533 Review-Url: https://codereview.chromium.org/2743993004 Cr-Commit-Position: refs/heads/master@{#459515} Committed: https://chromium.googlesource.com/chromium/src/+/ea9b45ede358c7d903340c2a40709094152d3e2c

Patch Set 1 : . #

Total comments: 4

Patch Set 2 : remove singleton class #

Patch Set 3 : rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -140 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 6 chunks +18 lines, -21 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_scheduler.h View 1 2 6 chunks +39 lines, -19 lines 0 comments Download
M base/trace_event/memory_dump_scheduler.cc View 1 2 6 chunks +104 lines, -85 lines 0 comments Download
M base/trace_event/memory_dump_scheduler_unittest.cc View 1 2 3 chunks +11 lines, -11 lines 0 comments Download

Messages

Total messages: 28 (23 generated)
ssid
I am not sure if this is a good pattern. Do you think it looks ...
3 years, 9 months ago (2017-03-11 03:08:25 UTC) #2
Primiano Tucci (use gerrit)
LGTM with minor comments https://codereview.chromium.org/2743993004/diff/40001/base/trace_event/memory_dump_scheduler.cc File base/trace_event/memory_dump_scheduler.cc (right): https://codereview.chromium.org/2743993004/diff/40001/base/trace_event/memory_dump_scheduler.cc#newcode140 base/trace_event/memory_dump_scheduler.cc:140: polling_task_runner_ = nullptr; .reset() might ...
3 years, 9 months ago (2017-03-16 19:01:36 UTC) #5
ssid
Thanks https://codereview.chromium.org/2743993004/diff/40001/base/trace_event/memory_dump_scheduler.cc File base/trace_event/memory_dump_scheduler.cc (right): https://codereview.chromium.org/2743993004/diff/40001/base/trace_event/memory_dump_scheduler.cc#newcode140 base/trace_event/memory_dump_scheduler.cc:140: polling_task_runner_ = nullptr; On 2017/03/16 19:01:36, Primiano Tucci ...
3 years, 9 months ago (2017-03-22 01:32:59 UTC) #10
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/2743993004/100001
3 years, 9 months ago (2017-03-24 19:13:42 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 19:22:34 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/ea9b45ede358c7d903340c2a4070...

Powered by Google App Engine
This is Rietveld 408576698