Flutter Engine
The Flutter Engine
|
field for
PatchClass` until we change the SDK lower bound for this package to a version that does not have it.package:lints
2.0.repository
field.CallGraphNode.dominator
nullable.deps-display-depth
(-d
) flag for summary
command to make the display depth of outputted dependency trees configurable.deps-collapse-depth
(formerly -d
) flag for summary
command to deps-start-depth
(now -s
).generateCallGraphWithDominators
method that generates a CallGraph
object from precompiler trace.compareProgramInfo
that takes in two program info objects and outputs a Map
object containing the diff data.package:foo.bar.baz/src/foobar.dart
commands
back to lib.dart:io
dependency from package lib
, and move commands
to bin
.loadProgramInfo
util method with loadProgramInfoFromJson
, which expects an Object
parameter instead of a File
parameter.buildComparisonTreemap
now expects two Object
parameters for oldJson
and newJson
instead of two File
parameters.compare
command now prints difference breakdown by node type when this information is available.buildComparisonTreemap
for constructing treemap representing the diff between two size profiles.--trace-precompiler-to
flag), see precompiler_trace.dart
.explain dynamic-calls
which estimates the impact of different dynamic calls on the resulting AOT snapshot size using information from the size dump (e.g. V8 snapshot profile) and AOT compiler trace.summary
command can now use information from the AOT compiler trace to group packages/libraries together with their dependencies to given more precise estimate of how much a specific package/library brings into the snapshot.TreemapFormat format
parameter and from CLI via --format
flag. The following options are availablecollapsed
essentially renders ProgramInfo
as a treemap, individual snapshot nodes are ignored.simplified
same as collapsed
, but also folds size information from nested functions into outermost function (e.g. top level function or a method) producing easy to consume output.data-and-code
collapses snapshot nodes based on whether they represent data or executable code.object-type
(default) collapses snapshot nodes based on their type only.ProgramInfo
from a V8 snapshot profile no longer create ProgramInfoNode
for Code
nodes which are owned by a function - instead directly attribute the Code
node itself and all retained nodes into ProgramInfoNode
for the function itself. For stubs (including allocation stubs) create an artificial functionNode
instead of using NodeType.other
. The only remaining use of NodeType.other
is for fields.ProgramInfoNode
should be attributed to that ProgramInfoNode
and not to its parent. For example Function
node corresponds to ProgramInfoNode
of type functionNode
, previously the size of Function
node would be attributed to the parent of this ProgramInfoNode
, but it should be attributed to the node itself.README.md
to include more information on how to pass flags to Dart AOT compiler.ProgramInfoNode.size
documentation to clarify the meaning of the member.