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

Issue 1243743002: Slow Reports - Add message filter to trigger background traces from child processes. (Closed)

Created:
5 years, 5 months ago by shatch
Modified:
5 years, 4 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, 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

Slow Reports - Add message filter to trigger background traces from child processes. At the moment, we want to trigger background traces from UMA callbacks, but you can only set a callback in the same process. This CL adds a message filter for the background tracing manager, which allows it to install UMA callbacks in child processes, and trigger background tracing from there. BUG=504889 Committed: https://crrev.com/cebf0f7018da1787d11bed7b9a406e29a84e5d79 Cr-Commit-Position: refs/heads/master@{#340544}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Fix dates. #

Patch Set 3 : Merged into TraceMessageFilter. #

Total comments: 7

Patch Set 4 : Addressed comments. #

Patch Set 5 : Use impl directly. #

Total comments: 10

Patch Set 6 : Addressed comments. #

Total comments: 4

Patch Set 7 : Addressed dcheng's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -16 lines) Patch
M components/tracing/child_trace_message_filter.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M components/tracing/child_trace_message_filter.cc View 1 2 3 chunks +34 lines, -0 lines 0 comments Download
M components/tracing/tracing_messages.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.h View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.cc View 1 2 3 4 5 6 5 chunks +80 lines, -12 lines 0 comments Download
M content/browser/tracing/trace_message_filter.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tracing/trace_message_filter.cc View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M content/browser/tracing/tracing_controller_impl.h View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/tracing/tracing_controller_impl.cc View 1 2 3 4 5 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (19 generated)
shatch
5 years, 5 months ago (2015-07-21 16:07:01 UTC) #7
fmeawad
https://codereview.chromium.org/1243743002/diff/80001/components/tracing/child_trace_message_filter.h File components/tracing/child_trace_message_filter.h (right): https://codereview.chromium.org/1243743002/diff/80001/components/tracing/child_trace_message_filter.h#newcode1 components/tracing/child_trace_message_filter.h:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 5 months ago (2015-07-21 16:14:23 UTC) #9
shatch
https://codereview.chromium.org/1243743002/diff/80001/components/tracing/child_trace_message_filter.h File components/tracing/child_trace_message_filter.h (right): https://codereview.chromium.org/1243743002/diff/80001/components/tracing/child_trace_message_filter.h#newcode1 components/tracing/child_trace_message_filter.h:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 5 months ago (2015-07-21 16:19:48 UTC) #11
oystein (OOO til 10th of July)
https://codereview.chromium.org/1243743002/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc#newcode100 content/browser/tracing/background_tracing_manager_impl.cc:100: // first access to the BackgroundTracingManagerImpl is from another ...
5 years, 5 months ago (2015-07-21 20:52:45 UTC) #16
shatch
https://codereview.chromium.org/1243743002/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc#newcode100 content/browser/tracing/background_tracing_manager_impl.cc:100: // first access to the BackgroundTracingManagerImpl is from another ...
5 years, 5 months ago (2015-07-22 17:44:13 UTC) #18
oystein (OOO til 10th of July)
lgtm
5 years, 5 months ago (2015-07-22 18:21:41 UTC) #19
shatch
Hey Dan, ptal
5 years, 5 months ago (2015-07-22 18:24:58 UTC) #21
shatch
On 2015/07/22 18:24:58, shatch wrote: > Hey Dan, ptal ping dsinclair
5 years, 5 months ago (2015-07-23 19:22:55 UTC) #22
shatch
+dcheng for components/tracing/tracing_messages.h
5 years, 5 months ago (2015-07-23 20:12:40 UTC) #25
dcheng
https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc#newcode94 content/browser/tracing/background_tracing_manager_impl.cc:94: base::Unretained(this))); Why is it safe to use Unretained here? ...
5 years, 5 months ago (2015-07-23 21:11:33 UTC) #26
shatch
https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc#newcode94 content/browser/tracing/background_tracing_manager_impl.cc:94: base::Unretained(this))); On 2015/07/23 21:11:33, dcheng wrote: > Why is ...
5 years, 5 months ago (2015-07-23 23:06:52 UTC) #28
shatch
On 2015/07/23 23:06:52, shatch wrote: > https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc > File content/browser/tracing/background_tracing_manager_impl.cc (right): > > https://codereview.chromium.org/1243743002/diff/250001/content/browser/tracing/background_tracing_manager_impl.cc#newcode94 > ...
5 years, 4 months ago (2015-07-27 13:15:15 UTC) #29
dcheng
lgtm https://codereview.chromium.org/1243743002/diff/290001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/290001/content/browser/tracing/background_tracing_manager_impl.cc#newcode94 content/browser/tracing/background_tracing_manager_impl.cc:94: base::Unretained(this))); Personally, I think it's better to annotate ...
5 years, 4 months ago (2015-07-27 17:19:58 UTC) #30
shatch
https://codereview.chromium.org/1243743002/diff/290001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1243743002/diff/290001/content/browser/tracing/background_tracing_manager_impl.cc#newcode94 content/browser/tracing/background_tracing_manager_impl.cc:94: base::Unretained(this))); On 2015/07/27 17:19:58, dcheng wrote: > Personally, I ...
5 years, 4 months ago (2015-07-27 19:08:04 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1243743002/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1243743002/310001
5 years, 4 months ago (2015-07-27 19:08:39 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:310001)
5 years, 4 months ago (2015-07-27 20:13:26 UTC) #35
commit-bot: I haz the power
5 years, 4 months ago (2015-07-27 20:14:20 UTC) #36
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/cebf0f7018da1787d11bed7b9a406e29a84e5d79
Cr-Commit-Position: refs/heads/master@{#340544}

Powered by Google App Engine
This is Rietveld 408576698