Commit 81af5937 authored by Yegor's avatar Yegor

[tools] download traces only from non-resident runs (#3615)

parent 50b1b16d
......@@ -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) {
......
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