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

Issue 1618703004: [MemoryInfra] Support dump providers running on SequencedTaskRunner (Closed)

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

Description

[MemoryInfra] Support dump providers running on SequencedTaskRunner Some components in chrome require to be on a SequencedTaskRunner while accessing memory information. This CL adds support for registration and taking a memory dump on a specified SequencedTaskRunner. - Support registration using SequencedTaskRunner. Keep the old register methods for legacy reasons, and since we can't overload RegisterDumpProvider with a base class parameter, introduce new api for registration. - Add a bool in Options to specify if the dump provider uses SingleThreadtaskrunner, which is usually the case. - Memory dumps happen on specified SequencedTaskRunner. Keep the old optimization of grouping dump providers by task runner and do not make thread hops if registered with SingleThreadTaskRunner and on right thread. - Ensure Unregistration should happen on the task runner as well. So, it is still guaranteed that OnMemoryDump and UnregisterDumpProvider calls happen on same sequenced task runner, which guarantees no overlap of tasks. BUG=555645 TBR=oysteine@chromium.org Committed: https://crrev.com/7542f07f67d1e614024e6f4f7ef08fe7dfe70a18 Cr-Commit-Position: refs/heads/master@{#377632}

Patch Set 1 #

Patch Set 2 : Unittests #

Patch Set 3 : Nits. #

Patch Set 4 : Split ContinueAsyncProcessDump. #

Total comments: 28

Patch Set 5 : Fixes. #

Patch Set 6 : nits. #

Total comments: 18

Patch Set 7 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -124 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 5 8 chunks +42 lines, -21 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 8 chunks +141 lines, -96 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 4 chunks +114 lines, -3 lines 0 comments Download
M base/trace_event/memory_dump_provider.h View 1 chunk +9 lines, -3 lines 0 comments Download
M components/tracing/process_metrics_memory_dump_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (16 generated)
ssid
ptal, thanks
4 years, 11 months ago (2016-01-25 15:49:17 UTC) #7
ssid
ping
4 years, 10 months ago (2016-01-27 19:49:45 UTC) #9
Primiano Tucci (use gerrit)
On 2016/01/27 19:49:45, ssid wrote: > ping sorry super slow this week. Will try to ...
4 years, 10 months ago (2016-01-27 20:59:27 UTC) #10
ssid
split the function as discussed offline. PTAL, thanks.
4 years, 10 months ago (2016-02-01 13:21:17 UTC) #11
ssid
On 2016/02/01 13:21:17, ssid wrote: > split the function as discussed offline. PTAL, thanks. Ping.
4 years, 10 months ago (2016-02-04 11:50:18 UTC) #12
Primiano Tucci (use gerrit)
Ok this is a rather large change ^__^ Generally makes sense, I just wished we ...
4 years, 10 months ago (2016-02-08 12:03:16 UTC) #13
ssid
Made changes. I couldn't think of better comments, will be happy to get suggestions. PTAL, ...
4 years, 10 months ago (2016-02-11 01:45:03 UTC) #14
ssid
ping.
4 years, 10 months ago (2016-02-16 20:19:01 UTC) #17
Primiano Tucci (use gerrit)
On 2016/02/16 20:19:01, ssid wrote: > ping. apologies was sheriffing these two days. will do ...
4 years, 10 months ago (2016-02-17 19:53:46 UTC) #18
Primiano Tucci (use gerrit)
Thanks a lot ssid. The code looks good (with some minimal comment) I think I ...
4 years, 10 months ago (2016-02-18 16:14:37 UTC) #19
ssid
Removed changes from the existing test. https://codereview.chromium.org/1618703004/diff/220001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1618703004/diff/220001/base/trace_event/memory_dump_manager.cc#newcode440 base/trace_event/memory_dump_manager.cc:440: // PostTask failed. ...
4 years, 10 months ago (2016-02-24 19:19:59 UTC) #20
Primiano Tucci (use gerrit)
LGTM thanks!
4 years, 10 months ago (2016-02-25 06:09:32 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618703004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618703004/240001
4 years, 10 months ago (2016-02-25 06:10:01 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-25 07:35:31 UTC) #25
ssid
+oysteine for one line change in components/tracing. PTAL, thanks
4 years, 9 months ago (2016-02-25 18:18:47 UTC) #27
Primiano Tucci (use gerrit)
On 2016/02/25 18:18:47, ssid wrote: > +oysteine for one line change in components/tracing. > PTAL, ...
4 years, 9 months ago (2016-02-25 18:30:48 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1618703004/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1618703004/240001
4 years, 9 months ago (2016-02-25 18:45:38 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:240001)
4 years, 9 months ago (2016-02-25 18:58:41 UTC) #33
commit-bot: I haz the power
4 years, 9 months ago (2016-02-25 18:59:58 UTC) #35
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7542f07f67d1e614024e6f4f7ef08fe7dfe70a18
Cr-Commit-Position: refs/heads/master@{#377632}

Powered by Google App Engine
This is Rietveld 408576698