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

Issue 1007863003: Allow Observatory debugger to switch isolates. (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

Allow Observatory debugger to switch isolates. - Add the "isolate" command which allows the user to switch isolate by name or number. Supports completion. - Add the "isolate name" command which allows the user to rename an isolate. Add the "setName" method to the service protocol to support this. Isolates now have a debugger_name() in the vm. - The new IsolateUpdate event notifies the client when an isolate name changes. - When an isolate is updated, update the page's isolate too, so the navbar is accurate. - Update isolate summary to display isolate number. - Rework how the isolate's name is computed because we were getting garbagey names in the IsolateStart event (SpawnState was not yet set). - Make sure that the debugger doesn't subscribe to events multiple times. - "info isolates" is now "isolate list". - Rework reporting of vm and isolate startTime in the service protocol and in Observatory. - Fix bug in command completion when subcommands and other completions share common prefixes. - Rework isolate accounting in the VM object in Observatory. We now create Isolates in getFromMap rather than from IsolateStart events, per se. Rewrite the isolate updating code. - IsolateStart and IsolateExit events are now owned by the Isolate itself, rather than the vm. - Return the actual result in pause/resume/etc. - Add assertion in JSONStream::PrintProperty64 that the result fits in a javascript double. Sigh. - Stop sending GC events for the service isolate. Add assertions to guard against this happening in the future. - Misc improvements in error reporting. Committed: https://code.google.com/p/dart/source/detail?r=44718

Patch Set 1 #

Total comments: 10

Patch Set 2 : code review #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -214 lines) Patch
M runtime/observatory/lib/src/app/application.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 4 chunks +10 lines, -8 lines 0 comments Download
M runtime/observatory/lib/src/cli/command.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/debugger/debugger.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/debugger.dart View 13 chunks +190 lines, -42 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate_summary.html View 1 chunk +4 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/isolate_view.html View 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/vm_view.html View 3 chunks +10 lines, -6 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 22 chunks +90 lines, -121 lines 0 comments Download
M runtime/observatory/test/isolate_lifecycle_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/platform/utils.h View 1 1 chunk +13 lines, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 7 chunks +17 lines, -14 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 chunks +2 lines, -9 lines 0 comments Download
M runtime/vm/service.cc View 1 6 chunks +30 lines, -8 lines 0 comments Download
M runtime/vm/service_event.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/service_event.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/service_test.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
turnidge
5 years, 9 months ago (2015-03-18 18:29:49 UTC) #2
Cutch
LGTMwC https://codereview.chromium.org/1007863003/diff/1/runtime/observatory/lib/src/service/object.dart File runtime/observatory/lib/src/service/object.dart (right): https://codereview.chromium.org/1007863003/diff/1/runtime/observatory/lib/src/service/object.dart#newcode577 runtime/observatory/lib/src/service/object.dart:577: _updateIsolates(map['isolates']); s/_updateIsolates/_removeDeadIsolates https://codereview.chromium.org/1007863003/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1007863003/diff/1/runtime/vm/isolate.cc#newcode1549 runtime/vm/isolate.cc:1549: ...
5 years, 9 months ago (2015-03-18 20:05:48 UTC) #3
turnidge
https://codereview.chromium.org/1007863003/diff/1/runtime/observatory/lib/src/service/object.dart File runtime/observatory/lib/src/service/object.dart (right): https://codereview.chromium.org/1007863003/diff/1/runtime/observatory/lib/src/service/object.dart#newcode577 runtime/observatory/lib/src/service/object.dart:577: _updateIsolates(map['isolates']); On 2015/03/18 20:05:48, Cutch wrote: > s/_updateIsolates/_removeDeadIsolates Done. ...
5 years, 9 months ago (2015-03-26 17:46:58 UTC) #4
turnidge
5 years, 9 months ago (2015-03-26 19:06:38 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 44718 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698