Memory/cpu/gpu benchmark for showing large images in succession (#64762)

This commit is contained in:
Dan Field
2020-08-31 10:03:57 -07:00
committed by GitHub
parent 3aa0243ab7
commit b5ed913ecc
10 changed files with 197 additions and 6 deletions

View File

@@ -1125,11 +1125,15 @@ class DevToolsMemoryTest {
.listen((String line) {
print('run stdout: $line');
final RegExpMatch match = RegExp(r'An Observatory debugger and profiler on .+ is available at: ((http|//)[a-zA-Z0-9:/=_\-\.\[\]]+)').firstMatch(line);
if (match != null) {
if (match != null && !observatoryUri.isCompleted) {
observatoryUri.complete(match[1]);
_observatoryUri = match[1];
}
}, onDone: () { observatoryUri.complete(null); });
}, onDone: () {
if (!observatoryUri.isCompleted) {
observatoryUri.complete();
}
});
_forwardStream(_runProcess.stderr, 'run stderr');
_observatoryUri = await observatoryUri.future;