Reduce noise on the memory benchmarks (#19630)

- Check memory usage in release builds, not profile.
- Use multiple runs and average the results.
This commit is contained in:
Ian Hickson
2018-08-02 12:22:15 -07:00
committed by GitHub
parent 1f7082dbd8
commit 8eb5cb7dc0
21 changed files with 564 additions and 220 deletions

View File

@@ -244,7 +244,7 @@ Future<Null> forceQuitRunningProcesses() async {
// Whatever's left, kill it.
for (ProcessInfo p in _runningProcesses) {
print('Force quitting process:\n$p');
print('Force-quitting process:\n$p');
if (!p.process.kill()) {
print('Failed to force quit process');
}
@@ -528,8 +528,6 @@ int parseServicePort(String line, {
// e.g. "An Observatory debugger and profiler on ... is available at: http://127.0.0.1:8100/"
final RegExp pattern = new RegExp('$prefix(\\S+:(\\d+)/\\S*)\$', multiLine: multiLine);
final Match match = pattern.firstMatch(line);
print(pattern);
print(match);
return match == null ? null : int.parse(match.group(2));
}