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

Issue 2307163002: [Tracing] Expose trace serialization as part of tracing interface (Closed)

Created:
4 years, 3 months ago by kelvinjin
Modified:
4 years ago
Reviewers:
mattloring, lpy, fmeawad
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Tracing] Expose trace serialization as part of tracing interface This change adds a new TraceSerializer class to the V8 tracing interface. Previously, this was a private implementation detail in the JSONTraceWriter class. In addition, escape sequences may now be written to a trace file (previously, any string with a valid escapable character would fail a check). BUG=v8:4561

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -143 lines) Patch
M BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M include/libplatform/v8-tracing.h View 1 chunk +14 lines, -0 lines 0 comments Download
A + src/libplatform/tracing/trace-serializer.cc View 5 chunks +49 lines, -23 lines 0 comments Download
M src/libplatform/tracing/trace-writer.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/libplatform/tracing/trace-writer.cc View 1 chunk +5 lines, -104 lines 0 comments Download
M src/v8.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/libplatform/test-tracing.cc View 4 chunks +8 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
kelvinjin
On 2016/09/02 22:30:55, kelvinjin wrote: > mailto:kelvinjin@google.com changed reviewers: > + mailto:fmeawad@chromium.org, mailto:lpy@chromium.org, mailto:mattloring@google.com Please ...
4 years, 3 months ago (2016-09-02 22:32:08 UTC) #3
lpy
Why do we need to expose a TraceSerializer?
4 years, 3 months ago (2016-09-02 23:39:41 UTC) #8
kelvinjin
On 2016/09/02 23:39:41, lpy wrote: > Why do we need to expose a TraceSerializer? node.js ...
4 years, 3 months ago (2016-09-03 00:04:35 UTC) #9
mattloring
On 2016/09/03 00:04:35, kelvinjin wrote: > On 2016/09/02 23:39:41, lpy wrote: > > Why do ...
4 years, 3 months ago (2016-09-03 19:30:24 UTC) #10
lpy
On 2016/09/03 19:30:24, mattloring wrote: > On 2016/09/03 00:04:35, kelvinjin wrote: > > On 2016/09/02 ...
4 years ago (2016-12-08 19:41:41 UTC) #11
kelvinjin
4 years ago (2016-12-08 22:12:16 UTC) #12
On 2016/12/08 19:41:41, lpy wrote:
> On 2016/09/03 19:30:24, mattloring wrote:
> > On 2016/09/03 00:04:35, kelvinjin wrote:
> > > On 2016/09/02 23:39:41, lpy wrote:
> > > > Why do we need to expose a TraceSerializer?
> > > 
> > > node.js has a near-duplicate of the code in JSONTraceWriter, and it would
be
> > > good for it to use this code instead of its own copy of it, since it
> > (naturally)
> > > uses the same output trace format.
> > 
> > This will simplify things on the node side as long as the V8 team is alright
> > with the additional API surface. Originally we decided that it was small
> enough
> > to duplicate but it would be nice to avoid parallel updates. Exposing the
> > serializer separately will also reduce the overhead for node users who want
to
> > plug in alternative serialization formats and allow the default writer to
> handle
> > all of the libuv specific file operations regardless of output format.
> 
> Is this patch still valid?

No, it's been superseded completely by
https://codereview.chromium.org/2309943005 which is already checked in...
closing. Thanks for the reminder!

Powered by Google App Engine
This is Rietveld 408576698