[tools] download traces only from non-resident runs (#3615)
This commit is contained in:
@@ -224,6 +224,8 @@ Future<int> startApp(
|
||||
|
||||
if (!result.started)
|
||||
printError('Error running application on ${device.name}.');
|
||||
else if (traceStartup)
|
||||
await _downloadStartupTrace(result.observatoryPort, device);
|
||||
|
||||
return result.started ? 0 : 2;
|
||||
}
|
||||
@@ -318,9 +320,6 @@ Future<int> startAppStayResident(
|
||||
return 2;
|
||||
}
|
||||
|
||||
if (traceStartup)
|
||||
await _downloadStartupTrace(debuggingOptions.observatoryPort, device);
|
||||
|
||||
Completer<int> exitCompleter = new Completer<int>();
|
||||
|
||||
void complete(int exitCode) {
|
||||
|
||||
Reference in New Issue
Block a user