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

Issue 2041583003: [tracing] Introduce "allowed_dump_modes" for memory dump config (Closed)

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

Description

[tracing] Introduce "allowed_dump_modes" for memory dump config The "allowed_dump_modes" contains a list of dump modes that are allowed for memory dumps in the current session. This is to prevent any other components from triggering explicit dumps with unexpected details. Trace config now controls the modes allowed. If not mentioned then by default all the modes are allowed. BUG=617208 TBR=oysteine@chromium.org Committed: https://crrev.com/40638de0bd1dbd66662c09b95bdd1df09ab9258c Cr-Commit-Position: refs/heads/master@{#401382}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Use session state #

Patch Set 4 : rebase on 2049143002 #

Total comments: 14

Patch Set 5 : Fixes and rebase. #

Total comments: 4

Patch Set 6 : Keep TracingController check. Added comment and bulid fix. #

Patch Set 7 : Add check #

Patch Set 8 : rebase. #

Total comments: 10

Patch Set 9 : fix enum order. #

Patch Set 10 : Change mode to int. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -20 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 4 chunks +37 lines, -9 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -1 line 0 comments Download
M base/trace_event/memory_dump_request_args.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -3 lines 0 comments Download
M base/trace_event/trace_config.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M base/trace_event/trace_config.cc View 1 2 3 4 5 6 7 8 9 6 chunks +36 lines, -1 line 0 comments Download
M base/trace_event/trace_config_memory_test_util.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/devtools/protocol/tracing_handler_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/tracing/background_tracing_manager_impl.cc View 1 2 3 4 5 2 chunks +13 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 51 (18 generated)
ssid
ptal, thanks
4 years, 6 months ago (2016-06-06 06:11:48 UTC) #5
Primiano Tucci (use gerrit)
Thanks for this. Some comments below. As a general comment, can we make the set ...
4 years, 6 months ago (2016-06-08 15:48:30 UTC) #6
ssid
On 2016/06/08 15:48:30, Primiano Tucci wrote: > Thanks for this. Some comments below. > As ...
4 years, 6 months ago (2016-06-08 18:04:17 UTC) #7
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2041583003/diff/40001/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/2041583003/diff/40001/base/trace_event/memory_dump_manager.h#newcode283 base/trace_event/memory_dump_manager.h:283: explicit PeriodicGlobalDumpTimer(MemoryDumpManager* mdm); On 2016/06/08 18:04:17, ssid wrote: > ...
4 years, 6 months ago (2016-06-09 18:46:39 UTC) #9
ssid
Thanks for your comments, ptal. https://codereview.chromium.org/2041583003/diff/100001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/2041583003/diff/100001/base/trace_event/memory_dump_manager.cc#newcode716 base/trace_event/memory_dump_manager.cc:716: return session_state_->memory_dump_config().allowed_dump_modes.count( On 2016/06/09 ...
4 years, 6 months ago (2016-06-09 21:34:15 UTC) #12
Primiano Tucci (use gerrit)
LGTM % the change in /tracing_controller_impl.cc which IMHO should be removed https://codereview.chromium.org/2041583003/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): ...
4 years, 6 months ago (2016-06-10 12:31:57 UTC) #16
ssid
I still haven't removed the tracing controller condition. I think it is necessary not superfluos. ...
4 years, 6 months ago (2016-06-10 18:23:48 UTC) #17
ssid
+dgozman For fixing devtools unittest. Note that this change need not be documented in devtools ...
4 years, 6 months ago (2016-06-10 18:24:41 UTC) #19
dgozman
[+caseq FYI] devtools lgtm
4 years, 6 months ago (2016-06-13 13:10:22 UTC) #20
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2041583003/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/2041583003/diff/100001/content/browser/tracing/tracing_controller_impl.cc#newcode916 content/browser/tracing/tracing_controller_impl.cc:916: if (!base::trace_event::MemoryDumpManager::GetInstance()->IsDumpModeAllowed( On 2016/06/10 18:23:47, ssid wrote: > On ...
4 years, 6 months ago (2016-06-13 19:56:54 UTC) #21
ssid
Thanks, made suggested change. https://codereview.chromium.org/2041583003/diff/100001/content/browser/tracing/tracing_controller_impl.cc File content/browser/tracing/tracing_controller_impl.cc (right): https://codereview.chromium.org/2041583003/diff/100001/content/browser/tracing/tracing_controller_impl.cc#newcode916 content/browser/tracing/tracing_controller_impl.cc:916: if (!base::trace_event::MemoryDumpManager::GetInstance()->IsDumpModeAllowed( On 2016/06/13 19:56:54, ...
4 years, 6 months ago (2016-06-14 01:26:11 UTC) #22
Primiano Tucci (use gerrit)
On 2016/06/14 01:26:11, ssid wrote: > Thanks, made suggested change. re-LGTM thanks
4 years, 6 months ago (2016-06-14 08:43:10 UTC) #23
ssid
oysteine@ ptal thanks.
4 years, 6 months ago (2016-06-14 18:30:26 UTC) #24
ssid
On 2016/06/14 18:30:26, ssid wrote: > oysteine@ ptal thanks. friendly ping.
4 years, 6 months ago (2016-06-16 23:54:21 UTC) #25
ssid
On 2016/06/16 23:54:21, ssid wrote: > On 2016/06/14 18:30:26, ssid wrote: > > oysteine@ ptal ...
4 years, 6 months ago (2016-06-17 18:14:07 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041583003/260001
4 years, 6 months ago (2016-06-17 18:15:08 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/22732) ios-device-gn on ...
4 years, 6 months ago (2016-06-17 18:17:27 UTC) #31
oystein (OOO til 10th of July)
Apologies for not seeing this before, BlinkOn got in the way last week. https://codereview.chromium.org/2041583003/diff/280001/base/trace_event/memory_dump_request_args.h File ...
4 years, 6 months ago (2016-06-20 17:02:18 UTC) #32
oystein (OOO til 10th of July)
(As a general rule, if I don't respond to a codereview email ping, please IM ...
4 years, 6 months ago (2016-06-20 17:03:04 UTC) #33
ssid
On 2016/06/20 17:03:04, Oystein wrote: > (As a general rule, if I don't respond to ...
4 years, 6 months ago (2016-06-20 19:12:06 UTC) #34
ssid
https://codereview.chromium.org/2041583003/diff/280001/base/trace_event/trace_config.cc File base/trace_event/trace_config.cc (right): https://codereview.chromium.org/2041583003/diff/280001/base/trace_event/trace_config.cc#newcode83 base/trace_event/trace_config.cc:83: mode = static_cast<MemoryDumpLevelOfDetail>(static_cast<uint32_t>(mode) + Sorry, I just understood what ...
4 years, 6 months ago (2016-06-21 01:06:08 UTC) #35
Primiano Tucci (use gerrit)
https://codereview.chromium.org/2041583003/diff/280001/content/browser/tracing/background_tracing_manager_impl.cc File content/browser/tracing/background_tracing_manager_impl.cc (right): https://codereview.chromium.org/2041583003/diff/280001/content/browser/tracing/background_tracing_manager_impl.cc#newcode55 content/browser/tracing/background_tracing_manager_impl.cc:55: // Safety check to make sure the memory-infra restrictions ...
4 years, 6 months ago (2016-06-21 06:50:49 UTC) #36
oystein (OOO til 10th of July)
On 2016/06/21 06:50:49, Primiano Tucci wrote: > https://codereview.chromium.org/2041583003/diff/280001/content/browser/tracing/background_tracing_manager_impl.cc > File content/browser/tracing/background_tracing_manager_impl.cc (right): > > https://codereview.chromium.org/2041583003/diff/280001/content/browser/tracing/background_tracing_manager_impl.cc#newcode55 ...
4 years, 6 months ago (2016-06-21 12:40:22 UTC) #37
Primiano Tucci (use gerrit)
On 2016/06/21 12:40:22, Oystein wrote: > I'm all for paranoia in these cases, it's just ...
4 years, 6 months ago (2016-06-21 15:02:45 UTC) #38
ssid
> I'm all for paranoia in these cases, it's just that the check itself seems ...
4 years, 6 months ago (2016-06-21 19:04:14 UTC) #39
oystein (OOO til 10th of July)
On 2016/06/21 19:04:14, ssid wrote: > > I'm all for paranoia in these cases, it's ...
4 years, 6 months ago (2016-06-21 19:32:59 UTC) #40
ssid
> Could the Memory dump manager check the TraceLog for the presence of a trace ...
4 years, 6 months ago (2016-06-21 21:45:55 UTC) #41
ssid
I was looking at the argument filtering code. It is enabled when "enable_argument_filter" flag is ...
4 years, 6 months ago (2016-06-22 00:07:13 UTC) #42
oystein (OOO til 10th of July)
On 2016/06/22 00:07:13, ssid wrote: > I was looking at the argument filtering code. It ...
4 years, 6 months ago (2016-06-22 08:46:19 UTC) #43
ssid
> > background_tracing_manager_impl.cc::407: > if (requires_anonymized_data_) > trace_config.EnableArgumentFilter(); > > Sorry if my point wasn't ...
4 years, 6 months ago (2016-06-22 17:21:56 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041583003/320001
4 years, 6 months ago (2016-06-22 19:36:37 UTC) #47
commit-bot: I haz the power
Committed patchset #10 (id:320001)
4 years, 6 months ago (2016-06-22 19:40:55 UTC) #49
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 19:42:40 UTC) #51
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/40638de0bd1dbd66662c09b95bdd1df09ab9258c
Cr-Commit-Position: refs/heads/master@{#401382}

Powered by Google App Engine
This is Rietveld 408576698