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

Issue 542893002: Add trace-to-file support for base::TestSuite (Closed)

Created:
6 years, 3 months ago by enne (OOO)
Modified:
6 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, danakj, dsinclair, erikwright+watch_chromium.org, nduca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add trace-to-file support for base::TestSuite Passing --trace-to-file on the command line will trace a default set of categories to a default trace file name (trace.json). --trace-to-file=categories --trace-to-file-name=somefile.json allow for more configuration. BUG=none Committed: https://crrev.com/04213de5a22ff0f95a93584cde042133c358c184 Cr-Commit-Position: refs/heads/master@{#296770}

Patch Set 1 #

Patch Set 2 : Update gyps #

Patch Set 3 : CHECK -> DCHECK #

Total comments: 4

Patch Set 4 : Rebase #

Patch Set 5 : Address review comments #

Patch Set 6 : Move files to base/test instead #

Patch Set 7 : Remove unneeded include #

Total comments: 6

Patch Set 8 : thakis review #

Patch Set 9 : Windows build failures #

Patch Set 10 : Windows fixes for really reals #

Patch Set 11 : Windows, take 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M base/base_switches.h View 1 chunk +2 lines, -0 lines 0 comments Download
M base/base_switches.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M base/test/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M base/test/test_suite.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M base/test/test_suite.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A base/test/trace_to_file.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A base/test/trace_to_file.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +104 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
enne (OOO)
I am not sure I know what I'm doing with message loops, so please give ...
6 years, 3 months ago (2014-09-05 00:55:13 UTC) #2
mithro-old
Dana pointed out this patch and I think it is pretty awesome, I'd love to ...
6 years, 3 months ago (2014-09-17 09:35:03 UTC) #4
Ian Vollick
On 2014/09/17 09:35:03, mithro wrote: > Dana pointed out this patch and I think it ...
6 years, 3 months ago (2014-09-17 10:50:53 UTC) #5
awong
I also like this idea. Couple of tweaks. https://codereview.chromium.org/542893002/diff/40001/base/debug/trace_to_file.cc File base/debug/trace_to_file.cc (right): https://codereview.chromium.org/542893002/diff/40001/base/debug/trace_to_file.cc#newcode31 base/debug/trace_to_file.cc:31: // ...
6 years, 3 months ago (2014-09-17 16:03:53 UTC) #6
enne (OOO)
I also moved the files to base/test since it really only makes sense in test ...
6 years, 3 months ago (2014-09-24 23:01:58 UTC) #7
enne (OOO)
+willchan, since ajwong is on leave, apparently.
6 years, 3 months ago (2014-09-24 23:35:09 UTC) #9
enne (OOO)
Er, apparently willchan is also gone. thakis?
6 years, 3 months ago (2014-09-24 23:36:11 UTC) #10
Nico
I'm away starting tomorrow :-) Seems useful, lgtm. It depends on destructors running at test ...
6 years, 3 months ago (2014-09-24 23:47:30 UTC) #11
enne (OOO)
https://codereview.chromium.org/542893002/diff/120001/base/test/trace_to_file.cc File base/test/trace_to_file.cc (right): https://codereview.chromium.org/542893002/diff/120001/base/test/trace_to_file.cc#newcode43 base/test/trace_to_file.cc:43: LOG(ERROR) << "Start " << switches::kTraceToFile << " with ...
6 years, 3 months ago (2014-09-24 23:58:57 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/542893002/140001
6 years, 3 months ago (2014-09-25 00:00:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/12858)
6 years, 3 months ago (2014-09-25 00:45:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/542893002/160001
6 years, 3 months ago (2014-09-25 00:56:36 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/65344)
6 years, 3 months ago (2014-09-25 01:43:49 UTC) #20
mithro-old
On 2014/09/24 23:47:30, Nico (hiding) wrote: > I'm away starting tomorrow :-) > > Seems ...
6 years, 3 months ago (2014-09-25 01:47:01 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/542893002/180001
6 years, 2 months ago (2014-09-25 16:59:29 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/542893002/200001
6 years, 2 months ago (2014-09-25 17:06:35 UTC) #26
commit-bot: I haz the power
Committed patchset #11 (id:200001) as 0f64f38c8c6bf317dc39a6ef88551396904dfd9d
6 years, 2 months ago (2014-09-25 19:50:04 UTC) #27
commit-bot: I haz the power
6 years, 2 months ago (2014-09-25 19:50:41 UTC) #28
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/04213de5a22ff0f95a93584cde042133c358c184
Cr-Commit-Position: refs/heads/master@{#296770}

Powered by Google App Engine
This is Rietveld 408576698