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

Issue 19642005: Make TracedValue lower overhead.

Created:
7 years, 5 months ago by rterrazas
Modified:
6 years, 6 months ago
Reviewers:
ernstm1
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Make TracedValue lower overhead. Basic API support to make ConvertableToTraceFormat objects lower overhead by writing/reading from a Pickle, instead of base::Value objects. BUG=trace-viewer:206 R=dsinclair, nduca

Patch Set 1 #

Patch Set 2 : Fixed lint errors. #

Total comments: 62

Patch Set 3 : Keys written as raw pointer to pickle, cleaned up JSON generation, incorporated base::Value objects… #

Patch Set 4 : Added pickle unit test, cleaned up traced value's unit tests. #

Total comments: 32

Patch Set 5 : #

Total comments: 4

Patch Set 6 : Validations for dictionary entries, CR comments, and additional check before writting. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+794 lines, -25 lines) Patch
M base/base.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A base/debug/trace_event_object.h View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download
A base/debug/trace_event_value.h View 1 2 3 4 5 1 chunk +160 lines, -0 lines 1 comment Download
A base/debug/trace_event_value.cc View 1 2 3 4 5 1 chunk +315 lines, -0 lines 2 comments Download
A base/debug/trace_event_value_unittest.cc View 1 2 3 4 1 chunk +239 lines, -0 lines 0 comments Download
M base/json/json_writer.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/json/json_writer.cc View 1 2 2 chunks +30 lines, -25 lines 0 comments Download
M base/pickle.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M base/pickle.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/pickle_unittest.cc View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rterrazas
https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.h File base/trace_event_value.h (right): https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.h#newcode18 base/trace_event_value.h:18: #define STATIC_STR(value) value, sizeof(value) I don't like this (Because ...
7 years, 5 months ago (2013-07-21 22:23:49 UTC) #1
nduca
+ernstm
7 years, 5 months ago (2013-07-23 04:49:01 UTC) #2
nduca
some initial feedback. https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.h File base/trace_event_value.h (right): https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.h#newcode33 base/trace_event_value.h:33: void BeginDictionary(const char* key_in_parent_dict, int size_of_key); ...
7 years, 5 months ago (2013-07-23 04:54:04 UTC) #3
dsinclair
https://codereview.chromium.org/19642005/diff/5001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/19642005/diff/5001/base/base.gypi#newcode584 base/base.gypi:584: 'traced_object.h', nit: indenting https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.cc File base/trace_event_value.cc (right): https://codereview.chromium.org/19642005/diff/5001/base/trace_event_value.cc#newcode10 base/trace_event_value.cc:10: ...
7 years, 5 months ago (2013-07-23 14:56:29 UTC) #4
nduca
seems like we should be able to avoid the comma as an opcode. The data ...
7 years, 5 months ago (2013-07-23 18:02:36 UTC) #5
nduca
i think we may want to avoid the Dan's idea of returning tracedvaleus as a ...
7 years, 5 months ago (2013-07-23 18:17:55 UTC) #6
rterrazas
https://codereview.chromium.org/19642005/diff/5001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/19642005/diff/5001/base/base.gypi#newcode584 base/base.gypi:584: 'traced_object.h', On 2013/07/23 14:56:29, dsinclair wrote: > nit: indenting ...
7 years, 4 months ago (2013-08-01 08:01:26 UTC) #7
rterrazas
On 2013/07/23 18:17:55, nduca wrote: > i think we may want to avoid the Dan's ...
7 years, 4 months ago (2013-08-02 17:46:32 UTC) #8
rterrazas
https://codereview.chromium.org/19642005/diff/21001/base/debug/trace_event_value.h File base/debug/trace_event_value.h (right): https://codereview.chromium.org/19642005/diff/21001/base/debug/trace_event_value.h#newcode47 base/debug/trace_event_value.h:47: #define TRACE_PUSH(type) \ Linter think's we're using a C-style ...
7 years, 4 months ago (2013-08-05 02:58:29 UTC) #9
dsinclair
https://codereview.chromium.org/19642005/diff/21001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/19642005/diff/21001/base/base.gypi#newcode155 base/base.gypi:155: 'debug/traced_object.h', Can we rename this to debug/trace_event_object.h ? Or ...
7 years, 4 months ago (2013-08-07 15:40:20 UTC) #10
rterrazas
https://codereview.chromium.org/19642005/diff/21001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/19642005/diff/21001/base/base.gypi#newcode155 base/base.gypi:155: 'debug/traced_object.h', On 2013/08/07 15:40:20, dsinclair wrote: > Can we ...
7 years, 4 months ago (2013-08-08 06:21:30 UTC) #11
dsinclair
https://codereview.chromium.org/19642005/diff/21001/base/debug/trace_event_value.cc File base/debug/trace_event_value.cc (right): https://codereview.chromium.org/19642005/diff/21001/base/debug/trace_event_value.cc#newcode116 base/debug/trace_event_value.cc:116: begin_opcodes_.push(BEGIN_DICTIONARY); On 2013/08/08 06:21:30, rterrazas wrote: > On 2013/08/07 ...
7 years, 4 months ago (2013-08-08 14:07:28 UTC) #12
rterrazas
> I think you're going to need a third type on your begin list. I ...
7 years, 4 months ago (2013-08-08 19:05:10 UTC) #13
rterrazas
https://codereview.chromium.org/19642005/diff/37001/base/debug/trace_event_value.cc File base/debug/trace_event_value.cc (right): https://codereview.chromium.org/19642005/diff/37001/base/debug/trace_event_value.cc#newcode113 base/debug/trace_event_value.cc:113: // Named dictionaries are properties of dictionaries, the name ...
7 years, 4 months ago (2013-08-11 21:05:08 UTC) #14
dsinclair
This is looking good to me. Did you get a chance to try out nduca's ...
7 years, 4 months ago (2013-08-12 13:34:40 UTC) #15
rterrazas
7 years, 4 months ago (2013-08-13 03:53:07 UTC) #16
On 2013/08/12 13:34:40, dsinclair wrote:
> This is looking good to me. Did you get a chance to try out nduca's Trait
idea?
> 
Nice!, I had a chance to read about that a bit yesterday, thought I still
haven't experimented with it. This and allowing primitive values as sole values
of TracedObjects (or whatever concept replaces it) is next on my list for this.

Powered by Google App Engine
This is Rietveld 408576698