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

Issue 1386193002: Stop using the TRACE_EVENT_*_ETW macros. (Closed)

Created:
5 years, 2 months ago by fdoray
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, rickyz+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop using the TRACE_EVENT_*_ETW macros. All tracing macros can now export events to ETW (see TraceEventETWExport). Therefore, there is no reason to keep using the old TRACE_EVENT_*_ETW macros. The tracing infrastructure doesn't expect synchronous events around the main loop of a thread. For this reason, the TRACE_EVENT_*_ETW macros have been replaced by TRACE_EVENT_ASYNC_* macros instead of simple TRACE_EVENT* macros in some cases. Once this patch has landed, the TRACE_EVENT_*ETW macros will be removed (https://codereview.chromium.org/1376793004/) BUG=#1263 BUG=489720 Committed: https://crrev.com/f6d86240c1fcab19d205d6531c860cda02bf537a Cr-Commit-Position: refs/heads/master@{#353076}

Patch Set 1 #

Total comments: 3

Patch Set 2 : address comments #5-6 #

Patch Set 3 : self-review (fix a comment) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -22 lines) Patch
M base/trace_event/trace_event_etw_export_win.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_main.cc View 1 2 2 chunks +19 lines, -3 lines 0 comments Download
M content/browser/browser_main_loop.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/sandbox_win.cc View 1 3 chunks +5 lines, -7 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +1 line, -3 lines 2 comments Download
M content/renderer/renderer_main.cc View 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
fdoray
Could you review this CL? Thanks.
5 years, 2 months ago (2015-10-06 19:41:18 UTC) #2
cpu_(ooo_6.6-7.5)
I can rubberstamp, but I let bruce do the actual review.
5 years, 2 months ago (2015-10-06 20:18:30 UTC) #4
beaudoin
https://codereview.chromium.org/1386193002/diff/1/content/browser/browser_main.cc File content/browser/browser_main.cc (right): https://codereview.chromium.org/1386193002/diff/1/content/browser/browser_main.cc#newcode33 content/browser/browser_main.cc:33: TRACE_EVENT_ASYNC_END0("startup", "BrowserMain", 0); There's a "return" a couple of ...
5 years, 2 months ago (2015-10-06 20:57:38 UTC) #5
brucedawson
While it is true that all tracing events can be emitted as ETW events, this ...
5 years, 2 months ago (2015-10-07 00:42:57 UTC) #6
fdoray
Could you take another look? Thanks. I added "startup" to kFilteredEventGroupNames as recommended by brucedawson@. ...
5 years, 2 months ago (2015-10-07 15:46:49 UTC) #7
brucedawson
One question, but lgtm. https://codereview.chromium.org/1386193002/diff/40001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/1386193002/diff/40001/content/renderer/render_thread_impl.cc#oldcode765 content/renderer/render_thread_impl.cc:765: TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, ""); Why is ...
5 years, 2 months ago (2015-10-07 19:04:23 UTC) #8
cpu_(ooo_6.6-7.5)
lgtm on my side.
5 years, 2 months ago (2015-10-07 20:26:57 UTC) #9
fdoray
https://codereview.chromium.org/1386193002/diff/40001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (left): https://codereview.chromium.org/1386193002/diff/40001/content/renderer/render_thread_impl.cc#oldcode765 content/renderer/render_thread_impl.cc:765: TRACE_EVENT_END_ETW("RenderThreadImpl::Init", 0, ""); On 2015/10/07 19:04:23, brucedawson wrote: > ...
5 years, 2 months ago (2015-10-08 15:38:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1386193002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1386193002/40001
5 years, 2 months ago (2015-10-08 15:41:16 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-08 16:50:04 UTC) #13
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 16:50:44 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f6d86240c1fcab19d205d6531c860cda02bf537a
Cr-Commit-Position: refs/heads/master@{#353076}

Powered by Google App Engine
This is Rietveld 408576698