Flutter debug flutter_tools 和 gen_snapshot

推荐使用AndroidStudio打开flutter_tools工程


image.png
/Users/kila/flutter/packages/flutter_tools/bin/flutter_tools.dart
driver --target=test_driver/scroll_perf.dart --verbose 
/Users/kila/flutter/examples/flutter_gallery

debug build bundle

--packages=/Users/kila/flutter/examples/flutter_gallery/.packages --verbose build bundle --target-platform=ios --target=/Users/kila/flutter/examples/flutter_gallery/test_driver/scroll_perf.dart --debug --depfile=build/snapshot_blob.bin.d --asset-dir=/Users/kila/flutter/examples/flutter_gallery/ios/Flutter/App.framework/flutter_assets

编译ios_debug_unopt

./flutter/tools/gn --runtime-mode=debug --ios --ios-cpu=arm64 --unoptimized --full-dart-debug
ninja -C out/ios_debug_unopt

打开out/ios_debug_unopt/all.workspace
配置可执行文件


image.png

配置参数


image.png

执行
image.png

具体参数

--causal_async_stacks --deterministic --snapshot_kind=app-aot-assembly --assembly=/Users/kila/flutter/examples/flutter_gallery/build/aot/arm64/snapshot_assembly.S /Users/kila/flutter/examples/flutter_gallery/build/aot/app.dill

你可能感兴趣的:(Flutter debug flutter_tools 和 gen_snapshot)