Ben Konyi
c4bfca9b6a
[ dart:io / package:vm_service ] Add HTTP request profiling service
...
extensions
This change adds HTTP request profiling support to the dart:io service
extensions and removes HTTP request/response body logging to the
timeline due to memory constraints.
Fixes https://github.com/dart-lang/sdk/issues/44950
TEST=pkg/vm_service/test/get_http_profile_test.dart
Change-Id: I85642296c3d6595197f3365022477c7685c452bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/189881
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Kenzie Schmoll <kenzieschmoll@google.com >
2021-03-24 23:01:03 +00:00
Ben Konyi
5e88959488
[ Service ] Deprecate CpuSamples.timeSpan
...
The implementation of CpuSamples.timeSpan has never matched the
specification and has never been returned properly from the service
(returned as 'timespan' instead of 'timeSpan'). Since timeSpan is
effectively the same value as timeExtentMicros, timeExtendMicros should
be used instead.
Fixes https://github.com/dart-lang/sdk/issues/45276
TEST=N/A
Change-Id: I3a1fda81e199718824ad80eb955adb3214ae192c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192780
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-03-23 21:23:31 +00:00
Ben Konyi
3b49fd862b
[ VM / Service ] Add identityHashCode to @Instance and Instance
...
responses
Allows for comparing @Instances and Instances with allocation traces and
heap snapshot entries.
TEST=pkg/vm_service/test/get_allocation_traces_test.dart
Change-Id: I6d021b0267f1595332475470961df6e35321ce80
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188600
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2021-03-22 22:45:57 +00:00
Brian Wilkerson
ec04c1f335
Remove some unnecessary ignore comments
...
Change-Id: Iafa4b9c8aa5dc696c5746248a8701b4f6e875979
TEST=Existing tests.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/191980
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Nicholas Shahan <nshahan@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-03-18 19:58:43 +00:00
Sam Rawlins
5aca96546b
vm_service: Remove unnecessary '?' from dynamic types
...
Also update the generator:
* Remove same unnecessary '?'
* Update MemberType.name, TypeRef.ref to be non-nullable
Bug: https://github.com/dart-lang/sdk/issues/45165
Change-Id: I438e9ce1e02faac9417a7d2d4ace143f2cf6feb3
TEST=Just the regular trybots.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190722
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-03-11 20:14:41 +00:00
Kenzie Schmoll
c0c56b0592
Fix a couple typos in vm_service
...
TEST=N/A
Change-Id: I3a9bee58e7dd28ea54933dc229f91339e9d0a0a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188760
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-03-03 19:27:22 +00:00
Ben Konyi
06e5c3e90a
[ package:vm_service ] Fix capture_stdio_test on Windows
...
TEST=pkg/vm-service/test/capture_stdio_test.dart
Change-Id: Iaecd5c3535f7aaf632f59973236aba056bb01506
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188641
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-03-02 23:41:46 +00:00
Ben Konyi
86c0d1199c
[ VM / package:vm_service ] Fix issue where events were only sent over Stdout and Stderr streams when Debug stream was active
...
TEST=pkg/vm_service/test/capture_stdio_test.dart
Change-Id: I9029f1c42455b7d757aa5d424e05b5d45a048c4a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185483
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-03-02 21:47:27 +00:00
Clement Skau
f2dfe3a8be
[vm/debugger] Fixes async CollectAwaiterReturn()
...
The async, off-stack part of DebuggerStackTrace::CollectAwaiterReturn's
stack unwinding incorrectly looked on the stack instead of following
the Closure's awaiter chain.
This caused the async stack traces to be truncated and missing any
async frames, in turn causing ShouldPauseOnException to incorrectly
conclude no handler frame existing.
This would affect any case where the exception handling was located
around any except for the inner most awaiter.
TEST=Added regression test to pause_on_unhandled_exceptions_catcherror_test
Closes: https://github.com/dart-lang/sdk/issues/37953
Bug: https://github.com/dart-lang/sdk/issues/37953
Change-Id: I34a2b5ce3c7532032b2ef3dfbc2af7294d13a4c7
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/187405
Commit-Queue: Clement Skau <cskau@google.com >
Reviewed-by: Daco Harkes <dacoharkes@google.com >
2021-02-26 06:46:36 +00:00
Ben Konyi
9a755f2227
[ package:vm_service ] Attach callsite StackTrace to RPCErrors and
...
SentinelExceptions
Fixes https://github.com/dart-lang/sdk/issues/44839
TEST=rpc_error_test.dart,throws_sentinel_test.dart
Change-Id: I5aa1b8a11fbf9a83c0584c2df07f4aa07cf374a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185942
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Jonah Williams <jonahwilliams@google.com >
2021-02-19 22:54:25 +00:00
Ben Konyi
b563a592ca
[ package:vm_service ] Fix documentation not appearing on pub, update CHANGELOG for 6.1.0
...
TEST=N/A
Change-Id: Ic585afc5a74701cd9a787319e4dad8b2ec12b748
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185900
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-02-19 21:35:45 +00:00
Sam Rawlins
6ce172d87f
vm_service: remove unnecessary imports
...
TEST=The standard tryjobs bots
Bug: https://github.com/dart-lang/sdk/issues/44569
Change-Id: If959fad41185fbb8bfdf400e1d1e177bef082902
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/185304
Commit-Queue: Samuel Rawlins <srawlins@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-02-18 00:23:46 +00:00
Ben Konyi
3e83400e0f
[ VM / Service ] Added getAllocationTraces and setTraceClassAllocation RPCs and identity hash support
...
This change adds two new RPCs and various new properties:
- getAllocationTraces
- setTraceClassAllocation
- classId and identityHashCode properties in CpuSample
- traceAllocations property in Class
TEST=get_allocation_traces_test.dart
package:vm_service has been regenerated for 3.43 of the service protocol
and is ready for a 6.1.0 release.
Change-Id: Ia8ed055423798d7d17fe9f5fd74efb4239b875fc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182666
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2021-02-12 21:15:35 +00:00
Ben Konyi
fa8ea6dfaa
[ package:vm_service ] Update tests to be compatible with pub run test
...
Will allow for tests to be enabled in google3 as pub or portions of pub
are used to run VM tests.
Previously the test harness was configured to look for a URI with a data: scheme to determine if it was being run via pub run test (pub generates its own harness and spawns the test from that). We were parsing the test URI out of this data URI, which wouldn't work correctly in google3.
This change assumes that if Platform.script.scheme == 'data', the test is being run via pub from the root directory of the package. In that case, we can assume there is a 'test' directory and simply use 'test/$scriptName'as the path for the testee process.
TEST=N/A
Change-Id: I589605ebc7001adc9d8595ca8347c0af329b9c28
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184541
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-02-12 07:12:54 +00:00
Jacob MacDonald
88fdbea483
Update to the latest markdown, an internal Cl has been prepared and
...
paired with this so the sdk roll can succeed.
TEST=Fixes static errors
Change-Id: Ia4e325936ea81d0d51fbf6dd939b732860d22100
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183760
Commit-Queue: Jake Macdonald <jakemac@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2021-02-09 18:42:42 +00:00
Ben Konyi
f7cc17fb7e
[ package:vm_service ] Fix issue where null was returned instead of @Instance of type Null
...
Also includes some cleanup for next release.
Fixes https://github.com/dart-lang/sdk/issues/44842
TEST=pkg/vm_service/test/regress_44842_test.dart
Change-Id: I250fac7c52d6d5344bd5c3ec1c143deaa97419d9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182369
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-02-03 21:10:28 +00:00
Ben Konyi
565dc5b6a2
Reland "[ VM / Service ] Report identity hash codes of objects at end of heap snapshot"
...
This reverts commit 7083692624 in order to
reland commit 8d99d295da .
TEST=N/A
Change-Id: I06c80a666a9307caf0313fef1fde212ec801203c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182600
Reviewed-by: Nate Bosch <nbosch@google.com >
2021-02-03 19:13:40 +00:00
Ben Konyi
7083692624
[ package:vm_service ] Prepare for 6.0.1 stable null-safe release
...
There is no diff between this version and 6.0.1-nullsafety.1.
This temporarily reverts commit 8d99d295da .
TEST=None
Change-Id: I3597b3543c9ea9122865604b9ba07c99683a5355
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/182580
Reviewed-by: Nate Bosch <nbosch@google.com >
2021-02-03 18:16:27 +00:00
asiva
34f9734b41
Revert "[cfe] Handle conditional await in CFE"
...
This reverts commit 14032a6209 .
Reason for revert : Several customer flutter tests are failing because
of the change in behavior.
TEST=revert of previous CL.
Change-Id: Ia235aa93b9c81fbab066803dc0625856f93acceb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181860
Commit-Queue: Siva Annamalai <asiva@google.com >
Reviewed-by: Leaf Petersen <leafp@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-02-01 23:41:01 +00:00
Ben Konyi
8d99d295da
[ VM / Service ] Report identity hash codes of objects at end of heap
...
snapshot
TEST=pkg/vm_service/test/object_graph_identity_hash_test.dart
Change-Id: I71eff4e8bb2153d8ef1117bc90d078f678f358ed
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180484
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-02-01 22:37:21 +00:00
Ben Konyi
9fe5f563f4
[ package:vm_service ] Fix some Instance fields not being parsed from JSON
...
Fixes https://github.com/dart-lang/sdk/issues/44800
TEST=Manual testing
Change-Id: Id03bc8a6be57c8937c8fa850fbf82227bef8bafb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/181720
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-01-28 22:25:35 +00:00
Clement Skau
c3ec3e53a1
[VM] Adds Future.then stack unwind. (3)
...
TEST=ASAN; Various 'causal' tests updated below.
Issues addressed in this revision:
- https://github.com/dart-lang/sdk/issues/44708 ASAN
- https://github.com/dart-lang/sdk/issues/44700 SegFault
Cq-Include-Trybots: luci.dart.try:vm-kernel-precomp-asan-linux-release-x64-try,vm-kernel-asan-linux-release-x64-try,analyzer-linux-release-try,analyzer-analysis-server-linux-try,analyzer-nnbd-linux-release-try
Bug: https://github.com/dart-lang/sdk/issues/40815 , https://github.com/dart-lang/sdk/issues/37953
Change-Id: I8b8f6ee2e5d4ca2e6bea988ec1cd9f912ddf8240
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180186
Commit-Queue: Clement Skau <cskau@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2021-01-26 14:02:39 +00:00
Johnni Winther
14032a6209
[cfe] Handle conditional await in CFE
...
This converts `return e` in async methods in opt-in libraries into
return let v = e in v is Future<FTV> ? await v ; v
where FTV is the future value type of the enclosing function.
Closes #44395
Closes #44396
Closes #44397
Closes #44399
TEST=existing tests
Change-Id: I59687039bfe4a97ffdaa55ac0f193ca4fb208f44
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175310
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Erik Ernst <eernst@google.com >
2021-01-22 19:12:24 +00:00
Ben Konyi
378436abb6
[package:vm_service] Bump version to 6.0.1-nullsafety.0 to make pub happy
...
TEST=None
Change-Id: If0f04c87fb1411084e15460ff9e70cb76498b623
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180486
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-01-22 00:54:11 +00:00
Ben Konyi
251dab8721
[ package:vm_service ] Removed null assertion from
...
`SourceReportRange.coverage` parsing
Fixes https://github.com/dart-lang/sdk/issues/44739
TEST=Existing
Change-Id: I395d6f908862767655d7d3e9b5518995dea8c433
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180480
Reviewed-by: Gary Roumanis <grouma@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-01-22 00:22:17 +00:00
Ben Konyi
761f5ef250
[ package:vm_service ] Fix issue where objects were returning the
...
package:vm_service class name instead of the class name from the spec as
their type.
Fixes https://github.com/dart-lang/sdk/issues/44725
TEST=Existing package:vm_service tests
Change-Id: I4168a338aea4d0aaa2ff37b6af98d86b372dcd9f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180264
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-01-21 00:15:33 +00:00
Ben Konyi
fc48e553d5
[ Service / package:vm_service ] Allow for Sentinel value in Field.staticValue, fix null values in ClassList
...
Field.staticValue has always been able to take a Sentinel as a value but
was not correctly specified in the service spec. Updates the spec and
package:vm_service to allow for this case.
Also fixed an issue where FreeListElement and ForwardingCorpse were
being returned from getClassList.
Fixes https://github.com/dart-lang/sdk/issues/44588
TEST=pkg/vm_service/test/regress_44588_test.dart
Change-Id: I059717657533ff623a70d159a918d63e9e4b6cc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179020
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2021-01-20 19:25:46 +00:00
David Morgan
88c1be7e3b
Revert "Reland "[VM] Adds Future.then and Future.catchError stack unwinding.""
...
This reverts commit 9978a246c1 .
Reason for revert: VM crashes in google3, b/177506826
Original change's description:
> Reland "[VM] Adds Future.then and Future.catchError stack unwinding."
>
> This reverts commit 978b838461 .
>
> Reason for revert: Fix: https://dart-review.googlesource.com/c/sdk/+/179762
>
> TEST=Various 'causal' tests updated below.
>
> Original change's description:
> > Revert "[VM] Adds Future.then and Future.catchError stack unwinding."
> >
> > This reverts commit 8f2c47f24b .
> >
> > Reason for revert: We suspect this is causing VM crashes: http://b/177506826
> >
> > Original change's description:
> > > [VM] Adds Future.then and Future.catchError stack unwinding.
> > >
> > > TEST=Various 'causal' tests updated below.
> > >
> > > Bug: https://github.com/dart-lang/sdk/issues/40815 , https://github.com/dart-lang/sdk/issues/37953
> > > Change-Id: I1420d6163ac2e3b22e0971f7b0ad516895dded70
> > > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176662
> > > Commit-Queue: Clement Skau <cskau@google.com >
> > > Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
> >
> > TBR=vegorov@google.com ,cskau@google.com
> >
> > # Not skipping CQ checks because original CL landed > 1 day ago.
> >
> > Bug: https://github.com/dart-lang/sdk/issues/40815
> > Bug: https://github.com/dart-lang/sdk/issues/37953
> > Change-Id: I870f0202f43588f71a5d2b0f82338978b5a5dda9
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178998
> > Reviewed-by: Michal Terepeta <michalt@google.com >
> > Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
> > Commit-Queue: Michal Terepeta <michalt@google.com >
>
> TBR=vegorov@google.com ,cskau@google.com ,michalt@google.com
>
> # Not skipping CQ checks because original CL landed > 1 day ago.
>
> Bug: https://github.com/dart-lang/sdk/issues/40815
> Bug: https://github.com/dart-lang/sdk/issues/37953
> Change-Id: I8a1eb6679b01571b850499cac2dadc5bf9ef2dcd
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179763
> Reviewed-by: Clement Skau <cskau@google.com >
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
> Commit-Queue: Clement Skau <cskau@google.com >
TBR=vegorov@google.com ,cskau@google.com ,michalt@google.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: https://github.com/dart-lang/sdk/issues/40815
Bug: https://github.com/dart-lang/sdk/issues/37953
Change-Id: I1274bcb375bf6f9cb0609d372b0b451d51eb99c4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180147
Reviewed-by: David Morgan <davidmorgan@google.com >
Commit-Queue: David Morgan <davidmorgan@google.com >
2021-01-20 12:44:55 +00:00
Johnni Winther
07a6f9511d
Revert "Makes _propagateToListeners not recurse unboundedly."
...
This reverts commit 073f792b59 .
Reason for revert: Some g3 test failures, needs more investigation to figure out how to land. b/177972603
TEST=revert
Original change's description:
> Makes `_propagateToListeners` not recurse unboundedly.
>
> Change-Id: I85818282276e8a5ab4a639e98c238c2a822cab9e
> TEST=Added regression test.
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179770
> Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
> Reviewed-by: Johnni Winther <johnniwinther@google.com >
TBR=lrn@google.com ,johnniwinther@google.com
Change-Id: If3b6a2ee5511a13fa2de19e70a3c52321007b1ff
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180142
Commit-Queue: Johnni Winther <johnniwinther@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
Reviewed-by: David Morgan <davidmorgan@google.com >
2021-01-20 09:27:47 +00:00
Ben Konyi
e3c0b0d3f7
[ package:vm_service ] Null safety migration, take two
...
All object fields are now non-final and nullable to allow for missing
fields due to communicating with an older VM service version.
TEST=Existing tests.
Change-Id: Ibfbeefb329359e92f2e048499df7b9c806fb3220
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180089
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-01-20 00:37:05 +00:00
Lasse R.H. Nielsen
073f792b59
Makes _propagateToListeners not recurse unboundedly.
...
Change-Id: I85818282276e8a5ab4a639e98c238c2a822cab9e
TEST=Added regression test.
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179770
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Johnni Winther <johnniwinther@google.com >
2021-01-19 16:47:32 +00:00
Clement Skau
9978a246c1
Reland "[VM] Adds Future.then and Future.catchError stack unwinding."
...
This reverts commit 978b838461 .
Reason for revert: Fix: https://dart-review.googlesource.com/c/sdk/+/179762
TEST=Various 'causal' tests updated below.
Original change's description:
> Revert "[VM] Adds Future.then and Future.catchError stack unwinding."
>
> This reverts commit 8f2c47f24b .
>
> Reason for revert: We suspect this is causing VM crashes: http://b/177506826
>
> Original change's description:
> > [VM] Adds Future.then and Future.catchError stack unwinding.
> >
> > TEST=Various 'causal' tests updated below.
> >
> > Bug: https://github.com/dart-lang/sdk/issues/40815 , https://github.com/dart-lang/sdk/issues/37953
> > Change-Id: I1420d6163ac2e3b22e0971f7b0ad516895dded70
> > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176662
> > Commit-Queue: Clement Skau <cskau@google.com >
> > Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
>
> TBR=vegorov@google.com ,cskau@google.com
>
> # Not skipping CQ checks because original CL landed > 1 day ago.
>
> Bug: https://github.com/dart-lang/sdk/issues/40815
> Bug: https://github.com/dart-lang/sdk/issues/37953
> Change-Id: I870f0202f43588f71a5d2b0f82338978b5a5dda9
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178998
> Reviewed-by: Michal Terepeta <michalt@google.com >
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
> Commit-Queue: Michal Terepeta <michalt@google.com >
TBR=vegorov@google.com ,cskau@google.com ,michalt@google.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: https://github.com/dart-lang/sdk/issues/40815
Bug: https://github.com/dart-lang/sdk/issues/37953
Change-Id: I8a1eb6679b01571b850499cac2dadc5bf9ef2dcd
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/179763
Reviewed-by: Clement Skau <cskau@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Commit-Queue: Clement Skau <cskau@google.com >
2021-01-18 12:15:49 +00:00
Michal Terepeta
978b838461
Revert "[VM] Adds Future.then and Future.catchError stack unwinding."
...
This reverts commit 8f2c47f24b .
Reason for revert: We suspect this is causing VM crashes: http://b/177506826
Original change's description:
> [VM] Adds Future.then and Future.catchError stack unwinding.
>
> TEST=Various 'causal' tests updated below.
>
> Bug: https://github.com/dart-lang/sdk/issues/40815 , https://github.com/dart-lang/sdk/issues/37953
> Change-Id: I1420d6163ac2e3b22e0971f7b0ad516895dded70
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176662
> Commit-Queue: Clement Skau <cskau@google.com >
> Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
TBR=vegorov@google.com ,cskau@google.com
# Not skipping CQ checks because original CL landed > 1 day ago.
Bug: https://github.com/dart-lang/sdk/issues/40815
Bug: https://github.com/dart-lang/sdk/issues/37953
Change-Id: I870f0202f43588f71a5d2b0f82338978b5a5dda9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178998
Reviewed-by: Michal Terepeta <michalt@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
Commit-Queue: Michal Terepeta <michalt@google.com >
2021-01-14 13:56:53 +00:00
Clement Skau
8f2c47f24b
[VM] Adds Future.then and Future.catchError stack unwinding.
...
TEST=Various 'causal' tests updated below.
Bug: https://github.com/dart-lang/sdk/issues/40815 , https://github.com/dart-lang/sdk/issues/37953
Change-Id: I1420d6163ac2e3b22e0971f7b0ad516895dded70
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176662
Commit-Queue: Clement Skau <cskau@google.com >
Reviewed-by: Vyacheslav Egorov <vegorov@google.com >
2021-01-13 08:00:14 +00:00
Ben Konyi
cf41a580eb
[ package:vm_service ] Fix analysis error from https://dart.googlesource.com/sdk/+/fb5ffc827580ae49cd4611d3ddf0ad3c7c592c54
...
TEST=N/A
Change-Id: Iaa70b98d4918c9cfd38c32e197411318bb2cf7ac
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/178301
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-01-09 01:16:22 +00:00
Ben Konyi
fb5ffc8275
[ package:vm_service] Output null-safe code from package:vm_service code generator
...
TEST=Existing VM service tests
Change-Id: Ia3877927f8c761c8f37a37f1efe87221cc1ac2aa
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/156980
Reviewed-by: Gary Roumanis <grouma@google.com >
2021-01-08 21:19:38 +00:00
Ben Konyi
67a4bbb60b
[ package:vm_service ] Ensure VmService.onDone doesn't complete until the provided dispose handler has finished
...
Fixes https://github.com/dart-lang/sdk/issues/43940
TEST=regress_43940_test.dart
Fixed: 43940
Change-Id: I7ad57e0c35a91bf1e1e3dada6662b33b59e2d7bf
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/176922
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Jacob Richman <jacobr@google.com >
2021-01-05 23:39:29 +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
Lasse R.H. Nielsen
6e29700e16
Update List constructor documentation, deprecate constructor.
...
Emphasize that the operation is going away,
and mark constructor as deprecated.
TEST= Refactoring+deprecation only, covered by existing tests.
Change-Id: I82aa044cd2cf7bf347b624371399f44bda8f4a07
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/173261
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2020-12-07 16:20:28 +00:00
Clement Skau
2d36c85ff8
[vm] Removes support for --causal-async-stacks
...
All existing embedders have been opted into --lazy-async-stacks, the
VM also uses it as it's default in all configurations.
After this CL, any user of --causal-async-stacks will get an error
message when trying to use it.
=> In any such case, please simply remove the flag.
TEST=Exhaustive CQ.
Bug: https://github.com/dart-lang/sdk/issues/37668
Change-Id: Ia440afcf2dba464aa8b8cf381b93bbac8eb9f8dc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172564
Commit-Queue: Clement Skau <cskau@google.com >
Reviewed-by: Clement Skau <cskau@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2020-12-01 07:27:14 +00:00
Clement Skau
75a5ba9a21
[VM] Adds un-inlining for Service getStackTrace.
...
This adds back special handling of sync frames which was previously
dropped in 171584.
This is however needed to un-inline optimised frames.
https://dart-review.googlesource.com/c/sdk/+/171584
TEST=python tools/test.py -n dartk-linux-debug-x64 pkg/vm_service/test/get_stack_test
Bug: https://github.com/dart-lang/sdk/issues/44206
Change-Id: Ia24b24c05a1e5f4257b3723bc6e6d3d1dbac9c93
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/172220
Reviewed-by: Martin Kustermann <kustermann@google.com >
Commit-Queue: Martin Kustermann <kustermann@google.com >
Auto-Submit: Clement Skau <cskau@google.com >
2020-11-16 17:05:08 +00:00
Clement Skau
c209f1c1b8
[VM] Fix invisible frames in CollectAsyncLazyStackTrace().
...
TEST=python tools/test.py -n dartk-linux-debug-x64 pkg/vm_service/test/get_stack_test
Bug: https://github.com/dart-lang/sdk/issues/44138
Change-Id: Ief59d581166411ea939df8b648473f31060282e9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/171584
Commit-Queue: Clement Skau <cskau@google.com >
Reviewed-by: Martin Kustermann <kustermann@google.com >
2020-11-12 16:21:26 +00:00
Ben Konyi
89de1e82d9
[ VM / Service ] Add optional 'limit' parameter to getStack RPC
...
Allows for clients to request the top N frames of the current stack.
Fixes https://github.com/dart-lang/sdk/issues/43826
Change-Id: Ia8d38e6317373024382a5e857faff73c89a0d2c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169980
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Reviewed-by: Gary Roumanis <grouma@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-11-03 21:39:37 +00:00
Ming Lyu (CareF)
2613251b4d
typo fix
...
Fix a spell typo
Closes https://github.com/dart-lang/sdk/pull/43127
https://github.com/dart-lang/sdk/pull/43127
GitOrigin-RevId: 32c2b39492d6b1dc5a66c7d8f2f99a0230200cf0
Change-Id: I393e4ed66ed7c6a9aef5cac7ae3bcef15a0d0e55
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/159500
Reviewed-by: Michael Thomsen <mit@google.com >
2020-11-02 09:32:15 +00:00
Ben Konyi
d5118d5fc8
Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
...
This reverts commit f78c40e32a .
Change-Id: Id838b39afcb371d3b50f0009322ecf0fb2080894
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169461
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-10-29 02:52:03 +00:00
Devon Carew
c877d5bf3e
[pkg/vm_service] remove three deprecation warnings
...
Change-Id: I902fb07a37c8cefb9867db7a6987e8a63b3d832c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169284
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2020-10-28 17:38:25 +00:00
Tess Strickland
f78c40e32a
Revert "Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional""
...
This reverts commit a5d4511847 .
Reason for revert: Failure in test standalone_2/io/unix_socket_test on reload bots, see https://github.com/dart-lang/sdk/issues/43952 .
Original change's description:
> Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
>
> This reverts commit b71477a2a6 .
>
> Change-Id: Iba11c41e43ec8c08b48147bbd07b71a151c3d1e6
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169243
> Reviewed-by: Ryan Macnak <rmacnak@google.com >
> Commit-Queue: Ben Konyi <bkonyi@google.com >
TBR=bkonyi@google.com ,rmacnak@google.com
Change-Id: I2ac1f18fef03d29bf74df4f49a91406a26f1ce26
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169323
Reviewed-by: Tess Strickland <sstrickl@google.com >
Commit-Queue: Tess Strickland <sstrickl@google.com >
2020-10-28 10:51:40 +00:00
Ben Konyi
a5d4511847
Reland "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
...
This reverts commit b71477a2a6 .
Change-Id: Iba11c41e43ec8c08b48147bbd07b71a151c3d1e6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169243
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-10-28 00:49:11 +00:00
Kenzie Schmoll
76118806bd
[dart:io / Service] Rename State class to _State to avoid class name conflicts with Flutter
...
Change-Id: If252628b39d4f38f5d67b76f8fdd7195e9975b79
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169245
Reviewed-by: Ben Konyi <bkonyi@google.com >
2020-10-27 23:38:53 +00:00
Ben Konyi
b71477a2a6
Revert "[ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional"
...
This reverts commit 5bf9163e1b .
Reason for revert: Tests failing on bots.
Original change's description:
> [ Service / dart:isolate ] Added getPorts RPC and 'debugName' optional
> parameter for ReceivePort and RawReceivePort
>
> This change collects additional information related to ReceivePort
> allocation locations and an optional debug name that will be displayed
> by tooling. ReceivePort is now a special InstanceKind and a ReceivePort
> @Instance will include the port ID, allocation stack trace, and debug
> name.
>
> Change-Id: I003cfff2b7649218e37d9b653c0e953df5d992e7
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/167902
> Reviewed-by: Ryan Macnak <rmacnak@google.com >
TBR=bkonyi@google.com ,rmacnak@google.com ,asiva@google.com
Change-Id: I39c3abb07c8c40c158eb4549749b076399bccce9
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169160
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2020-10-27 03:14:30 +00:00