Improve message when saving compilation training data. (#26084)

This commit is contained in:
Stanislav Baranov
2019-01-04 11:57:32 -08:00
committed by GitHub
parent 31ed3e5f81
commit acdd9206aa
2 changed files with 7 additions and 7 deletions

View File

@@ -602,8 +602,12 @@ abstract class ResidentRunner {
for (FlutterDevice device in flutterDevices) {
for (FlutterView view in device.views) {
final int index = device.views.indexOf(view);
printStatus('Saving compilation training file for '
'${device.device.name}${index == 0 ? '' :'/Isolate$index'}...');
final File outputFile = fs.currentDirectory
.childFile('compilation${index == 0 ? '' : index}.txt');
printStatus('Saving compilation training data '
'for ${device.device.name}${index == 0 ? '' :'/Isolate$index'} '
'to ${fs.path.relative(outputFile.path)}...');
List<int> buffer;
try {
@@ -614,12 +618,8 @@ abstract class ResidentRunner {
continue;
}
final File outputFile = fs.currentDirectory
.childFile('compilation${index == 0 ? '' : index}.txt');
outputFile.parent.createSync(recursive: true);
outputFile.writeAsBytesSync(buffer);
printStatus('Compilation training written to ${fs.path.relative(outputFile.path)}.');
}
}
}

View File

@@ -147,7 +147,7 @@ class ColdRunner extends ResidentRunner {
}
if (haveDetails && !details) {
if (saveCompilationTrace) {
printStatus('Runtime compilation trace will be saved when flutter run quits...');
printStatus('Compilation training data will be saved when flutter run quits...');
}
printStatus('For a more detailed help message, press "h". To quit, press "q".');
} else if (haveAnything) {