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

Issue 14474006: Add a command line flag for dumping trace events to VLOG (Closed)

Created:
7 years, 8 months ago by Ian Vollick
Modified:
7 years, 7 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, erikwright+watch_chromium.org, enne (OOO), danakj, jamesr
Visibility:
Public.

Description

Add a command line flag for dumping trace events to VLOG Only affects cc_unittests at the moment. BUG=None R=danakj@chromium.org, jar@chromium.org, nduca@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197024

Patch Set 1 #

Patch Set 2 : "Now beautiful" #

Total comments: 6

Patch Set 3 : . #

Patch Set 4 : . #

Total comments: 3

Patch Set 5 : Don't even bother storing trace events when echoing. #

Patch Set 6 : . #

Patch Set 7 : Use VLOG rather than stderr #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -3 lines) Patch
M base/debug/trace_event_impl.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -1 line 0 comments Download
M base/debug/trace_event_impl.cc View 1 2 3 4 5 6 7 5 chunks +64 lines, -0 lines 0 comments Download
M cc/base/switches.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M cc/test/cc_test_suite.cc View 1 2 3 4 5 6 7 2 chunks +25 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Ian Vollick
7 years, 8 months ago (2013-04-24 16:12:24 UTC) #1
Ian Vollick
On 2013/04/24 16:12:24, vollick wrote: Actually, please hold off on reviewing this, Nat. I'm going ...
7 years, 8 months ago (2013-04-24 16:15:08 UTC) #2
Ian Vollick
Nat, I think this is ready. PTAL. It's quite pretty. If you run with --cc-unittests-trace-events-to-stderr ...
7 years, 8 months ago (2013-04-24 18:33:40 UTC) #3
danakj
cc/ LGTM with a couple nits https://codereview.chromium.org/14474006/diff/3001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/14474006/diff/3001/cc/base/switches.cc#newcode144 cc/base/switches.cc:144: // Trace events ...
7 years, 8 months ago (2013-04-24 20:07:41 UTC) #4
danakj
https://codereview.chromium.org/14474006/diff/3001/base/debug/trace_event_impl.h File base/debug/trace_event_impl.h (right): https://codereview.chromium.org/14474006/diff/3001/base/debug/trace_event_impl.h#newcode521 base/debug/trace_event_impl.h:521: base::hash_map<int, std::vector<TimeTicks> > thread_event_start_times_; I think you're looking for ...
7 years, 8 months ago (2013-04-24 20:10:12 UTC) #5
jbates1
Only concern I have would be performance. It looks heavy. Otherwise, leaving it up to ...
7 years, 8 months ago (2013-04-24 21:10:51 UTC) #6
Ian Vollick
Dana, thanks for the reviews! John, you're right -- this will incur some overhead, but ...
7 years, 8 months ago (2013-04-24 22:57:11 UTC) #7
Ian Vollick
+jar for base/ OWNERS
7 years, 8 months ago (2013-04-25 01:15:07 UTC) #8
jar (doing other things)
lgtm https://codereview.chromium.org/14474006/diff/8001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/14474006/diff/8001/base/debug/trace_event_impl.cc#newcode1135 base/debug/trace_event_impl.cc:1135: thread_event_start_times_.end()) nit: undent-2 spaces. You only need to ...
7 years, 8 months ago (2013-04-25 02:14:06 UTC) #9
nduca
any reason to make this a cc option rather than something else? And, why enable ...
7 years, 8 months ago (2013-04-25 02:32:35 UTC) #10
Ian Vollick
On 2013/04/25 02:32:35, nduca wrote: > any reason to make this a cc option rather ...
7 years, 8 months ago (2013-04-25 04:11:54 UTC) #11
Ian Vollick
jamesr pointed out that VLOG is probably better than stderr. I've updated the patch accordingly. ...
7 years, 8 months ago (2013-04-26 01:21:29 UTC) #12
nduca
LGTM
7 years, 7 months ago (2013-04-26 17:43:36 UTC) #13
nduca
You should email parts of the internet when you land this :)
7 years, 7 months ago (2013-04-26 17:44:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/14474006/21001
7 years, 7 months ago (2013-04-26 18:58:15 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-04-26 19:21:55 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vollick@chromium.org/14474006/21001
7 years, 7 months ago (2013-04-26 19:25:36 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 7 months ago (2013-04-26 19:32:01 UTC) #18
Ian Vollick
7 years, 7 months ago (2013-04-29 13:37:54 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 manually as r197024 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698