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

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

Created:
5 years, 6 months ago by Georges Khalil
Modified:
5 years, 4 months ago
Reviewers:
brucedawson
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, erikwright+watch_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. Couple of notes: - TraceEventETWExport is a friend of TraceLog (see comment in code). - Restored the original implementation of IsETWExportEnabled (needed until command line flag is removed). Also moved body to cc for consistency (and rearranged order of functions) - The timer for now is also behind the command line flag. But eventually, when it's activated by default, I'm worried about power usage, as this will force the CPU to wake up once a sec. BUG=491909

Patch Set 1 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -17 lines) Patch
M base/trace_event/trace_event_etw_export_win.h View 5 chunks +17 lines, -4 lines 0 comments Download
M base/trace_event/trace_event_etw_export_win.cc View 6 chunks +42 lines, -13 lines 1 comment Download
M base/trace_event/trace_event_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 2 chunks +7 lines, -0 lines 1 comment Download

Messages

Total messages: 8 (4 generated)
Georges Khalil
Bruce, PTAL.
5 years, 6 months ago (2015-06-26 21:47:48 UTC) #5
brucedawson
Two comments... https://codereview.chromium.org/1213523003/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/1213523003/diff/60001/base/trace_event/trace_event_etw_export_win.cc#newcode178 base/trace_event/trace_event_etw_export_win.cc:178: return (GetInstance() && GetInstance()->etw_export_enabled_); If you move ...
5 years, 6 months ago (2015-06-26 22:24:24 UTC) #6
brucedawson
I'd like to request/recommend that you land this change behind the --trace-export-events-to-etw flag. That is, ...
5 years, 4 months ago (2015-08-07 20:28:56 UTC) #7
Georges Khalil
5 years, 4 months ago (2015-08-10 21:27:30 UTC) #8
On 2015/08/07 20:28:56, brucedawson wrote:
> I'd like to request/recommend that you land this change behind the
> --trace-export-events-to-etw flag. That is, if this flag is specified then
check
> the CHROME_Context.MatchAnyKeyword value once a second in every Chrome
process.
> 
> This isn't ideal, since it still requires that users add a command-line flag
in
> order to get these events, but it would get rid of a significant source of
error
> and weirdness. Right now users have to add the command-line flag *and* they
need
> to ensure that tracing is running when Chrome launches *and* they can't change
> the categories without relaunching Chrome. It's very confusing.
> 
> Doing away with the flag completely can be done at some later point.
> 
> I realized how annoying the lack of any polling ability is while I was telling
a
> user how to record an ETW trace with Chrome events in it, and *I* was getting
> confused by the steps involved.

Closing this. New approach in https://codereview.chromium.org/1279353002/

Powered by Google App Engine
This is Rietveld 408576698