| commit | 9474c2355d9eff50f759b45b2533e989dade778e | [log] [tgz] |
|---|---|---|
| author | Filip Filmar <fmil@google.com> | Wed Feb 17 04:34:10 2021 |
| committer | commit-bot@chromium.org <commit-bot@chromium.org> | Wed Feb 17 04:34:10 2021 |
| tree | 8cb8d8835ce1fc7f2618b3262b7b276eb8bda75c | |
| parent | ff6ddd297204510757f3616b31f7a1951fea1561 [diff] |
[vm] Replaces fuchsia.deprecatedtimezone (prior attempt was rolled back as it had a regression which was not caught by tests. Tests are fixed now at: https://fuchsia-review.googlesource.com/c/fuchsia/+/409840) The FIDL library fuchsia.deprecatedtimezone is going away. There are different and better ways to obtain the same functionality. This change removes the dependency on fuchsia.deprecatedtimezone from the Dart SDK. Adds inspect metrics that allow whitebox testing of the runners. Here's a sample `fx iquery` excerpt from a running device, showing both a dart and a flutter runner exposing the same OS diagnostic metrics. Adds support for asynchronous timezone updates, which was missing from previous versions of this commit. ``` /hub/c/dart_jit_runner.cmx/70981/out/diagnostics: /hub/c/dart_jit_runner.cmx/70981/out/diagnostics#os: dst_status = 0 get_profile_status = 0 timezone_content_status = 0 tz_data_close_status = 0 tz_data_status = 0 /hub/c/flutter_jit_runner.cmx/29567/out/diagnostics: /hub/c/flutter_jit_runner.cmx/29567/out/diagnostics#os: dst_status = 0 get_profile_status = 0 timezone_content_status = 0 tz_data_close_status = 0 tz_data_status = 0 ``` Under nominal operation, all of the above values should be equal to 0. Nonzero values indicate an error. This functionality is guarded by Fuchsia integration tests at //src/tests/intl. Tested: (compile locally for Fuchsia and deploy) fx test //src/tests/intl See: - https://github.com/dart-lang/sdk/issues/42245 - https://github.com/dart-lang/sdk/issues/39650 Fixes #39650 TEST=see Tested: above Change-Id: Icb72ddd554c263f970e18b9cbbaab7adf43c8710 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/155582 Auto-Submit: Filip Filmar <fmil@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Martin Kustermann <kustermann@google.com>
Dart is:
Optimized for UI: Develop with a programming language specialized around the needs of user interface creation.
Productive: Make changes iteratively: use hot reload to see the result instantly in your running app.
Fast on all platforms: Compile to ARM & x64 machine code for mobile, desktop, and backend. Or compile to JavaScript for the web.
Dart's flexible compiler technology lets you run Dart code in different ways, depending on your target platform and goals:
Dart Native: For programs targeting devices (mobile, desktop, server, and more), Dart Native includes both a Dart VM with JIT (just-in-time) compilation and an AOT (ahead-of-time) compiler for producing machine code.
Dart Web: For programs targeting the web, Dart Web includes both a development time compiler (dartdevc) and a production time compiler (dart2js).
Dart is free and open source.
See LICENSE and PATENT_GRANT.
Visit dart.dev to learn more about the language, tools, and to find codelabs.
Browse pub.dev for more packages and libraries contributed by the community and the Dart team.
Our API reference documentation is published at api.dart.dev, based on the stable release. (We also publish docs from our beta and dev channels, as well as from the primary development branch).
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.