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

Issue 2047533002: [tracing] Add browser test for background memory tracing (Closed)

Created:
4 years, 6 months ago by ssid
Modified:
4 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, imcheng+watch_chromium.org, wfh+watch_chromium.org, avayvod+watch_chromium.org, jasonroberts+watch_google.com, tracing+reviews_chromium.org, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, isheriff+watch_chromium.org, miu+watch_chromium.org, Maria
Base URL:
https://chromium.googlesource.com/chromium/src.git@set_whitelist
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tracing] Add browser test for background memory tracing This CL adds a browser test for background mode memory tracing. To start tracing in background mode, trace config string must be passed with background mode trigger. So, this CL edits the tracing test to support trace config strings. This CL also removes the single process test for tracing since single process mode is not supported well. Discardable dump provider creates dumps with same name from browser and renderer and this is not allowed in single process mode. So, child ids are added to the dumps. BUG=613198 Committed: https://crrev.com/c442e187b9c818fe715817b332bbb1f3aaa38301 Cr-Commit-Position: refs/heads/master@{#400333}

Patch Set 1 : Rebase. #

Patch Set 2 : Remove single proc tests. #

Total comments: 6

Patch Set 3 : Fixes. #

Total comments: 4

Patch Set 4 : Remove useless watch event. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -39 lines) Patch
M base/trace_event/memory_dump_manager_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M base/trace_event/trace_config_memory_test_util.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M base/trace_event/trace_config_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/base/tracing.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/base/tracing.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/test/base/tracing_browsertest.cc View 1 2 3 6 chunks +13 lines, -29 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 3 chunks +6 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 46 (26 generated)
ssid
This adds tests for the CL: https://codereview.chromium.org/2012883003/ Test ensures 2 things: The dump providers do ...
4 years, 6 months ago (2016-06-10 23:05:46 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047533002/180001
4 years, 6 months ago (2016-06-13 23:23:14 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/20636) ios-simulator on ...
4 years, 6 months ago (2016-06-13 23:25:55 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047533002/220001
4 years, 6 months ago (2016-06-14 01:30:02 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/87081)
4 years, 6 months ago (2016-06-14 02:47:34 UTC) #22
ssid
From discussion with Maria and Bo, it seems like --single-process is not the right way ...
4 years, 6 months ago (2016-06-14 17:16:18 UTC) #23
Primiano Tucci (use gerrit)
On 2016/06/14 17:16:18, ssid wrote: > From discussion with Maria and Bo, it seems like ...
4 years, 6 months ago (2016-06-15 11:40:27 UTC) #24
Primiano Tucci (use gerrit)
apparently forgot to send comments in the previous email https://codereview.chromium.org/2047533002/diff/220001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/2047533002/diff/220001/base/trace_event/memory_dump_manager_unittest.cc#newcode1151 base/trace_event/memory_dump_manager_unittest.cc:1151: ...
4 years, 6 months ago (2016-06-15 14:19:57 UTC) #25
ssid
https://codereview.chromium.org/2047533002/diff/220001/base/trace_event/memory_dump_manager_unittest.cc File base/trace_event/memory_dump_manager_unittest.cc (right): https://codereview.chromium.org/2047533002/diff/220001/base/trace_event/memory_dump_manager_unittest.cc#newcode1151 base/trace_event/memory_dump_manager_unittest.cc:1151: TraceConfigMemoryTestUtil::GetTraceConfig_BackgroundTrigger(1)); On 2016/06/15 14:19:57, Primiano Tucci wrote: > 1 ...
4 years, 6 months ago (2016-06-15 17:50:30 UTC) #26
ssid
+Lei Please look at the changes in the browser tests. +sievers for a small tracing ...
4 years, 6 months ago (2016-06-15 17:55:45 UTC) #28
no sievers
On 2016/06/15 17:55:45, ssid wrote: > +Lei Please look at the changes in the browser ...
4 years, 6 months ago (2016-06-15 18:21:21 UTC) #29
Lei Zhang
On 2016/06/15 17:55:45, ssid wrote: > +Lei Please look at the changes in the browser ...
4 years, 6 months ago (2016-06-15 19:44:26 UTC) #30
Primiano Tucci (use gerrit)
LGTM with some comments https://codereview.chromium.org/2047533002/diff/240001/chrome/test/base/tracing_browsertest.cc File chrome/test/base/tracing_browsertest.cc (right): https://codereview.chromium.org/2047533002/diff/240001/chrome/test/base/tracing_browsertest.cc#newcode162 chrome/test/base/tracing_browsertest.cc:162: GetTraceConfig_PeriodicTriggers(250, 2000))); aren't this value ...
4 years, 6 months ago (2016-06-16 13:32:30 UTC) #31
Lei Zhang
rs lgtm
4 years, 6 months ago (2016-06-16 17:02:05 UTC) #32
ssid
Thanks. https://codereview.chromium.org/2047533002/diff/240001/chrome/test/base/tracing_browsertest.cc File chrome/test/base/tracing_browsertest.cc (right): https://codereview.chromium.org/2047533002/diff/240001/chrome/test/base/tracing_browsertest.cc#newcode162 chrome/test/base/tracing_browsertest.cc:162: GetTraceConfig_PeriodicTriggers(250, 2000))); On 2016/06/16 13:32:30, Primiano Tucci wrote: ...
4 years, 6 months ago (2016-06-16 21:42:22 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047533002/280001
4 years, 6 months ago (2016-06-16 21:43:41 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-17 01:53:18 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2047533002/280001
4 years, 6 months ago (2016-06-17 02:52:52 UTC) #41
commit-bot: I haz the power
Committed patchset #5 (id:280001)
4 years, 6 months ago (2016-06-17 02:58:01 UTC) #43
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 02:59:49 UTC) #45
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c442e187b9c818fe715817b332bbb1f3aaa38301
Cr-Commit-Position: refs/heads/master@{#400333}

Powered by Google App Engine
This is Rietveld 408576698