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

Issue 1115023003: [Startup Tracing] The TraceConfig class [STALE] (Closed)

Created:
5 years, 7 months ago by Zhen Wang
Modified:
5 years, 6 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, fmeawad, shatch, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Startup Tracing] The TraceConfig class This is the first step to implement startup tracing. This CL implements the TraceConfig class, which combines CategoryFilter and TraceOptions. It preserves all the old signatures. The implementation of CategoryFilter is now based on TraceConfig. Startup tracing design doc: https://docs.google.com/document/d/1yRCXhrQ-0rsfUgNHt9T4YdnmJYrXKN6aK56Ozk3kPVc/edit?usp=sharing TraceConfig class design doc: https://docs.google.com/document/d/1zwc6FdeYyrC7m9fC4jJqbkqpB0il9NV-MWH7lEnL0cc/edit?usp=sharing trace-config file format doc: https://docs.google.com/document/d/1auY0Buk-R2tGCzpHJzFgyTfngXTAK0mlxJc6J4M_CK4/edit?usp=sharing BUG=317481, 482098

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : implement CategoryFilter with TraceConfig #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 61

Patch Set 7 : review fix #

Total comments: 6

Patch Set 8 : review fix #

Patch Set 9 : add test for GetSyntheticDelayValues #

Total comments: 15

Patch Set 10 : rebase #

Patch Set 11 : review fix and add a separate trace_config file #

Patch Set 12 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1390 lines, -625 lines) Patch
A base/trace_event/trace_config.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +260 lines, -0 lines 2 comments Download
A base/trace_event/trace_config.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +595 lines, -0 lines 0 comments Download
A base/trace_event/trace_config_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +530 lines, -0 lines 0 comments Download
M base/trace_event/trace_event.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M base/trace_event/trace_event.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
M base/trace_event/trace_event_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -148 lines 0 comments Download
M base/trace_event/trace_event_impl.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +0 lines, -300 lines 0 comments Download
M base/trace_event/trace_event_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -177 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
Zhen Wang
ptal. By the way, this CL does not use SyntheticDelayRule mentioned in the TraceConfig design ...
5 years, 7 months ago (2015-05-06 00:01:49 UTC) #2
Zhen Wang
ping
5 years, 7 months ago (2015-05-08 17:15:07 UTC) #3
nduca
this lgtm but can you have dsinclair or wangxianzhu review it exhaustively? i hope a ...
5 years, 7 months ago (2015-05-08 17:25:35 UTC) #4
sullivan
Ned, can you also review?
5 years, 7 months ago (2015-05-08 17:29:53 UTC) #6
dsinclair
https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc#newcode2738 base/trace_event/trace_event_impl.cc:2738: void TraceConfig::Initialize(const std::string& config_string) { Can you move this ...
5 years, 7 months ago (2015-05-08 17:44:50 UTC) #9
dsinclair
5 years, 7 months ago (2015-05-08 17:44:51 UTC) #10
Zhen Wang
+nednguyen@ for review Yes. The next step is to remove category filter and trace options, ...
5 years, 7 months ago (2015-05-08 17:59:31 UTC) #12
nednguyen
On 2015/05/08 17:59:31, Zhen Wang wrote: > +nednguyen@ for review > > Yes. The next ...
5 years, 7 months ago (2015-05-08 18:27:49 UTC) #13
dsinclair
On 2015/05/08 at 18:27:49, nednguyen wrote: > On 2015/05/08 17:59:31, Zhen Wang wrote: > > ...
5 years, 7 months ago (2015-05-08 18:30:04 UTC) #14
nednguyen
On 2015/05/08 18:30:04, (OOO until May 19th) dsinclair wrote: > On 2015/05/08 at 18:27:49, nednguyen ...
5 years, 7 months ago (2015-05-08 18:47:00 UTC) #15
dsinclair
On 2015/05/08 at 18:47:00, nednguyen wrote: > If that's our stance on backward compatibility, we ...
5 years, 7 months ago (2015-05-08 18:52:45 UTC) #16
nednguyen
https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc#newcode2518 base/trace_event/trace_event_impl.cc:2518: StringTokenizer tokens(category_filter_string, ","); nits: you want to be consistent ...
5 years, 7 months ago (2015-05-11 17:59:29 UTC) #18
Zhen Wang
CL updated according to the review comments. ptal. https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc File base/trace_event/trace_event_impl.cc (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.cc#newcode2518 base/trace_event/trace_event_impl.cc:2518: StringTokenizer ...
5 years, 7 months ago (2015-05-13 00:01:12 UTC) #19
nednguyen
https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h File base/trace_event/trace_event_impl.h (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h#newcode363 base/trace_event/trace_event_impl.h:363: scoped_ptr<TraceConfig> config_; On 2015/05/13 00:01:11, Zhen Wang wrote: > ...
5 years, 7 months ago (2015-05-13 18:16:32 UTC) #20
Zhen Wang
https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h File base/trace_event/trace_event_impl.h (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h#newcode363 base/trace_event/trace_event_impl.h:363: scoped_ptr<TraceConfig> config_; On 2015/05/13 18:16:31, nednguyen (slow review) wrote: ...
5 years, 7 months ago (2015-05-13 20:59:17 UTC) #21
nednguyen
On 2015/05/13 20:59:17, Zhen Wang wrote: > https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h > File base/trace_event/trace_event_impl.h (right): > > https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h#newcode363 ...
5 years, 7 months ago (2015-05-13 21:16:20 UTC) #22
Zhen Wang
On 2015/05/13 21:16:20, nednguyen (slow review) wrote: > Sorry for not making it clear, my ...
5 years, 7 months ago (2015-05-13 21:35:09 UTC) #23
nednguyen
lgtm on my part. Please wait for Dan's stamp.
5 years, 7 months ago (2015-05-13 21:38:02 UTC) #24
Zhen Wang
Egor and I have been discussing the security issues related to the JSON reader and ...
5 years, 7 months ago (2015-05-19 15:53:43 UTC) #25
nednguyen
On 2015/05/19 15:53:43, Zhen Wang wrote: > Egor and I have been discussing the security ...
5 years, 7 months ago (2015-05-19 22:02:07 UTC) #26
oystein (OOO til 10th of July)
On 2015/05/19 22:02:07, nednguyen wrote: > On 2015/05/19 15:53:43, Zhen Wang wrote: > > Egor ...
5 years, 7 months ago (2015-05-19 22:11:28 UTC) #27
dsinclair
nduca@ thoughs on the safeJSON stuff? https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h File base/trace_event/trace_event_impl.h (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h#newcode452 base/trace_event/trace_event_impl.h:452: TraceConfig& operator=(const TraceConfig& ...
5 years, 7 months ago (2015-05-21 13:42:08 UTC) #28
Zhen Wang
https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h File base/trace_event/trace_event_impl.h (right): https://codereview.chromium.org/1115023003/diff/100001/base/trace_event/trace_event_impl.h#newcode452 base/trace_event/trace_event_impl.h:452: TraceConfig& operator=(const TraceConfig& rhs); On 2015/05/21 13:42:07, dsinclair wrote: ...
5 years, 7 months ago (2015-05-22 23:38:05 UTC) #29
dsinclair
This is getting difficult to review, can we split this up into several CLs. 1- ...
5 years, 7 months ago (2015-05-25 13:36:02 UTC) #30
Zhen Wang
5 years, 7 months ago (2015-05-26 03:45:24 UTC) #31
On 2015/05/25 13:36:02, dsinclair wrote:
> This is getting difficult to review, can we split this up into several CLs.
> 
> 1- Move current CategoryFilter and TraceOptions to new file.
> 2- Create TraceConfig but don't use it anywhere
> 3- Hookup TraceConfig and remove CategoryFilter and TraceOptions.
> 
> Something along those lines? It's difficult to tell what's new code and what's
> moved code at this point.

Sure. I created a separate CL to split this. Please see
https://codereview.chromium.org/1154133003/

Powered by Google App Engine
This is Rietveld 408576698