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

Issue 1308403002: [Tracing] Disable registration of regular dump providers during tests (Closed)

Created:
5 years, 4 months ago by Ruud van Asseldonk
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, ssid, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@reland-content-browsertest
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Tracing] Disable registration of regular dump providers during tests This adds a testing-only property to |MemoryDumpManager| which disables registration of memory dump providers. This is to ensure that in tests, the memory dump providers that are registered are only the providers which were registered explicitly for the test. The motivation for doing this is https://crbug.com/522009, flakiness of some of the tests that was caused by an unrelated memory dump provider unregistering during a dump. The flakiness has been resolved in 535f087 by allowing unregistering while dumping, but to avoid such problems in the future, this CL allows ignoring all registrations except the ones intended for testing. BUG=522009, 522165 Committed: https://crrev.com/16ca6b63afbb3f1c6f95c1fc3f592459b7060292 Cr-Commit-Position: refs/heads/master@{#355071}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address review issues #

Total comments: 13

Patch Set 3 : Rebase on top of master #

Patch Set 4 : Rename variable #

Total comments: 4

Patch Set 5 : Address primiano comments #

Patch Set 6 : Fix RegisterDumperWhileDumping test #

Total comments: 10

Patch Set 7 : Address primiano nits #

Total comments: 2

Patch Set 8 : Fix indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -34 lines) Patch
M base/trace_event/memory_dump_manager.h View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download
M base/trace_event/memory_dump_manager.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -10 lines 0 comments Download
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 3 4 5 6 20 chunks +38 lines, -22 lines 0 comments Download
M content/browser/tracing/memory_tracing_browsertest.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
Ruud van Asseldonk
5 years, 4 months ago (2015-08-24 14:53:04 UTC) #2
Primiano Tucci (use gerrit)
Thanks for doing this. Some comments below https://codereview.chromium.org/1308403002/diff/1/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/1308403002/diff/1/base/trace_event/memory_dump_manager.h#newcode21 base/trace_event/memory_dump_manager.h:21: class MemoryTracingTest; ...
5 years, 4 months ago (2015-08-24 17:23:34 UTC) #3
Ruud van Asseldonk
https://codereview.chromium.org/1308403002/diff/1/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/1308403002/diff/1/base/trace_event/memory_dump_manager.h#newcode21 base/trace_event/memory_dump_manager.h:21: class MemoryTracingTest; On 2015/08/24 at 17:23:34, Primiano Tucci wrote: ...
5 years, 4 months ago (2015-08-25 09:51:17 UTC) #4
Primiano Tucci (use gerrit)
Let's have a syncup with ssid later this afternoon on this. All these magicForTesting methods ...
5 years, 4 months ago (2015-08-25 11:28:31 UTC) #5
chromium-reviews
Sure. Semi-related: I failed to reproduce the trybot failure for that CL on the Windows ...
5 years, 4 months ago (2015-08-25 11:59:04 UTC) #6
Ruud van Asseldonk
On 2015/08/25 at 11:59:04, chromium-reviews wrote: > Sure. Semi-related: I failed to reproduce the trybot ...
5 years, 3 months ago (2015-09-21 11:12:54 UTC) #7
Primiano Tucci (use gerrit)
I made lot of clanups in the previous weeks, so yes I guess this has ...
5 years, 3 months ago (2015-09-22 08:07:02 UTC) #8
picksi
Some drive by thoughts. I'll happily defer to Primiano if I'm making bad suggestions! https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager_unittest.cc ...
5 years, 3 months ago (2015-09-22 10:53:39 UTC) #10
Ruud van Asseldonk
https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager.cc#newcode153 base/trace_event/memory_dump_manager.cc:153: MemoryDumpProviderInfo mdp_info(mdp, task_runner); On 2015/09/22 at 08:07:02, Primiano Tucci ...
5 years, 2 months ago (2015-09-29 09:12:27 UTC) #11
picksi
https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager_unittest.cc#newcode80 base/trace_event/memory_dump_manager_unittest.cc:80: mdm_->ignore_dumper_registrations_for_testing(); You could rename the variable 'dumper_registrations_ignored_for_testing' which would ...
5 years, 2 months ago (2015-09-29 10:55:56 UTC) #12
Ruud van Asseldonk
On 2015/09/29 at 10:55:56, picksi wrote: > https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager_unittest.cc > File base/trace_event/memory_dump_manager_unittest.cc (right): > > https://codereview.chromium.org/1308403002/diff/20001/base/trace_event/memory_dump_manager_unittest.cc#newcode80 ...
5 years, 2 months ago (2015-09-29 11:35:48 UTC) #13
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1308403002/diff/60001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1308403002/diff/60001/base/trace_event/memory_dump_manager_unittest.cc#newcode101 base/trace_event/memory_dump_manager_unittest.cc:101: mdm_->dumper_registrations_ignored_for_testing(); Why is this get and re-set needed? https://codereview.chromium.org/1308403002/diff/60001/base/trace_event/memory_dump_manager_unittest.cc#newcode117 ...
5 years, 2 months ago (2015-09-29 17:19:09 UTC) #14
Ruud van Asseldonk
https://codereview.chromium.org/1308403002/diff/60001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/1308403002/diff/60001/base/trace_event/memory_dump_manager_unittest.cc#newcode101 base/trace_event/memory_dump_manager_unittest.cc:101: mdm_->dumper_registrations_ignored_for_testing(); On 2015/09/29 at 17:19:09, Primiano Tucci wrote: > ...
5 years, 2 months ago (2015-10-13 11:11:47 UTC) #15
Primiano Tucci (use gerrit)
LGTM with some comments https://codereview.chromium.org/1308403002/diff/100001/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/1308403002/diff/100001/base/trace_event/memory_dump_manager.h#newcode108 base/trace_event/memory_dump_manager.h:108: bool dumper_registrations_ignored_for_testing() const { there ...
5 years, 2 months ago (2015-10-13 13:35:50 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308403002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308403002/120001
5 years, 2 months ago (2015-10-13 13:54:03 UTC) #20
Ruud van Asseldonk
+dsinclair for content/browser https://codereview.chromium.org/1308403002/diff/100001/base/trace_event/memory_dump_manager.h File base/trace_event/memory_dump_manager.h (right): https://codereview.chromium.org/1308403002/diff/100001/base/trace_event/memory_dump_manager.h#newcode108 base/trace_event/memory_dump_manager.h:108: bool dumper_registrations_ignored_for_testing() const { On 2015/10/13 ...
5 years, 2 months ago (2015-10-13 13:55:41 UTC) #22
dsinclair
lgtm w/ nit https://codereview.chromium.org/1308403002/diff/120001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1308403002/diff/120001/base/trace_event/memory_dump_manager.cc#newcode135 base/trace_event/memory_dump_manager.cc:135: RegisterDumpProvider(ProcessMemoryTotalsDumpProvider::GetInstance()); Indenting
5 years, 2 months ago (2015-10-20 14:31:39 UTC) #23
Ruud van Asseldonk
https://codereview.chromium.org/1308403002/diff/120001/base/trace_event/memory_dump_manager.cc File base/trace_event/memory_dump_manager.cc (right): https://codereview.chromium.org/1308403002/diff/120001/base/trace_event/memory_dump_manager.cc#newcode135 base/trace_event/memory_dump_manager.cc:135: RegisterDumpProvider(ProcessMemoryTotalsDumpProvider::GetInstance()); On 2015/10/20 14:31:39, dsinclair wrote: > Indenting Done.
5 years, 2 months ago (2015-10-20 15:09:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308403002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308403002/140001
5 years, 2 months ago (2015-10-20 15:09:59 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 2 months ago (2015-10-20 15:50:50 UTC) #28
commit-bot: I haz the power
5 years, 2 months ago (2015-10-20 15:51:23 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/16ca6b63afbb3f1c6f95c1fc3f592459b7060292
Cr-Commit-Position: refs/heads/master@{#355071}

Powered by Google App Engine
This is Rietveld 408576698