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

Issue 1783953002: Add ability for embedder to provide private timeline trace data (Closed)

Created:
4 years, 9 months ago by Cutch
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add ability for embedder to provide private timeline trace data - Add three new embedder hooks registered with Dart_SetEmbedderTimelineCallbacks - Dart_EmbedderTimelineStartRecording - Dart_EmbedderTimelineStopRecording - Dart_EmbedderTimelineGetTimeline - Add unit test for record start / stop notification. - Add unit test for get timeline. This should allow Flutter to remove their hacked up timeline service RPCs. R=chinmaygarde@google.com, rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/53cae0aed917827e24e5ff5e267e2dae51610a36

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -12 lines) Patch
M runtime/include/dart_tools_api.h View 1 chunk +46 lines, -0 lines 2 comments Download
M runtime/vm/dart_api_impl.cc View 1 5 chunks +37 lines, -12 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 2 chunks +62 lines, -0 lines 0 comments Download
M runtime/vm/timeline.h View 2 chunks +34 lines, -0 lines 0 comments Download
M runtime/vm/timeline.cc View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Cutch
4 years, 9 months ago (2016-03-10 19:56:56 UTC) #3
Chinmay
On 2016/03/10 at 19:56:56, johnmccutchan wrote: > lgtm (not an owner though) Thanks!
4 years, 9 months ago (2016-03-10 20:04:35 UTC) #4
rmacnak
lgtm
4 years, 9 months ago (2016-03-10 20:39:21 UTC) #5
Cutch
Committed patchset #2 (id:20001) manually as 53cae0aed917827e24e5ff5e267e2dae51610a36 (presubmit successful).
4 years, 9 months ago (2016-03-10 21:30:35 UTC) #7
yjbanov
https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h File runtime/include/dart_tools_api.h (right): https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h#newcode1097 runtime/include/dart_tools_api.h:1097: * synchronously. I'm not sure Flutter's implementation can complete ...
4 years, 9 months ago (2016-03-10 22:45:16 UTC) #9
Bill Hesse
This CL is failing compilation on MacOS, due to the ordering of the exported function: ...
4 years, 9 months ago (2016-03-11 11:42:12 UTC) #11
siva
https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h File runtime/include/dart_tools_api.h (right): https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h#newcode1125 runtime/include/dart_tools_api.h:1125: Dart_EmbedderTimelineGetTimeline get_timeline); Does it make sense for any of ...
4 years, 9 months ago (2016-03-11 12:56:17 UTC) #13
Cutch
On 2016/03/11 11:42:12, Bill Hesse wrote: > This CL is failing compilation on MacOS, due ...
4 years, 9 months ago (2016-03-11 16:16:23 UTC) #14
Cutch
On 2016/03/11 12:56:17, siva wrote: > https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h > File runtime/include/dart_tools_api.h (right): > > https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h#newcode1125 > ...
4 years, 9 months ago (2016-03-11 16:17:59 UTC) #15
Cutch
On 2016/03/10 22:45:16, yjbanov wrote: > https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h > File runtime/include/dart_tools_api.h (right): > > https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_tools_api.h#newcode1097 > ...
4 years, 9 months ago (2016-03-11 16:19:53 UTC) #16
Chinmay
4 years, 9 months ago (2016-03-14 14:16:25 UTC) #17
Message was sent while issue was closed.
On 2016/03/11 at 16:19:53, johnmccutchan wrote:
> On 2016/03/10 22:45:16, yjbanov wrote:
> >
https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_to...
> > File runtime/include/dart_tools_api.h (right):
> > 
> >
https://codereview.chromium.org/1783953002/diff/20001/runtime/include/dart_to...
> > runtime/include/dart_tools_api.h:1097: * synchronously.
> > I'm not sure Flutter's implementation can complete synchronously. We need to
> > wait for the log file to be finalized some time after the call to
> > Dart_EmbedderTimelineStopRecording.
> 
> Chinmay- is this interface not sufficient for Flutter's needs? I was under the
impression it was.

I am pretty sure we can finalize log data synchronously (even if we have to
write to the log file from another thread and wait). I am going to attempt
wiring this up today.

Powered by Google App Engine
This is Rietveld 408576698