Unverified Commit dcf05afc authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Add some trace statements to flutter_tools (#16990)

parent cd90a1ed
...@@ -216,7 +216,7 @@ class ResidentCompiler { ...@@ -216,7 +216,7 @@ class ResidentCompiler {
final String frontendServer = artifacts.getArtifactPath( final String frontendServer = artifacts.getArtifactPath(
Artifact.frontendServerSnapshotForEngineDartSdk Artifact.frontendServerSnapshotForEngineDartSdk
); );
final List<String> args = <String>[ final List<String> command = <String>[
artifacts.getArtifactPath(Artifact.engineDartBinary), artifacts.getArtifactPath(Artifact.engineDartBinary),
frontendServer, frontendServer,
'--sdk-root', '--sdk-root',
...@@ -226,26 +226,27 @@ class ResidentCompiler { ...@@ -226,26 +226,27 @@ class ResidentCompiler {
'--target=flutter', '--target=flutter',
]; ];
if (outputPath != null) { if (outputPath != null) {
args.addAll(<String>['--output-dill', outputPath]); command.addAll(<String>['--output-dill', outputPath]);
} }
if (packagesFilePath != null) { if (packagesFilePath != null) {
args.addAll(<String>['--packages', packagesFilePath]); command.addAll(<String>['--packages', packagesFilePath]);
} }
if (_trackWidgetCreation) { if (_trackWidgetCreation) {
args.add('--track-widget-creation'); command.add('--track-widget-creation');
} }
if (_packagesPath != null) { if (_packagesPath != null) {
args.addAll(<String>['--packages', _packagesPath]); command.addAll(<String>['--packages', _packagesPath]);
} }
if (_fileSystemRoots != null) { if (_fileSystemRoots != null) {
for (String root in _fileSystemRoots) { for (String root in _fileSystemRoots) {
args.addAll(<String>['--filesystem-root', root]); command.addAll(<String>['--filesystem-root', root]);
} }
} }
if (_fileSystemScheme != null) { if (_fileSystemScheme != null) {
args.addAll(<String>['--filesystem-scheme', _fileSystemScheme]); command.addAll(<String>['--filesystem-scheme', _fileSystemScheme]);
} }
_server = await processManager.start(args); printTrace(command.join(' '));
_server = await processManager.start(command);
_server.stdout _server.stdout
.transform(utf8.decoder) .transform(utf8.decoder)
.transform(const LineSplitter()) .transform(const LineSplitter())
......
...@@ -596,6 +596,7 @@ class _FlutterPlatform extends PlatformPlugin { ...@@ -596,6 +596,7 @@ class _FlutterPlatform extends PlatformPlugin {
final File vmPlatformStrongDill = fs.file( final File vmPlatformStrongDill = fs.file(
artifacts.getArtifactPath(Artifact.platformKernelDill), artifacts.getArtifactPath(Artifact.platformKernelDill),
); );
printTrace('Copying platform.dill file from ${vmPlatformStrongDill.path}');
final File platformDill = vmPlatformStrongDill.copySync( final File platformDill = vmPlatformStrongDill.copySync(
tempBundleDirectory tempBundleDirectory
.childFile('platform.dill') .childFile('platform.dill')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment