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

Issue 979823003: Major rework of vm service events. (Closed)

Created:
5 years, 9 months ago by turnidge
Modified:
5 years, 9 months ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, Cutch, vm-dev_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Major rework of vm service events -------- VM Add a new ServiceEvent class in the vm. Rework the event type names. Add BreakpointAdded, BreakpointResolved, and BreakpointRemoved service events. Record the top frame for kIsolateInterrupted and kExceptionThrown debugger events. Send a top frame in more Pause* events. Send breakpoint list with the Isolate response. Remove the getBreakpoints method from the vm service. Move Resume events into debugger.cc. Rework MessageHandler a bit so that we can send PauseStart and PauseExit notifications. -------- Observatory Move some event handler from Application to Isolate. Rewrite breakpoint tracking code to use the new breakpoint events. Change run state tracking in Isolate. Change getFromMap so that it applies updates if the map isn't a ref. Use getFromMap instead of new ServiceObject in invokeRpc. This fixes some duplicate ServiceObject problems. Committed: https://code.google.com/p/dart/source/detail?r=44268

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : code review #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+662 lines, -418 lines) Patch
M runtime/observatory/lib/src/app/application.dart View 1 2 3 4 3 chunks +19 lines, -34 lines 0 comments Download
M runtime/observatory/lib/src/elements/debugger.dart View 1 2 3 4 5 13 chunks +61 lines, -61 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate_summary.dart View 1 chunk +0 lines, -20 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate_summary.html View 1 2 chunks +7 lines, -7 lines 0 comments Download
M runtime/observatory/lib/src/elements/script_inset.dart View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/script_inset.html View 1 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/elements/script_ref.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 4 27 chunks +199 lines, -136 lines 0 comments Download
M runtime/observatory/test/code_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/test/coverage_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/test/debugging_test.dart View 1 2 3 4 6 chunks +28 lines, -16 lines 0 comments Download
M runtime/observatory/test/eval_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/test/gc_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/test/graph_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/test/isolate_lifecycle_test.dart View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/observatory/test/source_location_test.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M runtime/vm/debugger.h View 1 4 chunks +8 lines, -9 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 13 chunks +36 lines, -45 lines 0 comments Download
M runtime/vm/debugger_test.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/isolate.cc View 5 chunks +40 lines, -18 lines 0 comments Download
M runtime/vm/json_stream.h View 5 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/json_stream.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/message_handler.h View 3 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/message_handler.cc View 3 chunks +13 lines, -3 lines 0 comments Download
M runtime/vm/service.h View 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/service.cc View 6 chunks +11 lines, -22 lines 0 comments Download
M runtime/vm/service/service.idl View 3 chunks +0 lines, -10 lines 0 comments Download
A runtime/vm/service_event.h View 1 chunk +91 lines, -0 lines 0 comments Download
A runtime/vm/service_event.cc View 1 chunk +103 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
turnidge
5 years, 9 months ago (2015-03-04 21:32:33 UTC) #2
Cutch
LGTMwC https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/elements/debugger.dart File runtime/observatory/lib/src/elements/debugger.dart (right): https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/elements/debugger.dart#newcode145 runtime/observatory/lib/src/elements/debugger.dart:145: if (event.eventType == 'PauseStart') { These event type ...
5 years, 9 months ago (2015-03-05 16:30:57 UTC) #3
turnidge
https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/elements/debugger.dart File runtime/observatory/lib/src/elements/debugger.dart (right): https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/elements/debugger.dart#newcode145 runtime/observatory/lib/src/elements/debugger.dart:145: if (event.eventType == 'PauseStart') { On 2015/03/05 16:30:57, Cutch ...
5 years, 9 months ago (2015-03-05 18:42:24 UTC) #4
turnidge
https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/service/object.dart File runtime/observatory/lib/src/service/object.dart (right): https://codereview.chromium.org/979823003/diff/60001/runtime/observatory/lib/src/service/object.dart#newcode1495 runtime/observatory/lib/src/service/object.dart:1495: assert(number == null || number == newNumber); On 2015/03/05 ...
5 years, 9 months ago (2015-03-05 18:43:14 UTC) #5
turnidge
5 years, 9 months ago (2015-03-05 19:03:43 UTC) #6
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as 44268 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698