This is a companion repo to the main Flutter repo. It contains the source code for a suite of performance tools for Dart and Flutter.
Currently, the best way to try DevTools out is by running it as a pub globally activated package.
If you have
pub on your path, you can run:
pub global activate devtools
If you have
flutter on your path, you can run:
flutter packages pub global activate devtools
That will install (or update) DevTools on your machine.
Going forward, we expect to have additional (and easier!) distributions mechanisms for DevTools.
Next, run the local web server, which will serve the DevTools application itself.
Run one of the following two commands:
pub global run devtools (if you have
pub on your path)
flutter packages pub global run devtools (if you have
flutter on your path)
On the command-line, you should see output that looks something like:
Serving DevTools at http://127.0.0.1:9100
Next, start an app to connect to. This can be either a Flutter application or a Dart command-line application. The example below uses a Flutter app.
flutter run --observatory-port=9200
You'll need to have a device connected or a simulator open for
flutter run to work. Once the app
starts up, you'll be able to connect to it from devtools.
Using DevTools now is as simple as opening a local browser window and pointing the DevTools app to the running Flutter application. If you used the same ports as the example above, you can open:
This can also be done via the command line with
open http://localhost:9100/?port=9200. The first port
in the url is for the local server that is serving the DevTools web UI. The second port is to tell
DevTools itself which local app to connect to for debugging and inspection.
Feedback and issues are best reported at https://github.com/flutter/devtools/issues. Thanks for trying out DevTools!
You can install the package from the command line:
$ pub global activate devtools
The package has the following executables:
|0.0.6||Feb 20, 2019|
|0.0.5||Feb 20, 2019|
|0.0.4||Feb 19, 2019|
|0.0.3||Feb 7, 2019|
|0.0.2||Feb 7, 2019|
|0.0.1||Jan 30, 2019|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in libraries.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
devtools.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
Package is pre-v0.1 release. (-10 points)
While nothing is inherently wrong with versions of
0.0.*, it might mean that the author is still experimenting with the general direction of the API.
|Dart SDK||>=2.1.0-dev <3.0.0|