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

Issue 897193002: Finish moving service protocol to json rpc. (Closed)

Created:
5 years, 10 months ago by turnidge
Modified:
5 years, 10 months ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, Cutch, vm-dev_dartlang.org, koda
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Finish moving service protocol to json rpc. Service - Remove support for old-style service requests. - Drop 'arguments' from JsonStream and ServiceRequestHandler. - Json-rpc inspired renaming: command->method, options->params all over. - Implement getFlagList, setFlag, getObjectByAddress. - Add helpers PrintMissingParamError and PrintInvalidParamError to make our error messages more regular. - Update tests. - Service_SetSource removed for now. John will resurrect. Observatory - Drop all Deprecated 'get' functions. We now use json rpc for everything. - Drop 'link' and 'relativeLink' from ServiceObject -- they were ui-specific and they are no longer meaningful anyways. Use 'id' instead. - New pages: VMPage, FlagsPage, InspectPage, ErrorPage. All urls used by Observatory are now 'new school' and have a proper prefix. ErrorPage is the new catch-all. - Pages now use a Uri instead of a url String. This lets them grab query parameters more easily. - SimplePage replaces IsolateSuffixPage. - We now use gotoLink() or makeLink() to make our navigation links. gotoLink gets some optional parameters to make it easier to construct links to ServiceObjects. - Rework mouse clicks on the heap map to use getObjectByAddress. - Remove the breakpoint_list. It wasn't working. I'll add it back later. - Silence logging of getIsolateMetric/getVMMetric. R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=43514

Patch Set 1 #

Patch Set 2 : #

Total comments: 10

Patch Set 3 : #

Patch Set 4 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+638 lines, -1813 lines) Patch
M runtime/bin/main.cc View 2 chunks +11 lines, -16 lines 0 comments Download
M runtime/bin/vmservice/server.dart View 2 chunks +2 lines, -10 lines 0 comments Download
M runtime/include/dart_api.h View 1 chunk +8 lines, -16 lines 0 comments Download
M runtime/observatory/bin/shell.dart View 1 2 2 chunks +7 lines, -6 lines 0 comments Download
M runtime/observatory/lib/elements.dart View 2 chunks +1 line, -1 line 0 comments Download
M runtime/observatory/lib/elements.html View 2 chunks +1 line, -1 line 0 comments Download
M runtime/observatory/lib/service_common.dart View 4 chunks +5 lines, -31 lines 0 comments Download
M runtime/observatory/lib/src/app/application.dart View 3 chunks +8 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/app/page.dart View 1 2 3 8 chunks +133 lines, -86 lines 0 comments Download
D runtime/observatory/lib/src/elements/breakpoint_list.dart View 1 chunk +0 lines, -21 lines 0 comments Download
D runtime/observatory/lib/src/elements/breakpoint_list.html View 1 chunk +0 lines, -32 lines 0 comments Download
M runtime/observatory/lib/src/elements/code_view.html View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/debugger.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/field_view.html View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/flag_list.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/function_view.html View 1 chunk +1 line, -1 line 0 comments Download
A + runtime/observatory/lib/src/elements/general_error.dart View 1 chunk +7 lines, -7 lines 0 comments Download
A + runtime/observatory/lib/src/elements/general_error.html View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/elements/heap_map.dart View 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/heap_map.html View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/heap_profile.html View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/io_view.html View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate_summary.html View 1 chunk +7 lines, -7 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate_view.html View 1 chunk +0 lines, -7 lines 0 comments Download
M runtime/observatory/lib/src/elements/nav_bar.dart View 1 chunk +0 lines, -15 lines 0 comments Download
M runtime/observatory/lib/src/elements/nav_bar.html View 4 chunks +8 lines, -8 lines 0 comments Download
M runtime/observatory/lib/src/elements/observatory_element.dart View 2 chunks +15 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/script_view.html View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/service_ref.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/service_view.dart View 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/observatory/lib/src/elements/service_view.html View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 14 chunks +15 lines, -103 lines 0 comments Download
M runtime/observatory/observatory.gypi View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/json_stream.h View 3 chunks +22 lines, -39 lines 0 comments Download
M runtime/vm/json_stream.cc View 4 chunks +38 lines, -108 lines 0 comments Download
M runtime/vm/json_test.cc View 1 chunk +11 lines, -17 lines 0 comments Download
M runtime/vm/service.h View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 43 chunks +189 lines, -873 lines 0 comments Download
M runtime/vm/service/message.dart View 4 chunks +3 lines, -24 lines 0 comments Download
M runtime/vm/service/running_isolates.dart View 1 2 3 2 chunks +1 line, -40 lines 0 comments Download
M runtime/vm/service/service.idl View 2 chunks +21 lines, -0 lines 0 comments Download
M runtime/vm/service/vmservice.dart View 1 2 3 1 chunk +3 lines, -8 lines 0 comments Download
M runtime/vm/service_test.cc View 32 chunks +91 lines, -298 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
turnidge
heap_map breaks in javascript version. Still tracking that down. Otherwise, ready for review.
5 years, 10 months ago (2015-02-05 02:30:13 UTC) #2
Cutch
https://codereview.chromium.org/897193002/diff/20001/runtime/observatory/lib/src/app/page.dart File runtime/observatory/lib/src/app/page.dart (right): https://codereview.chromium.org/897193002/diff/20001/runtime/observatory/lib/src/app/page.dart#newcode86 runtime/observatory/lib/src/app/page.dart:86: // Nothing requested. Should we display something in this ...
5 years, 10 months ago (2015-02-05 14:54:48 UTC) #3
turnidge
https://codereview.chromium.org/897193002/diff/20001/runtime/observatory/lib/src/app/page.dart File runtime/observatory/lib/src/app/page.dart (right): https://codereview.chromium.org/897193002/diff/20001/runtime/observatory/lib/src/app/page.dart#newcode86 runtime/observatory/lib/src/app/page.dart:86: // Nothing requested. On 2015/02/05 14:54:48, Cutch wrote: > ...
5 years, 10 months ago (2015-02-05 17:11:36 UTC) #4
Cutch
lgtm
5 years, 10 months ago (2015-02-05 17:12:51 UTC) #5
turnidge
5 years, 10 months ago (2015-02-05 17:46:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 43514 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698