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

Issue 1170503004: Initial Timeline Events (Closed)

Created:
5 years, 6 months ago by Cutch
Modified:
5 years, 6 months ago
Reviewers:
rmacnak, siva
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

Initial Timeline Events - Each isolate has its own TimelineEventBuffer - Each isolate has TimelineEventStreams for API, Compiler, Embedder, Isolate, and GC - Compiler, Isolate, Embedder, and GC are being inserted into the stream - Basic unit tests - Dart API for injecting timeline events - Arbitrary number of native and Dart arguments can be attached to each event - JSON printing - Output can be loaded by about://tracing - Add --timeline-trace-dir flag Short term follow up CLS: - Service protocol requests to enable / disable tracing and retrieve a trace - UI for Observatory - Dart code EventStreams and Events R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/c7187924a95238027624d2441f17c38ae49395f4

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 36

Patch Set 11 : #

Total comments: 14

Patch Set 12 : #

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1277 lines, -6 lines) Patch
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +9 lines, -1 line 0 comments Download
M runtime/bin/isolate_data.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +74 lines, -0 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -2 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +100 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +73 lines, -0 lines 0 comments Download
M runtime/vm/deopt_instructions.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +33 lines, -0 lines 0 comments Download
M runtime/vm/heap.cc View 1 2 3 4 5 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 5 chunks +23 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +43 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 6 chunks +11 lines, -1 line 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/service_isolate.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A runtime/vm/timeline.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +276 lines, -0 lines 0 comments Download
A runtime/vm/timeline.cc View 1 2 3 4 5 6 7 8 9 1 chunk +443 lines, -0 lines 0 comments Download
A runtime/vm/timeline_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +136 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (1 generated)
Cutch
PTAL https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/isolate.cc#newcode1407 runtime/vm/isolate.cc:1407: if (timeline_event_buffer_ != NULL) { Temporary
5 years, 6 months ago (2015-06-05 20:18:43 UTC) #2
rmacnak
https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/timeline.cc File runtime/vm/timeline.cc (right): https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/timeline.cc#newcode91 runtime/vm/timeline.cc:91: obj.AddProperty("ph", "X"); ph? https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc#newcode1074 runtime/vm/compiler.cc:1074: ...
5 years, 6 months ago (2015-06-05 21:22:58 UTC) #3
Cutch
https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/timeline.cc File runtime/vm/timeline.cc (right): https://codereview.chromium.org/1170503004/diff/20001/runtime/vm/timeline.cc#newcode91 runtime/vm/timeline.cc:91: obj.AddProperty("ph", "X"); On 2015/06/05 21:22:58, rmacnak wrote: > ph? ...
5 years, 6 months ago (2015-06-05 21:34:43 UTC) #4
rmacnak
If I patch this in, I see runtime/vm/virtual_memory_linux.cc:50: error: munmap failed [New Thread 0xf72f0b40 (LWP ...
5 years, 6 months ago (2015-06-08 22:11:30 UTC) #5
siva
https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc#newcode1122 runtime/vm/compiler.cc:1122: "CompileOptimizedFunction"); VMTagScope and TimelineDurationScope seem to always show up ...
5 years, 6 months ago (2015-06-09 22:37:57 UTC) #6
Cutch
PTAL https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://codereview.chromium.org/1170503004/diff/40001/runtime/vm/compiler.cc#newcode1122 runtime/vm/compiler.cc:1122: "CompileOptimizedFunction"); On 2015/06/09 22:37:56, siva wrote: > VMTagScope ...
5 years, 6 months ago (2015-06-10 18:20:57 UTC) #7
rmacnak
https://codereview.chromium.org/1170503004/diff/100001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1170503004/diff/100001/runtime/include/dart_api.h#newcode2965 runtime/include/dart_api.h:2965: * NOTE: On Posix platforms this call uses gettimeofday ...
5 years, 6 months ago (2015-06-10 20:25:15 UTC) #8
Cutch
https://codereview.chromium.org/1170503004/diff/100001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1170503004/diff/100001/runtime/include/dart_api.h#newcode2965 runtime/include/dart_api.h:2965: * NOTE: On Posix platforms this call uses gettimeofday ...
5 years, 6 months ago (2015-06-10 21:20:58 UTC) #9
siva
https://codereview.chromium.org/1170503004/diff/170001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1170503004/diff/170001/runtime/include/dart_api.h#newcode2918 runtime/include/dart_api.h:2918: * this call uses GetSystemTimeAsFileTime to get the current ...
5 years, 6 months ago (2015-06-12 19:50:35 UTC) #10
Cutch
PTAL https://codereview.chromium.org/1170503004/diff/170001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1170503004/diff/170001/runtime/include/dart_api.h#newcode2918 runtime/include/dart_api.h:2918: * this call uses GetSystemTimeAsFileTime to get the ...
5 years, 6 months ago (2015-06-12 23:18:56 UTC) #11
siva
lgtm https://codereview.chromium.org/1170503004/diff/190001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/1170503004/diff/190001/runtime/vm/dart_api_impl.cc#newcode5718 runtime/vm/dart_api_impl.cc:5718: } Instead of FATALing out here maybe you ...
5 years, 6 months ago (2015-06-16 15:42:32 UTC) #12
Cutch
https://codereview.chromium.org/1170503004/diff/190001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/1170503004/diff/190001/runtime/vm/dart_api_impl.cc#newcode5718 runtime/vm/dart_api_impl.cc:5718: } On 2015/06/16 15:42:31, siva wrote: > Instead of ...
5 years, 6 months ago (2015-06-16 17:08:18 UTC) #13
Cutch
5 years, 6 months ago (2015-06-16 17:10:20 UTC) #14
Message was sent while issue was closed.
Committed patchset #13 (id:230001) manually as
c7187924a95238027624d2441f17c38ae49395f4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698