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

Issue 1089253003: Re-land first pass BackgroundTracingManager. (Closed)

Created:
5 years, 8 months ago by shatch
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, 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

Skeleton for BackgroundTracingManager. This version mostly just directs the TracingController using the specified BackgroundTracingConfig and pushes the compressed trace out to the BackgroundTracingUploadSink. Specifically, we implement the PREEMPTIVE_TRACING_MODE for the rule MONITOR_AND_DUMP_WHEN_TRIGGER_NAMED, which should allow us to get an experiment going on desktop with a simple trigger and upload. We can then follow up with additional CL's implementing the rest of the functionality from the clientside doc below. Needs to land first: https://codereview.chromium.org/1088673003/ Slow Reports Clientside: https://docs.google.com/document/d/1qZmXmodxOKmsTRO27z2WlH2h9Kpf-kjV-k-1pJIogIE/edit?pli=1 go/slow-reports Committed: https://crrev.com/c9cd43c8963301a6b1ebfb74c4eb03b8c733e9f9 Cr-Commit-Position: refs/heads/master@{#330942} Committed: https://crrev.com/0b016196499e8b5da3f20d90b201d90339ec88c8 Cr-Commit-Position: refs/heads/master@{#331141}

Patch Set 1 : #

Patch Set 2 : Added tests. #

Patch Set 3 : More tests. #

Total comments: 11

Patch Set 4 : Fixes. #

Patch Set 5 : Fixes. #

Patch Set 6 : Ready for review. #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : New interface. #

Total comments: 2

Patch Set 9 : Split into multiple files in content/public/browser. #

Total comments: 8

Patch Set 10 : Changes from review. #

Patch Set 11 : Split config into separate headers and build fix. #

Total comments: 16

Patch Set 12 : Review changes. #

Total comments: 8

Patch Set 13 : Removed upload_sink. #

Total comments: 9

Patch Set 14 : Changes from review. #

Patch Set 15 : Rebase. #

Total comments: 2

Patch Set 16 : Scoped_ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1002 lines, -4 lines) Patch
A content/browser/tracing/background_tracing_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +338 lines, -0 lines 0 comments Download
A content/browser/tracing/background_tracing_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +85 lines, -0 lines 0 comments Download
A content/browser/tracing/background_tracing_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +312 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A content/public/browser/background_tracing_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +44 lines, -0 lines 0 comments Download
A + content/public/browser/background_tracing_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +6 lines, -4 lines 0 comments Download
A content/public/browser/background_tracing_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +94 lines, -0 lines 0 comments Download
A content/public/browser/background_tracing_preemptive_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +45 lines, -0 lines 0 comments Download
A content/public/browser/background_tracing_preemptive_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +17 lines, -0 lines 0 comments Download
A content/public/browser/background_tracing_reactive_config.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +35 lines, -0 lines 0 comments Download
A content/public/browser/background_tracing_reactive_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 69 (29 generated)
oystein (OOO til 10th of July)
https://codereview.chromium.org/1089253003/diff/100001/content/browser/tracing/background_tracing_endpoint.cc File content/browser/tracing/background_tracing_endpoint.cc (right): https://codereview.chromium.org/1089253003/diff/100001/content/browser/tracing/background_tracing_endpoint.cc#newcode1 content/browser/tracing/background_tracing_endpoint.cc:1: // Copyright (c) 2015 The Chromium Authors. All rights ...
5 years, 8 months ago (2015-04-21 17:31:44 UTC) #5
shatch
I think this is ready for review, ptal!
5 years, 8 months ago (2015-04-22 16:28:47 UTC) #7
shatch
On 2015/04/22 16:28:47, shatch wrote: > I think this is ready for review, ptal! ping
5 years, 7 months ago (2015-04-28 21:04:35 UTC) #8
dsinclair
https://codereview.chromium.org/1089253003/diff/170001/content/browser/tracing/background_tracing_manager.cc File content/browser/tracing/background_tracing_manager.cc (right): https://codereview.chromium.org/1089253003/diff/170001/content/browser/tracing/background_tracing_manager.cc#newcode30 content/browser/tracing/background_tracing_manager.cc:30: is_recording_ = true; I don't see this getting reset ...
5 years, 7 months ago (2015-05-01 15:46:15 UTC) #9
shatch
After discussion with Nat/Oystein offline, we've settled on a new interface for the BackgroundTracingManager. ptal!
5 years, 7 months ago (2015-05-07 20:50:06 UTC) #11
nduca
lgtm to me, a minor question but go for it :) https://codereview.chromium.org/1089253003/diff/230001/content/public/browser/background_tracing_manager.h File content/public/browser/background_tracing_manager.h (right): ...
5 years, 7 months ago (2015-05-11 18:23:27 UTC) #13
shatch
+sievers for content/public/browser and the .gypi files. ptal! https://codereview.chromium.org/1089253003/diff/230001/content/public/browser/background_tracing_manager.h File content/public/browser/background_tracing_manager.h (right): https://codereview.chromium.org/1089253003/diff/230001/content/public/browser/background_tracing_manager.h#newcode121 content/public/browser/background_tracing_manager.h:121: class ...
5 years, 7 months ago (2015-05-11 19:41:50 UTC) #15
no sievers
https://codereview.chromium.org/1089253003/diff/250001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/1089253003/diff/250001/content/content_browser.gypi#newcode73 content/content_browser.gypi:73: 'public/browser/background_tracing_config.cc', nit: order https://codereview.chromium.org/1089253003/diff/250001/content/public/browser/background_tracing_config.cc File content/public/browser/background_tracing_config.cc (right): https://codereview.chromium.org/1089253003/diff/250001/content/public/browser/background_tracing_config.cc#newcode10 content/public/browser/background_tracing_config.cc:10: ...
5 years, 7 months ago (2015-05-11 21:13:27 UTC) #16
shatch
https://codereview.chromium.org/1089253003/diff/250001/content/content_browser.gypi File content/content_browser.gypi (right): https://codereview.chromium.org/1089253003/diff/250001/content/content_browser.gypi#newcode73 content/content_browser.gypi:73: 'public/browser/background_tracing_config.cc', On 2015/05/11 21:13:27, sievers wrote: > nit: order ...
5 years, 7 months ago (2015-05-12 21:00:05 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/290001
5 years, 7 months ago (2015-05-13 15:56:09 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/71611)
5 years, 7 months ago (2015-05-13 16:22:27 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/310001
5 years, 7 months ago (2015-05-13 17:49:07 UTC) #26
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-13 19:21:44 UTC) #28
no sievers
Sorry for the lengthy feedback. This on-demand tracing stuff is really cool. I think it's ...
5 years, 7 months ago (2015-05-14 21:25:17 UTC) #29
no sievers
Btw, is this too simplistic? struct TracingTrigger { EventDescription event; bool trace_before_or_after; TimeDelta trace_length; // ...
5 years, 7 months ago (2015-05-14 21:56:31 UTC) #30
shatch
On 2015/05/14 21:56:31, sievers wrote: > Btw, is this too simplistic? > > struct TracingTrigger ...
5 years, 7 months ago (2015-05-15 20:59:33 UTC) #31
shatch
Thanks for taking the time to give detailed feedback Daniel! https://codereview.chromium.org/1089253003/diff/310001/content/public/browser/background_tracing_config.h File content/public/browser/background_tracing_config.h (right): https://codereview.chromium.org/1089253003/diff/310001/content/public/browser/background_tracing_config.h#newcode21 ...
5 years, 7 months ago (2015-05-15 21:00:51 UTC) #32
no sievers
I'll be happy to stamp of this is the route you guys want to take. ...
5 years, 7 months ago (2015-05-15 22:26:03 UTC) #33
shatch
On 2015/05/15 22:26:03, sievers wrote: > I'll be happy to stamp of this is the ...
5 years, 7 months ago (2015-05-19 18:06:32 UTC) #34
no sievers
https://codereview.chromium.org/1089253003/diff/330001/content/public/browser/background_tracing_config.cc File content/public/browser/background_tracing_config.cc (right): https://codereview.chromium.org/1089253003/diff/330001/content/public/browser/background_tracing_config.cc#newcode25 content/public/browser/background_tracing_config.cc:25: BackgroundTracingPreemptiveConfig::~BackgroundTracingPreemptiveConfig() { these are still here in the wrong ...
5 years, 7 months ago (2015-05-19 19:52:22 UTC) #35
shatch
https://codereview.chromium.org/1089253003/diff/330001/content/public/browser/background_tracing_config.cc File content/public/browser/background_tracing_config.cc (right): https://codereview.chromium.org/1089253003/diff/330001/content/public/browser/background_tracing_config.cc#newcode25 content/public/browser/background_tracing_config.cc:25: BackgroundTracingPreemptiveConfig::~BackgroundTracingPreemptiveConfig() { On 2015/05/19 19:52:21, sievers wrote: > these ...
5 years, 7 months ago (2015-05-20 18:23:16 UTC) #36
no sievers
https://codereview.chromium.org/1089253003/diff/350001/content/public/browser/background_tracing_manager.h File content/public/browser/background_tracing_manager.h (right): https://codereview.chromium.org/1089253003/diff/350001/content/public/browser/background_tracing_manager.h#newcode24 content/public/browser/background_tracing_manager.h:24: typedef base::Callback<void(base::RefCountedString*, base::Callback<void()>)> const base::RefCountedString*? https://codereview.chromium.org/1089253003/diff/350001/content/public/browser/background_tracing_manager.h#newcode24 content/public/browser/background_tracing_manager.h:24: typedef base::Callback<void(base::RefCountedString*, ...
5 years, 7 months ago (2015-05-20 19:22:40 UTC) #37
shatch
https://codereview.chromium.org/1089253003/diff/350001/content/public/browser/background_tracing_manager.h File content/public/browser/background_tracing_manager.h (right): https://codereview.chromium.org/1089253003/diff/350001/content/public/browser/background_tracing_manager.h#newcode24 content/public/browser/background_tracing_manager.h:24: typedef base::Callback<void(base::RefCountedString*, base::Callback<void()>)> On 2015/05/20 19:22:39, sievers wrote: > ...
5 years, 7 months ago (2015-05-20 19:53:55 UTC) #38
no sievers
lgtm
5 years, 7 months ago (2015-05-20 19:57:16 UTC) #39
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/370001
5 years, 7 months ago (2015-05-20 20:06:35 UTC) #42
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/74044)
5 years, 7 months ago (2015-05-20 20:25:23 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/450001
5 years, 7 months ago (2015-05-21 15:02:02 UTC) #50
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-21 15:06:57 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/450001
5 years, 7 months ago (2015-05-21 15:26:14 UTC) #54
commit-bot: I haz the power
Committed patchset #15 (id:450001)
5 years, 7 months ago (2015-05-21 15:30:49 UTC) #55
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/c9cd43c8963301a6b1ebfb74c4eb03b8c733e9f9 Cr-Commit-Position: refs/heads/master@{#330942}
5 years, 7 months ago (2015-05-21 15:31:58 UTC) #56
shatch
A revert of this CL (patchset #15 id:450001) has been created in https://codereview.chromium.org/1147383002/ by simonhatch@chromium.org. ...
5 years, 7 months ago (2015-05-21 17:53:00 UTC) #57
nduca
https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h File content/public/browser/background_tracing_config.h (right): https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h#newcode34 content/public/browser/background_tracing_config.h:34: static void IntoDict(const BackgroundTracingConfig* config, drive by: bit puzzled ...
5 years, 7 months ago (2015-05-21 20:02:55 UTC) #58
nduca
https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h File content/public/browser/background_tracing_config.h (right): https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h#newcode34 content/public/browser/background_tracing_config.h:34: static void IntoDict(const BackgroundTracingConfig* config, and, also puzzled why ...
5 years, 7 months ago (2015-05-21 20:04:51 UTC) #59
shatch
On 2015/05/21 20:04:51, nduca wrote: > https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h > File content/public/browser/background_tracing_config.h (right): > > https://codereview.chromium.org/1089253003/diff/450001/content/public/browser/background_tracing_config.h#newcode34 > ...
5 years, 7 months ago (2015-05-22 15:17:57 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/470001
5 years, 7 months ago (2015-05-22 15:20:12 UTC) #63
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-22 16:25:09 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1089253003/470001
5 years, 7 months ago (2015-05-22 19:00:07 UTC) #67
commit-bot: I haz the power
Committed patchset #16 (id:470001)
5 years, 7 months ago (2015-05-22 19:14:16 UTC) #68
commit-bot: I haz the power
5 years, 7 months ago (2015-05-22 19:15:10 UTC) #69
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/0b016196499e8b5da3f20d90b201d90339ec88c8
Cr-Commit-Position: refs/heads/master@{#331141}

Powered by Google App Engine
This is Rietveld 408576698