Derek Xu
3dc9d8dcf9
[VM/Service] Add getQueuedMicrotasks RPC
...
TEST=pkg/vm_service/test/get_queued_microtasks_rpc_test
CoreLibraryReviewExempt: This CL does not include any core library API
changes, only VM Service implementation changes within
sdk/lib/vmservice/.
Change-Id: Ie5488f498e4d0f3d201e3f31423fd5029b74a726
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/425160
Commit-Queue: Derek Xu <derekx@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2025-05-13 14:29:37 -07:00
Derek Xu
6b978a8339
[VM/Service] Add secret _idZoneId parameters to all Service methods
...
TEST=pkg/vm_service/test/id_zones_test.dart, CI
Issue: https://github.com/dart-lang/sdk/issues/55869
CoreLibraryReviewExempt: This CL does not include any core library API
changes, only VM Service implementation changes in
sdk/lib/vmservice/running_isolates.dart.
Change-Id: Ib8af3f073f6db9172df90a5ea221269411f72156
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379545
Reviewed-by: Ben Konyi <bkonyi@google.com >
2024-08-28 16:41:50 +00:00
Derek Xu
b1d1836082
Reland "[VM/Service] Change how the default Service ID zone is stored in an Isolate"
...
This is a reland of commit c5935aa16e
Initialization of `service_id_zones_` has been made lazy in this reland
CL. I performed a Golem run
(https://golem.corp.goog/Comparison?repository=dart#targetA%3Ddart%3BmachineTypeA%3Dlinux-x64%3BrevisionA%3D111556%3BpatchA%3Dderekx-Reland---VM%2FService--Change-how-the-default-Service-ID-zone-is-stored-in-an-Isolate--2%3BtargetB%3Ddart%3BmachineTypeB%3Dlinux-x64%3BrevisionB%3D111542%3BpatchB%3DNone )
on this reland CL, and confirmed that the benchmarks that had gotten
regressed by my original CL
(https://golem.corp.goog/Revision?repository=dart&revision=111543 ) no
longer get regressed.
Original change's description:
> [VM/Service] Change how the default Service ID zone is stored in an Isolate
>
> This CL makes it so that the default Service ID zone of an Isolate will
> now be stored in a MallocGrowableArray, in preparation for adding the
> ability for Isolates to each store multiple Service ID zones.
>
> TEST=CI
>
> Issue: https://github.com/dart-lang/sdk/issues/55869
> Change-Id: Ie729c1854faac1f61a466ae893ee8ad0a2128499
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379543
> Reviewed-by: Ben Konyi <bkonyi@google.com >
> Commit-Queue: Derek Xu <derekx@google.com >
TEST=CI
Change-Id: I01cf0f54b05ae82a2dfd9f9c7fd48cda1ddfa90e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/381061
Commit-Queue: Derek Xu <derekx@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2024-08-20 20:38:19 +00:00
Derek Xu
cce42a346b
Revert "[VM/Service] Change how the default Service ID zone is stored in an Isolate"
...
This reverts commit c5935aa16e .
Reason for revert: Golem regressions
Original change's description:
> [VM/Service] Change how the default Service ID zone is stored in an Isolate
>
> This CL makes it so that the default Service ID zone of an Isolate will
> now be stored in a MallocGrowableArray, in preparation for adding the
> ability for Isolates to each store multiple Service ID zones.
>
> TEST=CI
>
> Issue: https://github.com/dart-lang/sdk/issues/55869
> Change-Id: Ie729c1854faac1f61a466ae893ee8ad0a2128499
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379543
> Reviewed-by: Ben Konyi <bkonyi@google.com >
> Commit-Queue: Derek Xu <derekx@google.com >
Issue: https://github.com/dart-lang/sdk/issues/55869
Change-Id: I76fc2dc15d896a24ac8b9ec4bb44e67eaaf50fd2
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/380801
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Derek Xu <derekx@google.com >
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com >
2024-08-16 16:59:37 +00:00
Derek Xu
c5935aa16e
[VM/Service] Change how the default Service ID zone is stored in an Isolate
...
This CL makes it so that the default Service ID zone of an Isolate will
now be stored in a MallocGrowableArray, in preparation for adding the
ability for Isolates to each store multiple Service ID zones.
TEST=CI
Issue: https://github.com/dart-lang/sdk/issues/55869
Change-Id: Ie729c1854faac1f61a466ae893ee8ad0a2128499
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379543
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Derek Xu <derekx@google.com >
2024-08-15 20:15:36 +00:00
Derek Xu
004fbe9119
[VM/Service] Improve documentation of JSONStream::Setup
...
TEST=CI
Issue: https://github.com/dart-lang/sdk/issues/55869
Change-Id: Ib839ca76b1aa9ab0de0b8b3afd02a708a3e8b0a1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/379541
Reviewed-by: Ben Konyi <bkonyi@google.com >
2024-08-13 17:09:59 +00:00
Ben Konyi
01ef827761
[ Service ] Fix assertions around 'offset' and 'count' parameters for getObject
...
Both 'offset' and 'count' should support values of 0, even if they don't
produce any interesting results.
Fixes https://github.com/dart-lang/sdk/issues/55603
TEST=N/A
Fixed: 55603
Change-Id: If1b5869368c21634b13da5e3ba2ddfb9d219cf49
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365080
Reviewed-by: Derek Xu <derekx@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
Auto-Submit: Ben Konyi <bkonyi@google.com >
2024-04-30 20:46:37 +00:00
Derek Xu
63f9cd722a
[VM/Service] Add isolateGroup property to Event
...
TEST=reload_sources_rpc_triggers_isolate_reload_event_test.dart
Change-Id: I0669d09461f147226f1dd2a598896e9a6b44d9b0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/308221
Commit-Queue: Derek Xu <derekx@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2023-06-09 17:57:12 +00:00
Derek Xu
8df1b88877
[VM/Service] Create JSONBase64String class
...
TEST=CI
Change-Id: Ia14fcb1788a2685bef4fd61babfdd7089dd85a06
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287801
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Derek Xu <derekx@google.com >
2023-04-17 15:58:28 +00:00
Derek Xu
b4aa83b0b7
[VM/Service] Rename JSONStream::AppendSerializedObject to JSONStream::AppendBytes
...
TEST=CI
Change-Id: I2bb950c608716156e0dfe357a0fd481463b8d0dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/287800
Reviewed-by: Ben Konyi <bkonyi@google.com >
2023-04-17 15:58:28 +00:00
Ryan Macnak
f9a6a5bdd2
[vm] Update NULL to nullptr in runtime/vm.
...
TEST=build
Change-Id: I2834ef7cf7cb7c8770f8167a2438cbedcee5c623
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/292063
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
2023-04-10 18:15:12 +00:00
Ben Konyi
4e688b1a59
[ Service / AOT ] Include line numbers for Functions in AOT snapshots
...
Fixes https://github.com/dart-lang/sdk/issues/48839
TEST=Checked CPU profile for Flutter Gallery in profile mode
Change-Id: I83f372aebd77b93b459720ceb2dd9e5fa05b4475
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245200
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2022-06-02 16:50:19 +00:00
Ryan Macnak
f76b6a8cc1
Reland "[vm] Add a timeline recorder that streams to a file."
...
Adjust TimelineEvent::PrintJSON to use JSONWriter for compatibility with PRODUCT mode.
TEST=ci
Change-Id: I694889c655719371364012b4324b7947d7b2d5e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/240911
Reviewed-by: Alexander Aprelev <aam@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2022-04-19 00:56:46 +00:00
Ben Konyi
ea48265725
Reland "[ VM / Service ] Omit private fields from service responses by default"
...
Adds better error handling in DDS to prevent google3 breakages due to
Flutter binary update lag times.
This reverts commit 28e958febb .
TEST=N/A
Change-Id: Ida454f0ef3caeedd1b0326c37fef58d4b73557d5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227620
Reviewed-by: Siva Annamalai <asiva@google.com >
2022-01-11 23:35:28 +00:00
Ivan Inozemtsev
28e958febb
Revert "Reland "[ VM / Service ] Omit private fields from service responses by default""
...
This reverts commit 91a496e5db .
Reason for revert: breaks hot reloads internally
Original change's description:
> Reland "[ VM / Service ] Omit private fields from service responses by default"
>
> This reverts commit 7d39d2dd51 .
>
> TEST=N/A
>
> Change-Id: I2119c841719c77be5380857ce209532ed036bd0e
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226322
> Reviewed-by: Siva Annamalai <asiva@google.com >
> Commit-Queue: Ben Konyi <bkonyi@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I6e751343244a4788a1f080ea1aef5fdd18417109
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/227503
Reviewed-by: Alexander Thomas <athom@google.com >
Commit-Queue: Ivan Inozemtsev <iinozemtsev@google.com >
2022-01-11 14:06:04 +00:00
Ben Konyi
91a496e5db
Reland "[ VM / Service ] Omit private fields from service responses by default"
...
This reverts commit 7d39d2dd51 .
TEST=N/A
Change-Id: I2119c841719c77be5380857ce209532ed036bd0e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226322
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2022-01-06 18:05:36 +00:00
Michal Terepeta
7d39d2dd51
Revert "[ VM / Service ] Omit private fields from service responses by default"
...
This reverts commit 75abd86407 .
Reason for revert: Breaks internal tests (http://b/207612278 )
Original change's description:
> [ VM / Service ] Omit private fields from service responses by default
>
> Service responses and events previously could include "private"
> properties, which have names starting with "_". This change removes
> these properties from service objects unless explicitly requested via a
> private parameter.
>
> See go/smaller-dart-vm-service-responses for response size reduction
> data.
>
> TEST=Existing service suite
>
> Change-Id: Ia65b14872e798eaa843f7d180c57721b82371d0b
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221143
> Commit-Queue: Ben Konyi <bkonyi@google.com >
> Reviewed-by: Ryan Macnak <rmacnak@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I0b015baadfcdf4211426efa9a92804b163f88649
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221280
Reviewed-by: Michal Terepeta <michalt@google.com >
Reviewed-by: Clement Skau <cskau@google.com >
Commit-Queue: Michal Terepeta <michalt@google.com >
2021-11-25 10:28:33 +00:00
Ben Konyi
75abd86407
[ VM / Service ] Omit private fields from service responses by default
...
Service responses and events previously could include "private"
properties, which have names starting with "_". This change removes
these properties from service objects unless explicitly requested via a
private parameter.
See go/smaller-dart-vm-service-responses for response size reduction
data.
TEST=Existing service suite
Change-Id: Ia65b14872e798eaa843f7d180c57721b82371d0b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221143
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2021-11-24 00:34:31 +00:00
Ryan Macnak
e3a9d70591
[vm, service] Remove unsafe querying across threads during Isolate::PrintJSON.
...
Note this would be unsafe even if under a safepoint operation because not all of the queried threads participate in safepoints.
TEST=tsan
Bug: https://github.com/dart-lang/sdk/issues/44304
Bug: https://github.com/dart-lang/sdk/issues/44385
Change-Id: I8156e8c6049165e5c53b66c3391f3e8a496ddaaf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175000
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Alexander Aprelev <aam@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2020-12-08 00:36:38 +00:00
Ben Konyi
c54ec8d5f3
[ package:dds ] Handle expression evaluation invocations in DDS and forward compileExpression calls to clients which provide their own compilation service.
...
Change-Id: I2daec26929ad4f530d28d0073a0b2758850bec0a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150694
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-06-11 22:43:39 +00:00
Ryan Macnak
6fe15f6df9
[vm] Represent tagged pointers as C++ value types instead of C++ pointer types.
...
This works around bugs in UndefinedBehaviorSanitizer and Clang.
Bug: b/28638298
Change-Id: I6be595f9664516019d28017d24559583a1ae3a21
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/144354
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2020-04-25 05:21:27 +00:00
Alexander Aprelev
9e636b5ab4
Reland "[vm/service] Introduce IsolateGroup entity to vm service api.""
...
This reverts commit f020ce5d23 with patchset 1 having original revert, rest - fixes
for calling destructors on unlinked IntrusiveDL elements and for assuming int is int64(which breaks down on simarm, ia32 bots).
Fixes https://github.com/dart-lang/sdk/issues/38926
Issue https://github.com/dart-lang/sdk/issues/36097
Change-Id: I867526c7de3786806670d1f43dbff07228f80028
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121870
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2019-10-17 03:45:41 +00:00
Alexander Aprelev
f020ce5d23
Revert "[vm/service] Introduce IsolateGroup entity to vm service api."
...
This reverts commit f219e5152d as it breaks few bots.
Change-Id: I8d1d42d1ac662c2dba9ea9270c7a6cdc4f0621bd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121886
Reviewed-by: Ben Konyi <bkonyi@google.com >
2019-10-16 19:45:23 +00:00
Alexander Aprelev
f219e5152d
[vm/service] Introduce IsolateGroup entity to vm service api.
...
This is to enable vm clients to ask how much memory is consumed by isolate group.
Issue https://github.com/dart-lang/sdk/issues/36097
Change-Id: I4f1c499bf02c20b80e9802d8ad60e7ea65cfb375
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/119724
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2019-10-16 18:05:06 +00:00
Ben Konyi
a75ded625e
[ VM / Service ] Made VM timeline functionality public through the service API.
...
Change-Id: I8228f0417047af53edc6f570940d452da3155bbd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106061
Reviewed-by: Siva Annamalai <asiva@google.com >
2019-06-19 16:06:12 +00:00
Ben Konyi
2babb218d6
[ VM / Service ] Removed fixedId parameter from Isolate responses
...
Change-Id: I0c8c9caa78d770ebe5c57202e6bebe029774c7f9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104080
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2019-05-31 00:20:15 +00:00
Ryan Macnak
a651838652
[vm] Fix misc printf format bugs.
...
Bug: https://github.com/dart-lang/sdk/issues/35009
Change-Id: I6b509e1eb8e76e07f60a086c67358d65d2a1fae4
Reviewed-on: https://dart-review.googlesource.com/c/82460
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2018-11-01 16:37:22 +00:00
Alexander Aprelev
a5e41681e5
Add support for expression compilation via service.
...
If there is registered expression compiler, VM debugger uses it to compile expressions. Otherwise, it will fallback to use kernel service compiler.
This is needed to support Flutter use case where compiler is running on developer's host machine, not on the device where VM is running.
Bug: dartbug.com/31981
Change-Id: I8bdfc8ab45a57c306169abe189f1e24e1b0bcf40
Reviewed-on: https://dart-review.googlesource.com/57520
Commit-Queue: Alexander Aprelev <aam@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2018-06-05 04:16:39 +00:00
Alexander Markov
172786b906
[VM] Extract simple JSON writer out of VM service-specific JSONStream
...
The purpose of this refactoring is to provide a convenient way to
write JSON independently of VM service, which is excluded in PRODUCT
build mode.
Change-Id: I55700d9ead6ef9269a98714d8178f1edb35435cb
Reviewed-on: https://dart-review.googlesource.com/18502
Commit-Queue: Alexander Markov <alexmarkov@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2017-11-03 18:31:50 +00:00
Ryan Macnak
5efa08b663
Reapply "[reload] Add facility to check for program elements changed in the last reload but not executed."
...
- Weaken assert for identity reloads to account for lazy finalization.
- Store actual field end positions instead of computing from a terminating semicolon.
- Consider unfinalized classes to be unchanged if they have same sequence of tokens.
Change-Id: I3fcd7fed924bfac47dc382702ce63207bb8aa031
Reviewed-on: https://dart-review.googlesource.com/8164
Reviewed-by: Siva Annamalai <asiva@google.com >
Commit-Queue: Ryan Macnak <rmacnak@google.com >
2017-09-27 02:50:35 +00:00
Ryan Macnak
9dd3730ea2
Revert "[reload] Add facility to check for program elements changed in the last reload but not executed."
...
This reverts commit 4a0d5cbf3f .
Change-Id: Ic90f78443b5c1878ac6f17a1a1439f8e4515db42
Reviewed-on: https://dart-review.googlesource.com/7681
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2017-09-21 22:56:39 +00:00
Ryan Macnak
4a0d5cbf3f
[reload] Add facility to check for program elements changed in the last reload but not executed.
...
Change-Id: Ifdc73166be68c5d2915e8b9d71db0a09d06835a0
Reviewed-on: https://dart-review.googlesource.com/5330
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2017-09-21 20:28:06 +00:00
Ryan Macnak
3d21a46b72
Limit preserialized JSON for timeline events from Dart code to the arguments.
...
Avoids string copies in C++ and map copies in Dart.
Also remove some vestiages of removed feature that allowed an embedder to add pre-encoded events to the timeline.
Change-Id: I962a67093ba461c991d9169b0391c44af1d489db
Bug: https://github.com/dart-lang/sdk/issues/30787
Reviewed-on: https://dart-review.googlesource.com/6762
Commit-Queue: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Zach Anderson <zra@google.com >
2017-09-19 23:29:55 +00:00
Zachary Anderson
6cd8a79078
VM: Re-format to use at most one newline between functions
...
R=asiva@google.com
Review-Url: https://codereview.chromium.org/2974233002 .
2017-07-13 08:08:37 -07:00
Ben Konyi
c0511ad2ef
Reimplemented zone memory tracking to avoid race conditions that were causing crashes in the previous implementation and made some minor name changes.
...
BUG=
R=asiva@google.com , johnmccutchan@google.com
Review-Url: https://codereview.chromium.org/2762323002 .
2017-03-23 09:03:08 -07:00
John McCutchan
ebe7d148f3
Document some recent service protocol features
...
Document the `reloadSources` RPC.
Document the `PausePostRequest` pause event.
Document the 'IsolateReloaded' event.
BUG=
R=devoncarew@google.com
Review-Url: https://codereview.chromium.org/2614643003 .
2017-01-04 13:45:27 -08:00
Ben Konyi
35a49bc1ff
Created methods to surface zone memory information for each isolate and thread in JSON.
...
BUG=
R=asiva@google.com , johnmccutchan@google.com , zra@google.com
Review URL: https://codereview.chromium.org/2554983002 .
2016-12-12 09:56:49 -08:00
Todd Turnidge
e0d350aa27
Implement rewind on all platforms except for dbc.
...
BUG=
Review URL: https://codereview.chromium.org/2534413005 .
2016-12-01 17:19:31 -08:00
Todd Turnidge
193ddba4db
Revert "Implement rewind: drop one or more frames from the debugger."
...
This reverts commit af1875be91 .
BUG=
Review URL: https://codereview.chromium.org/2521413002 .
2016-11-22 16:05:26 -08:00
Todd Turnidge
af1875be91
Implement rewind: drop one or more frames from the debugger.
...
Not yet implemented on dbc.
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2523053002 .
2016-11-22 15:26:08 -08:00
Zachary Anderson
a1bcf051d8
clang-format runtime/vm
...
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2481873005 .
2016-11-08 13:54:47 -08:00
Zachary Anderson
103881d01c
Make header include guards great again
...
i.e. #ifndef VM_WHATEVER -> #ifndef RUNTIME_VM_WHATEVER
This lets us remove a hack from the PRESUBMIT.py script that existed
for reasons that are no longer valid, and sets us up to add some
presubmit checks for the GN build.
R=asiva@google.com , rmacnak@google.com
Review URL: https://codereview.chromium.org/2450713004 .
2016-10-26 00:26:03 -07:00
John McCutchan
d8eb5ffb57
Do not allow a hot reload if the isolate has a sticky error
...
BUG=
R=turnidge@google.com
Review URL: https://codereview.chromium.org/2278613002 .
2016-08-24 11:31:46 -07:00
Ryan Macnak
d418dde65b
Reduce copying in sending service responses.
...
Add missing safepoint transitions.
Issue #27092
Likely contributes to Issue #27010
dart2js hello
Peak RSS at first Observatory visit -> Peak RSS after visiting timeline (with endless recorder)
Before 215M -> 321M
After 182M -> 233M
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/2254543006 .
2016-08-18 10:34:50 -07:00
John McCutchan
51ace86544
Bug fixes for hot reload
...
- [x] Report the reload error synchronously from the _reloadSources RPC.
- [x] Add sticky reload error to an isolate so we can report the error.
- [x] Remove redundant 'OnStackReload'.
- [x] Fix a bug where a class could have a field added but we wouldn't reject it.
- [x] Add unit test for above bug fix.
- [x] Enable reload via the service protocol with a live stack.
R=fschneider@google.com
Review URL: https://codereview.chromium.org/2070873002 .
2016-06-16 11:02:35 -07:00
John McCutchan
1a4c2005cc
DevFS initial implementation.
...
This cl implements an experimental filesystem maintained in the vm, called dart-devfs. This will allow service protocol users to read and write source files while the vm is running. This is needed for the reload support for flutter.
R=turnidge@google.com
Review URL: https://codereview.chromium.org/2059883003 .
2016-06-10 12:33:50 -07:00
John McCutchan
48c8ffa7f3
Initial isolate reload support
...
This is a cut of the work that Todd and I collaborated on in the reload branch.
In this CL, we've dropped the loader port hacks, in other words, on stack reloading in the standalone embedder does not work yet.
- [x] Support for hot reloading of isolate source code
- [x] Unit test harness and many tests
- [x] Service protocol and Observatory support
- [x] Product build does not include support for hot reloading.
R=rmacnak@google.com
Review URL: https://codereview.chromium.org/1965823002 .
2016-05-17 12:19:06 -07:00
Todd Turnidge
5e196ada5d
VMMustBePaused -> IsolateMustBePaused
...
Closes #24537
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org/1973303003 .
2016-05-16 11:19:22 -07:00
John McCutchan
9bc7398eb8
Ensure embedder timeline callbacks are called for service protocol requests
...
BUG=
R=chinmaygarde@google.com , rmacnak@google.com
Review URL: https://codereview.chromium.org/1799933002 .
2016-03-15 07:59:04 -07:00
John McCutchan
32abe2ce55
Stream blocks of timeline events over the service protocol. Can be used to monitor long running programs without buffering all events inside the VM.
...
- Rename TimelineEventStreamingRecorder to TimelineEventCallbackRecorder. Note that this should only be used for tests.
- Add 'Timeline' service event stream.
- Send a 'TimelineEvents' event on the 'Timeline' stream whenever a TimelineEventBlock is finished and the 'Timeline' stream is subscribed to.
- Simple service protocol test.
R=turnidge@google.com
Review URL: https://codereview.chromium.org/1765563002 .
2016-03-04 12:30:50 -08:00