commit | cb69b509129375c1352b6d57b9ef346afe25bc0e | [log] [tgz] |
---|---|---|
author | Jens Johansen <jensj@google.com> | Tue Jun 15 10:32:54 2021 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Tue Jun 15 10:32:54 2021 +0000 |
tree | 3352fac0099be25ea825210856bc0b5d6f2a8096 | |
parent | b21e12aebf53717cdba9f0e8ef88ac11ec54a4d7 [diff] |
[CFE] Use '_getInstancesAsArray' to find leaks This CL changes the leak finding from using heap dumps to using the undocumented (/ private?) method '_getInstancesAsArray' to get all instances of specific clases (i.e. the one(s) we're finding leaks for). This - I'm hoping - is more stable than the heap dump version (which, though, seems to have become more stable over the last weeks). It is also potentially faster: The speed depends on how many different classes we want to look at to find leaks. In the flutter compilation leak tests we only look for one and it finishes in ~78% of the time it did before. That's (rounding at bit) going from ~6 hours to ~4.5 hours. In vm_service_for_leak_detection.dart - that looks at four different classes - it's something like 26% slower though. Change-Id: Ic8abb1b293137b166ab0935eae423b60e2d4562b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202762 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Johnni Winther <johnniwinther@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.