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

Issue 1279353002: [ETW Export] Add polling for ETW keyword. (Closed)

Created:
5 years, 4 months ago by Georges Khalil
Modified:
5 years, 4 months ago
Reviewers:
dsinclair, brucedawson
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, jam, asvitkine+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ETW Export] Add polling for ETW keyword. This adds a background low-priority thread for each process that monitors the keyword and adjusts the categories accordingly. This allows users to start profiling (using UIForETW or Xpef directly) and specify which categories to enable, without having to restart Chrome. Notes: - TraceEventETWExport is a friend of TraceLog (see comment in code). - ETW exporting still needs to be enabled using the command line or in about:flags. BUG=491909 Committed: https://crrev.com/3bd527974c0cea7b1e0e9965fa9e13823861ebb6 Cr-Commit-Position: refs/heads/master@{#343393}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : brucedawson@ comments. #

Total comments: 15

Patch Set 3 : dsinclair@ comments. #

Total comments: 1

Patch Set 4 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -12 lines) Patch
M base/trace_event/trace_event_etw_export_win.h View 1 4 chunks +15 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_etw_export_win.cc View 1 2 3 9 chunks +60 lines, -12 lines 0 comments Download
M base/trace_event/trace_log.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M base/trace_event/trace_log.cc View 1 2 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Georges Khalil
Bruce, PTAL. This is another approach to the same issue as in https://codereview.chromium.org/1213523003/
5 years, 4 months ago (2015-08-10 21:26:49 UTC) #4
brucedawson
Looks good. Since the thread only gets started when requested so there is no cost ...
5 years, 4 months ago (2015-08-10 23:47:15 UTC) #5
Georges Khalil
Thanks Bruce. Dan, PTAL. https://codereview.chromium.org/1279353002/diff/40001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1279353002/diff/40001/base/trace_event/trace_event_etw_export_win.cc#newcode187 base/trace_event/trace_event_etw_export_win.cc:187: if (GetInstance() && !GetInstance()->etw_export_enabled_) { ...
5 years, 4 months ago (2015-08-11 18:12:31 UTC) #7
brucedawson
lgtm
5 years, 4 months ago (2015-08-11 18:16:15 UTC) #8
dsinclair
https://codereview.chromium.org/1279353002/diff/60001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1279353002/diff/60001/base/trace_event/trace_event_etw_export_win.cc#newcode96 base/trace_event/trace_event_etw_export_win.cc:96: // thread that will monitor the ETW keyword for ...
5 years, 4 months ago (2015-08-11 19:33:14 UTC) #9
brucedawson
https://codereview.chromium.org/1279353002/diff/60001/base/trace_event/trace_event_etw_export_win.cc File base/trace_event/trace_event_etw_export_win.cc (right): https://codereview.chromium.org/1279353002/diff/60001/base/trace_event/trace_event_etw_export_win.cc#newcode207 base/trace_event/trace_event_etw_export_win.cc:207: } Currently this function is never called - there ...
5 years, 4 months ago (2015-08-11 20:24:02 UTC) #10
Georges Khalil
Dan, PTAnL. Biggest change is the new API in TraceLog that gets called by TraceEventETWExport ...
5 years, 4 months ago (2015-08-12 17:24:25 UTC) #13
dsinclair
I'm still hesitant about adding a thread that we never shutdown that will do nothing ...
5 years, 4 months ago (2015-08-13 19:03:17 UTC) #14
brucedawson
On 2015/08/13 19:03:17, dsinclair wrote: > I'm still hesitant about adding a thread that we ...
5 years, 4 months ago (2015-08-13 20:17:09 UTC) #15
dsinclair
lgtm w/ previous nit. Sounds fair enough to me.
5 years, 4 months ago (2015-08-14 13:43:45 UTC) #16
Georges Khalil
On 2015/08/14 13:43:45, dsinclair wrote: > lgtm w/ previous nit. > > Sounds fair enough ...
5 years, 4 months ago (2015-08-14 14:00:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1279353002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1279353002/140001
5 years, 4 months ago (2015-08-14 14:00:49 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:140001)
5 years, 4 months ago (2015-08-14 15:52:48 UTC) #21
commit-bot: I haz the power
5 years, 4 months ago (2015-08-14 15:53:29 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3bd527974c0cea7b1e0e9965fa9e13823861ebb6
Cr-Commit-Position: refs/heads/master@{#343393}

Powered by Google App Engine
This is Rietveld 408576698