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 {
final String frontendServer = artifacts.getArtifactPath(
Artifact.frontendServerSnapshotForEngineDartSdk
);
final List<String> args = <String>[
final List<String> command = <String>[
artifacts.getArtifactPath(Artifact.engineDartBinary),
frontendServer,
'--sdk-root',
......@@ -226,26 +226,27 @@ class ResidentCompiler {
'--target=flutter',
];
if (outputPath != null) {
args.addAll(<String>['--output-dill', outputPath]);
command.addAll(<String>['--output-dill', outputPath]);
}
if (packagesFilePath != null) {
args.addAll(<String>['--packages', packagesFilePath]);
command.addAll(<String>['--packages', packagesFilePath]);
}
if (_trackWidgetCreation) {
args.add('--track-widget-creation');
command.add('--track-widget-creation');
}
if (_packagesPath != null) {
args.addAll(<String>['--packages', _packagesPath]);
command.addAll(<String>['--packages', _packagesPath]);
}
if (_fileSystemRoots != null) {
for (String root in _fileSystemRoots) {
args.addAll(<String>['--filesystem-root', root]);
command.addAll(<String>['--filesystem-root', root]);
}
}
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
.transform(utf8.decoder)
.transform(const LineSplitter())
......
......@@ -596,6 +596,7 @@ class _FlutterPlatform extends PlatformPlugin {
final File vmPlatformStrongDill = fs.file(
artifacts.getArtifactPath(Artifact.platformKernelDill),
);
printTrace('Copying platform.dill file from ${vmPlatformStrongDill.path}');
final File platformDill = vmPlatformStrongDill.copySync(
tempBundleDirectory
.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