dart-sdk/pkg/vm_service
Jens Johansen 856139bfc3 [VM] Add RecordCoverage to InstanceCall and StaticCall
Before this CL, becase of optimizations, coverage of some of these goes
away, making coverage unreliable.

I believe this fixes the issues for "regular" runs (at least it seems to
be stable on the CFE coverage tests).

If setting `--optimization-counter-threshold=-1` there'll still be
trouble though and we would have to also insert these calls in the start
of FunctionBody and the start of FieldInitializer for it to produce the
same results.

TEST=pkg/vm_service/test/coverage_instance_call_after_optimization_test.dart,pkg/vm_service/test/coverage_static_call_after_optimization_test.dart

Bug: https://github.com/dart-lang/sdk/issues/42061
Bug: https://github.com/dart-lang/sdk/issues/55959
Bug: https://github.com/dart-lang/sdk/issues/56018

Change-Id: I34947f0d4b123e52ce67b71a195782d31e4bda16
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370501
Commit-Queue: Jens Johansen <jensj@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2024-06-17 10:47:58 +00:00
..
example [ package:vm_service ] Enable recommended_lints for tests 2023-11-13 19:54:40 +00:00
java [ package:vm_service* ] Prepare for release of package:vm_service 14.2.0 and package:vm_service_interface 1.1.0 2024-03-20 13:34:07 +00:00
lib [vm_service] Decode incoming JSON in one step instead of two 2024-06-13 11:53:40 +00:00
test [VM] Add RecordCoverage to InstanceCall and StaticCall 2024-06-17 10:47:58 +00:00
tool [ package:vm_service ] Add missing code to code generator 2024-06-13 15:03:49 +00:00
.gitignore [vm service] generate the Java version of the library with the Dart version 2019-08-04 23:42:22 +00:00
analysis_options.yaml [vm_service] Update generator to unignore use_super_parameters lint 2023-12-07 20:31:11 +00:00
CHANGELOG.md [ package:vm_service ] Prepare for 14.2.4 release 2024-06-14 14:01:58 +00:00
CONTRIBUTING.md Split package:vm_service into package:vm_service and package:vm_service_interface 2023-10-23 17:00:10 +00:00
LICENSE Update LICENSE 2021-04-07 10:28:38 +00:00
OWNERS Also add global owners to CFE/VM packages 2023-11-27 14:35:52 +00:00
pubspec.yaml [ package:vm_service ] Prepare for 14.2.4 release 2024-06-14 14:01:58 +00:00
README.md Split package:vm_service into package:vm_service and package:vm_service_interface 2023-10-23 17:00:10 +00:00

pub package package publisher

A library to access the VM Service Protocol.

Usage

See the example for a simple use of the library's API.

The VM Service Protocol specification can be found at github.com/dart-lang/sdk/runtime/vm/service/service.md.

Features and bugs

Please file feature requests and bugs at the issue tracker.