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:
@@ -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();
|
||||
|
||||
|
||||
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user