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

@@ -360,11 +360,11 @@ Future<Null> _buildGradleProjectV2(
command.add(assembleTask);
final int exitCode = await runCommandAndStreamOutput(
command,
workingDirectory: flutterProject.android.directory.path,
allowReentrantFlutter: true,
environment: _gradleEnv,
filter: logger.isVerbose ? null : ndkMessageFilter,
command,
workingDirectory: flutterProject.android.directory.path,
allowReentrantFlutter: true,
environment: _gradleEnv,
filter: logger.isVerbose ? null : ndkMessageFilter,
);
status.stop();

View File

@@ -302,10 +302,11 @@ String runSync(List<String> cmd, {
void _traceCommand(List<String> args, { String workingDirectory }) {
final String argsText = args.join(' ');
if (workingDirectory == null)
printTrace(argsText);
else
printTrace('[$workingDirectory${fs.path.separator}] $argsText');
if (workingDirectory == null) {
printTrace('executing: $argsText');
} else {
printTrace('executing: [$workingDirectory${fs.path.separator}] $argsText');
}
}
String _runWithLoggingSync(List<String> cmd, {