devtools_shared 0.2.3

  • Readme
  • Changelog
  • Installing
  • 90

What is this? #

This is a package shared between devtools_app, devtools_server, and external users accessing exported JSON files. This package contains structures describing the format of JSON files e.g., HeapSample, memory structures collected from the Dart VM (HeapSpace) and collected memory info from Android's ADB (AdbMemoryInfo).

Terms and Privacy #

By using Dart DevTools, you agree to the Google Terms of Service.

0.2.3 #

  • Coordinated release with DevTools 0.2.3.

0.2.2 #

  • Simplified devtools_api.dart.

0.2.1 #

  • Added devtools_api.dart to devtools_shared.

0.2.0 #

  • Added field to Memory JSON file "dartDevToolsScreen": "memory".

0.1.0 #

  • Updated MemoryJson to expose header and footer parts of the JSON file. The data portion is still the persisted List

0.0.1 #

  • initial release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  devtools_shared: ^0.2.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:devtools_shared/devtools_shared.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
84
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
90
Learn more about scoring.

We analyzed this package on Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and devtools_shared.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0