devtools_app 0.1.11

  • Readme
  • Changelog
  • Installing
  • 39

Build Status

What is this? #

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. All of the core logic for the devtools app is in package:devtools_app with package:devtools just serving as a container to serve precompiled versions of the app for easy use with pub global activate.

Getting started #

For documentation on installing and trying out DevTools, please see our docs.

Feedback #

Feedback and issues are best reported at https://github.com/flutter/devtools/issues. Thanks for trying out DevTools!

Terms and Privacy #

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

See the changelog for package:devtools which should list all changes to package:devtools_app as it is the user visible package for this work.

Use this package as a library

1. Depend on it

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


dependencies:
  devtools_app: ^0.1.11

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support 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_app/debugger_html_plugin.dart';
import 'package:devtools_app/devtools.dart';
import 'package:devtools_app/html_main.dart';
import 'package:devtools_app/main.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
95
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
39
Learn more about scoring.

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

  • Dart: 2.7.0
  • pana: 0.13.4
  • Flutter: 1.12.13+hotfix.5

Health suggestions

Fix lib/src/service_manager.dart. (-2.96 points)

Analysis of lib/src/service_manager.dart reported 6 hints, including:

line 109 col 34: Close instances of dart.core.Sink.

line 150 col 40: Close instances of dart.core.Sink.

line 559 col 11: Close instances of dart.core.Sink.

line 681 col 51: Close instances of dart.core.Sink.

line 723 col 34: Close instances of dart.core.Sink.

Fix lib/src/table_data.dart. (-1.49 points)

Analysis of lib/src/table_data.dart reported 3 hints:

line 79 col 44: Close instances of dart.core.Sink.

line 454 col 29: Close instances of dart.core.Sink.

line 459 col 29: Close instances of dart.core.Sink.

Fix lib/src/service.dart. (-0.50 points)

Analysis of lib/src/service.dart reported 1 hint:

line 120 col 29: Close instances of dart.core.Sink.

Maintenance issues and suggestions

Make sure dartdoc successfully runs on your package's source files. (-10 points)

exitCode: 255 stdout: parsing /tmp/pub-dartlang-dartdocLEYTMZ/pkg/lib/html_main.dart... parsing /tmp/pub-dartlang-dartdocLEYTMZ/pkg/lib/debugger_html_plugin.dart... parsing /tmp/pub-dartlang-dartdocLEYTMZ/pkg/lib/main.dart... parsing /tmp/pub-dartlang-dartdocLEYTMZ/pkg/lib/devtools.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/collection/collection.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/developer/developer.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/internal/internal.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_interceptors/interceptors.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/io/io.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/isolate/isolate.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/convert/convert.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/async/async.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/typed_data/typed_data.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_empty.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/js_util/js_util_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/html/html_dart2js.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/math/math.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/core/core.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/_http/http.dart... parsing /flutter/bin/cache/pkg/sky_engine/lib/ui/ui.dart... [...] parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/vector_math-2.0.8/lib/vector_math_geometry.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/intl_standalone.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/date_symbol_data_file.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/date_symbol_data_local.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/date_symbol_data_custom.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/intl_browser.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/message_lookup_by_library.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/date_time_patterns.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/date_symbol_data_http_request.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/locale.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/intl-0.16.1/lib/message_format.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/http-0.12.0+4/lib/io_client.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/http-0.12.0+4/lib/browser_client.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/http-0.12.0+4/lib/testing.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/web_socket_channel-1.1.0/lib/status.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/web_socket_channel-1.1.0/lib/io.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/web_socket_channel-1.1.0/lib/html.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/isolate_channel.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/codemirror-0.5.13+5.50.2/lib/hints.dart... parsing /tmp/pub-cache-dirZLUVSR/hosted/pub.dartlang.org/codemirror-0.5.13+5.50.2/lib/panel.dart... stderr: Documenting devtools_app... Unhandled exception: Stack Overflow #0 _StringBase.== (dart:core-patch/string_patch.dart:278:7) #1 InterfaceTypeImpl.isDartAsyncFutureOr (package:analyzer/src/dart/element/type.dart:1058:15) #2 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1295:12) #3 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) #4 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #5 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #6 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1321:13) #7 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #8 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #9 Dart2TypeSystem._isInterfaceSubtypeOf (package:analyzer/src/generated/type_system.dart:2197:16) #10 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1388:14) #11 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) #12 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #13 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #14 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1321:13) #15 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #16 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #17 Dart2TypeSystem._isInterfaceSubtypeOf (package:analyzer/src/generated/type_system.dart:2197:16) #18 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1388:14) #19 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) #20 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #21 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #22 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1321:13) #23 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #24 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #25 Dart2TypeSystem._isInterfaceSubtypeOf (package:analyzer/src/generated/type_system.dart:2197:16) #26 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1388:14) #27 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) #28 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #29 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #30 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1321:13) #31 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #32 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #33 Dart2TypeSystem._isInterfaceSubtypeOf (package:analyzer/src/generated/type_system.dart:2197:16) #34 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1388:14) #35 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) #36 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #37 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #38 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1321:13) #39 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1289:14) #40 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1282:14) #41 Dart2TypeSystem._isInterfaceSubtypeOf (package:analyzer/src/generated/type_system.dart:2197:16) #42 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1388:14) #43 Dart2TypeSystem.isSubtypeOf (package:analyzer/src/generated/type_system.dart:1367:11) ... ... #6909 NamedExpressionImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7278:18) #6910 ResolverVisitor.visitNamedExpression (package:analyzer/src/generated/resolver.dart:1552:10) #6911 NamedExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:7273:49) #6912 ArgumentListImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7520:20) #6913 ResolverVisitor.visitArgumentList (package:analyzer/src/generated/resolver.dart:1552:10) #6914 ResolverVisitor.visitInstanceCreationExpression (package:analyzer/src/generated/resolver.dart:278:37) #6915 InstanceCreationExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:6048:15) #6916 ReturnStatementImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:8508:18) #6917 ResolverVisitor.visitReturnStatement (package:analyzer/src/generated/resolver.dart:1552:10) #6918 ReturnStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:8504:49) #6919 BlockImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:7520:20) #6920 ScopedVisitor.visitBlock (package:analyzer/src/generated/resolver.dart:1552:10) #6921 BlockFunctionBodyImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1081:49) #6922 ScopedVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:1552:10) #6923 ResolverVisitor.visitBlockFunctionBody (package:analyzer/src/generated/resolver.dart:721:13) #6924 MethodDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1036:49) #6925 ResolverVisitor.visitNode (package:analyzer/src/generated/resolver.dart:1552:10) #6926 ScopedVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:2406:10) #6927 ResolverVisitor.visitMethodDeclaration (package:analyzer/src/generated/resolver.dart:1488:13) #6928 MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:6943:49) #6929 ScopedVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:3096:112088) #6930 ResolverVisitor.visitClassDeclaration (package:analyzer/src/generated/resolver.dart:764:13) #6931 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1519:49) #6932 ResolverVisitor.visitCompilationUnit (package:analyzer/src/generated/resolver.dart:806:23) #6933 LibraryAnalyzer._resolveFile (package:analyzer/src/dart/analysis/library_analyzer.dart:887:30324) #6934 LibraryAnalyzer.analyzeSync.

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (flutter_icons, sse, vm_service).

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_app.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.6.0 <3.0.0
ansi_up ^0.0.1 0.0.1+4.0.4
ansicolor ^1.0.2 1.0.2
codemirror ^0.5.10 0.5.13+5.50.2
collection ^1.14.11 1.14.11 1.14.12
devtools_server 0.1.12 0.1.12
flutter 0.0.0
flutter_icons ^0.3.1 0.3.1 1.0.0+1
flutter_web_plugins 0.0.0
flutter_widgets ^0.1.6 0.1.9
html_shim ^0.0.2 0.0.2
http ^0.12.0+1 0.12.0+4
intl ^0.16.0 0.16.1
js ^0.6.1+1 0.6.1+1
meta ^1.1.0 1.1.8
octicons_css ^0.0.1 0.0.1
path ^1.6.0 1.6.4
pedantic ^1.7.0 1.9.0
platform_detect ^1.3.5 1.4.0
plotly_js ^0.0.2 0.0.2
polymer_css ^0.0.1 0.0.1
primer_css ^0.0.2 0.0.2
split ^0.0.7 0.0.7
sse ^2.0.0 2.1.2 3.1.1
vm_service ^1.2.0 1.2.0 2.3.1
web_socket_channel ^1.1.0 1.1.0
Transitive dependencies
args 1.5.2
async 2.4.0
browser_launcher 0.1.5
charcode 1.1.2
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
html 0.14.0+3
http_multi_server 2.1.0
http_parser 3.1.3
logging 0.11.4
mime 0.9.6+3
pub_semver 1.4.2
quiver 2.1.2+1
shelf 0.7.5
shelf_static 0.2.8
sky_engine 0.0.99
source_span 1.6.0
stack_trace 1.9.3
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
usage 3.4.1
uuid 2.0.4
vector_math 2.0.8
Dev dependencies
build_runner ^1.3.0
build_test ^0.10.0
build_web_compilers >=2.6.2 <3.0.0
devtools
devtools_testing
flutter_test
matcher ^0.12.3 0.12.6
mockito ^4.0.0
test ^1.0.0
webkit_inspection_protocol ^0.5.0 0.5.0