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

Issue 1148393003: Implement Reactive Configuration in Background Tracing (Closed)

Created:
5 years, 7 months ago by fmeawad
Modified:
5 years, 6 months ago
Reviewers:
dsinclair, no sievers
CC:
chromium-reviews, oystein (OOO til 10th of July), shatch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This CL implements the Reactive configuration, a configuration that allows triggering a trace manually, and the trace is either concluded after a timeout or on a second trigger. BUG=495187 Committed: https://crrev.com/743fcdfd45d0a18c263e897e38eb2ddfae37f7c9 Cr-Commit-Position: refs/heads/master@{#332739}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Rebase #

Patch Set 3 : Fix rebase #

Patch Set 4 : Make tracing_timer_ to a scoped_ptr #

Patch Set 5 : Initial testing #

Patch Set 6 : Add tests #

Patch Set 7 : Rebase #

Total comments: 6

Patch Set 8 : Addressing comments #

Total comments: 24

Patch Set 9 : Address Comments #

Patch Set 10 : Rebase #

Patch Set 11 : Record only until full in the reactive case #

Total comments: 6

Patch Set 12 : Address Comments #

Patch Set 13 : Rebase files depending on reactive config #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -73 lines) Patch
M content/browser/tracing/background_tracing_config_dict.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -7 lines 0 comments Download
M content/browser/tracing/background_tracing_config_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +22 lines, -27 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_browsertest.cc View 1 2 3 4 5 6 7 8 7 chunks +118 lines, -13 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +21 lines, -1 line 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +97 lines, -24 lines 0 comments Download
M content/public/browser/background_tracing_manager.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/background_tracing_reactive_config.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 27 (9 generated)
shatch
https://codereview.chromium.org/1148393003/diff/1/content/browser/tracing/background_tracing_manager_browsertest.cc File content/browser/tracing/background_tracing_manager_browsertest.cc (right): https://codereview.chromium.org/1148393003/diff/1/content/browser/tracing/background_tracing_manager_browsertest.cc#newcode1 content/browser/tracing/background_tracing_manager_browsertest.cc:1: // Copyright 2015 The Chromium Authors. All rights reserved. ...
5 years, 7 months ago (2015-05-21 15:59:06 UTC) #2
fmeawad
Thank you for the quick feedback, will send another version later today. Some replies. https://codereview.chromium.org/1148393003/diff/1/content/browser/tracing/background_tracing_manager_impl.cc ...
5 years, 7 months ago (2015-05-21 16:09:39 UTC) #3
fmeawad
Simon, can you take another look?
5 years, 6 months ago (2015-05-30 00:38:50 UTC) #5
shatch
lg2m https://codereview.chromium.org/1148393003/diff/120001/content/browser/tracing/background_tracing_manager_browsertest.cc File content/browser/tracing/background_tracing_manager_browsertest.cc (right): https://codereview.chromium.org/1148393003/diff/120001/content/browser/tracing/background_tracing_manager_browsertest.cc#newcode407 content/browser/tracing/background_tracing_manager_browsertest.cc:407: ReactiveThridTriggerTimeout) { nit: thrid->third https://codereview.chromium.org/1148393003/diff/120001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): ...
5 years, 6 months ago (2015-06-01 15:33:34 UTC) #6
fmeawad
https://codereview.chromium.org/1148393003/diff/120001/content/browser/tracing/background_tracing_manager_browsertest.cc File content/browser/tracing/background_tracing_manager_browsertest.cc (right): https://codereview.chromium.org/1148393003/diff/120001/content/browser/tracing/background_tracing_manager_browsertest.cc#newcode407 content/browser/tracing/background_tracing_manager_browsertest.cc:407: ReactiveThridTriggerTimeout) { On 2015/06/01 15:33:33, shatch wrote: > nit: ...
5 years, 6 months ago (2015-06-01 18:15:27 UTC) #7
fmeawad
5 years, 6 months ago (2015-06-01 18:15:28 UTC) #8
fmeawad
Expanding to a wider audience, Dan, Can you take a look?
5 years, 6 months ago (2015-06-01 18:18:05 UTC) #10
dsinclair
https://codereview.chromium.org/1148393003/diff/140001/content/browser/tracing/background_tracing_manager_browsertest.cc File content/browser/tracing/background_tracing_manager_browsertest.cc (right): https://codereview.chromium.org/1148393003/diff/140001/content/browser/tracing/background_tracing_manager_browsertest.cc#newcode360 content/browser/tracing/background_tracing_manager_browsertest.cc:360: BackgroundTracingManager::GetInstance()->TriggerNamedEvent( What is the timeout this is using? How ...
5 years, 6 months ago (2015-06-01 19:14:53 UTC) #11
fmeawad
Thank you for the prompt review, PTAL. https://codereview.chromium.org/1148393003/diff/140001/content/browser/tracing/background_tracing_manager_browsertest.cc File content/browser/tracing/background_tracing_manager_browsertest.cc (right): https://codereview.chromium.org/1148393003/diff/140001/content/browser/tracing/background_tracing_manager_browsertest.cc#newcode360 content/browser/tracing/background_tracing_manager_browsertest.cc:360: BackgroundTracingManager::GetInstance()->TriggerNamedEvent( On ...
5 years, 6 months ago (2015-06-02 21:15:28 UTC) #12
dsinclair
lgtm w/ nits. https://codereview.chromium.org/1148393003/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1148393003/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc#newcode50 content/browser/tracing/background_tracing_manager_impl.cc:50: tracing_timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(10), this, nit: Let's put ...
5 years, 6 months ago (2015-06-03 14:15:30 UTC) #13
fmeawad
https://codereview.chromium.org/1148393003/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/1148393003/diff/200001/content/browser/tracing/background_tracing_manager_impl.cc#newcode50 content/browser/tracing/background_tracing_manager_impl.cc:50: tracing_timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(10), this, On 2015/06/03 14:15:30, dsinclair wrote: > ...
5 years, 6 months ago (2015-06-03 18:00:18 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148393003/220001
5 years, 6 months ago (2015-06-03 18:01:46 UTC) #17
fmeawad
+sievers for content/browser/
5 years, 6 months ago (2015-06-03 18:03:00 UTC) #19
no sievers
lgtm stamp
5 years, 6 months ago (2015-06-03 19:26:56 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/13549)
5 years, 6 months ago (2015-06-03 19:33:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1148393003/240001
5 years, 6 months ago (2015-06-03 21:51:41 UTC) #25
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 6 months ago (2015-06-03 23:55:40 UTC) #26
commit-bot: I haz the power
5 years, 6 months ago (2015-06-03 23:57:27 UTC) #27
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/743fcdfd45d0a18c263e897e38eb2ddfae37f7c9
Cr-Commit-Position: refs/heads/master@{#332739}

Powered by Google App Engine
This is Rietveld 408576698