complete method
void
complete()
Emits bounded manifest batches, then a compact complete with count +
checksum so hundreds of screenshots never exceed the logcat line limit.
Implementation
void complete() {
return RunnerBenchmark.sync('artifact', 'complete', () {
begin();
if (_completed) return;
_completed = true;
final digest = ensembleTestArtifactManifestSha256(_emitted);
for (final batch in ensembleTestArtifactManifestBatches(_emitted)) {
_emitRecord({
'event': 'manifest',
'runId': _runId,
'artifacts': batch,
});
}
_emitRecord({
'event': 'complete',
'runId': _runId,
'count': _emitted.length,
'sha256': digest,
});
});
}