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

Issue 1427963002: [tracing] Move memory-infra dumps to dedicated thread (Closed)

Created:
5 years, 1 month ago by Primiano Tucci (use gerrit)
Modified:
5 years, 1 month 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@memory-infra-names
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Move memory-infra dumps to dedicated thread After the CL the memory dump providers which don't specify a task_runner affinity are invoked on a dedicate thread. This is to avoid janking the main thread when tracing using memory-infra. Also, this CL ensures that the unbound dumpers are always executed last (when the preemption of the other dumpers with thread-affinity is over) BUG=547765 Committed: https://crrev.com/f0dfbf833838e2e0209b998dac2f4333d729ceef Cr-Commit-Position: refs/heads/master@{#357377}

Patch Set 1 #

Patch Set 2 : #

Total comments: 19

Patch Set 3 : Address review + fix browsertest #

Total comments: 8

Patch Set 4 : Final petrcermak comments #

Total comments: 2

Patch Set 5 : remove extra reset() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -101 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 4 chunks +14 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 9 chunks +51 lines, -17 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 26 chunks +109 lines, -79 lines 0 comments Download
M components/tracing/child_trace_message_filter_browsertest.cc View 1 2 3 4 5 chunks +31 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Primiano Tucci (use gerrit)
Threading, how lovely. I need high-OCD reviewers for this ;-)
5 years, 1 month ago (2015-10-30 14:28:18 UTC) #2
Ruud van Asseldonk
https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc#newcode500 base/trace_event/memory_dump_manager.cc:500: dump_thread_->Start(); Is |new Thread| or |dump_thread_->Start()| an expensive operation ...
5 years, 1 month ago (2015-10-30 16:52:41 UTC) #3
petrcermak
Looks goof overall. Here's a few more comments... Description nit: s/invoked on a dedicate thread/invoked ...
5 years, 1 month ago (2015-10-30 17:43:04 UTC) #4
Primiano Tucci (use gerrit)
Thanks guys. Addressed comments, and fixed a browser test. https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc#newcode337 base/trace_event/memory_dump_manager.cc:337: ...
5 years, 1 month ago (2015-11-02 10:22:23 UTC) #5
petrcermak
LGTM with a few more observations. Thanks, Petr https://codereview.chromium.org/1427963002/diff/30001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1427963002/diff/30001/base/trace_event/memory_dump_manager.cc#newcode345 base/trace_event/memory_dump_manager.cc:345: // ...
5 years, 1 month ago (2015-11-02 10:35:20 UTC) #6
Ruud van Asseldonk
lgtm https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1427963002/diff/2/base/trace_event/memory_dump_manager.cc#newcode586 base/trace_event/memory_dump_manager.cc:586: return !(task_runner < other.task_runner); On 2015/11/02 10:22:23, Primiano ...
5 years, 1 month ago (2015-11-02 11:00:37 UTC) #7
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1427963002/diff/30001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1427963002/diff/30001/base/trace_event/memory_dump_manager.cc#newcode345 base/trace_event/memory_dump_manager.cc:345: // The task_runner handle, however, should always be non-null. ...
5 years, 1 month ago (2015-11-02 15:07:07 UTC) #8
Primiano Tucci (use gerrit)
+dsinclair for an owner stamp on components/tracing/child_trace_message_filter_browsertest.cc
5 years, 1 month ago (2015-11-02 15:09:19 UTC) #10
shatch
components/tracing/child_trace_message_filter_browsertest.cc lgtm https://codereview.chromium.org/1427963002/diff/50001/components/tracing/child_trace_message_filter_browsertest.cc File components/tracing/child_trace_message_filter_browsertest.cc (right): https://codereview.chromium.org/1427963002/diff/50001/components/tracing/child_trace_message_filter_browsertest.cc#newcode93 components/tracing/child_trace_message_filter_browsertest.cc:93: wait_for_ipc_closure_.Reset(); nit: Why is this reset both ...
5 years, 1 month ago (2015-11-02 15:42:34 UTC) #12
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1427963002/diff/50001/components/tracing/child_trace_message_filter_browsertest.cc File components/tracing/child_trace_message_filter_browsertest.cc (right): https://codereview.chromium.org/1427963002/diff/50001/components/tracing/child_trace_message_filter_browsertest.cc#newcode93 components/tracing/child_trace_message_filter_browsertest.cc:93: wait_for_ipc_closure_.Reset(); On 2015/11/02 15:42:34, shatch wrote: > nit: Why ...
5 years, 1 month ago (2015-11-02 16:20:25 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427963002/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427963002/70001
5 years, 1 month ago (2015-11-02 16:20:50 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:70001)
5 years, 1 month ago (2015-11-02 17:29:40 UTC) #17
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 17:30:43 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f0dfbf833838e2e0209b998dac2f4333d729ceef
Cr-Commit-Position: refs/heads/master@{#357377}

Powered by Google App Engine
This is Rietveld 408576698