[llvm-exegesis] InstructionBenchmark::writeYamlTo(): don't forget to flush()
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 7 May 2019 09:21:13 +0000 (09:21 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 7 May 2019 09:21:13 +0000 (09:21 +0000)
commit724a68f372c0c70eba3f8972c573aaa295a7b3d8
tree0bea02732b4e40fb86162df17fbc5af890c15701
parent79ea85c6afb56534e77adb908e9f553c319f30c0
[llvm-exegesis] InstructionBenchmark::writeYamlTo(): don't forget to flush()

This *APPEARS* to fix a *very* infuriating issue of Yaml's being corrupted,
partially written, truncated. Or at least i'm not seeing the issue
on a new benchmark sweep.

The issue is somewhat rare, happens maybe once in 1000 benchmarks.
Which means there are up to hundreds of broken benchmarks
for a full x86 sweep in a single mode.

llvm-svn: 360124
llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp