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

Issue 1289793007: Allow unregistering MemoryDumpProviders during dump (Closed)

Created:
5 years, 4 months ago by Ruud van Asseldonk
Modified:
5 years, 4 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow unregistering MemoryDumpProviders during dump Previously, if a memory dump provider would unregister itself while a dump was in progress, this would abort the dump. While the scenario is unlikely, it was triggered in some tests (https://crbug.com/522009). Instead of unregistering immediately, we now set a flag and skip the provider during dump if it has been unregistered. At the end of every dump, we remove all unregistered providers. When the registration includes a task runner, the refptr can keep the task runner alive until the next dump even when the provider has unregistered itself. BUG=518823, 522009, 522165 Committed: https://crrev.com/535f0876943ebd615b8a736cc96ecbae155a7919 Cr-Commit-Position: refs/heads/master@{#345057}

Patch Set 1 : Retain and flag dump provider on unregistration #

Patch Set 2 : Ensure retaining does not affect behavior #

Patch Set 3 : Do not (un)register with tracing enabled #

Total comments: 22

Patch Set 4 : Address review issues #

Total comments: 14

Patch Set 5 : Address review issues #

Patch Set 6 : Replace auto with explicit types #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -28 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 3 chunks +7 lines, -4 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 8 chunks +20 lines, -24 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 4 chunks +106 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (6 generated)
Ruud van Asseldonk
This should fix issue 522009. I am not sure whether relanding the tests should go ...
5 years, 4 months ago (2015-08-20 13:41:10 UTC) #2
dsinclair
On 2015/08/20 13:41:10, Ruud van Asseldonk wrote: > This should fix issue 522009. I am ...
5 years, 4 months ago (2015-08-20 13:43:37 UTC) #3
Primiano Tucci (use gerrit)
Many thanks for putting this CL together and the thorough testing! Make sense overall, but ...
5 years, 4 months ago (2015-08-21 09:00:31 UTC) #7
Ruud van Asseldonk
https://codereview.chromium.org/1289793007/diff/100001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1289793007/diff/100001/base/trace_event/memory_dump_manager.cc#newcode156 base/trace_event/memory_dump_manager.cc:156: // If there was a previous entry, replace it ...
5 years, 4 months ago (2015-08-21 10:51:40 UTC) #8
Primiano Tucci (use gerrit)
The production code looks great (% some comment on comments here and there). We just ...
5 years, 4 months ago (2015-08-24 09:31:20 UTC) #9
Ruud van Asseldonk
https://codereview.chromium.org/1289793007/diff/120001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1289793007/diff/120001/base/trace_event/memory_dump_manager.cc#newcode156 base/trace_event/memory_dump_manager.cc:156: // If there was a previous entry, replace it ...
5 years, 4 months ago (2015-08-24 10:08:37 UTC) #10
Primiano Tucci (use gerrit)
LGTM after reducing the auto magic as discussed offline.
5 years, 4 months ago (2015-08-24 11:23:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1289793007/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1289793007/160001
5 years, 4 months ago (2015-08-24 11:37:54 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:160001)
5 years, 4 months ago (2015-08-24 13:25:31 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-24 13:26:31 UTC) #16
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/535f0876943ebd615b8a736cc96ecbae155a7919
Cr-Commit-Position: refs/heads/master@{#345057}

Powered by Google App Engine
This is Rietveld 408576698