| commit | b1e59721d4cab44c0ba85d28066a106d5f19cea0 | [log] [tgz] |
|---|---|---|
| author | Daco Harkes <dacoharkes@google.com> | Mon Mar 06 10:28:33 2023 +0000 |
| committer | Commit Queue <dart-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 06 10:28:33 2023 +0000 |
| tree | 70f18cfff7c7ae23c41de12ad242cbc91a19b97d | |
| parent | 6f752165ea90d5035cec55a728098cfca642842a [diff] |
Revert "[vm] Remove tcmalloc and malloc profiler." This reverts commit c67fac9cb44c2262487728ba4b7874fd5a63614e. Reason for revert: Regresses `dart:io` performance and causes failures. https://github.com/dart-lang/sdk/issues/51639 Original change's description: > [vm] Remove tcmalloc and malloc profiler. > > The standalone VM originally began statically linking tcmalloc to work around bugs in the system malloc for Fiber. Later it used tcmalloc's hooks to implement a profiler, but this is rarely used since it is only available in debug mode, misses early allocations, and often misses late allocations from an exhausted sample buffer. Removing it altogether avoids build complexity around which combinations of compiler/architecture/sysroot support tcmalloc, and reduces binary size. > > TEST=ci > Change-Id: I4b259e18b82b2d12a2a60962aabf83bd8d997d19 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286120 > Reviewed-by: Ben Konyi <bkonyi@google.com> > Commit-Queue: Ryan Macnak <rmacnak@google.com> Change-Id: I4395edd6f5bd7e26b4e38f4d931ad2ea67afba18 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/286925 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Reviewed-by: Slava Egorov <vegorov@google.com> Commit-Queue: Daco Harkes <dacoharkes@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.