nanobench: flush after recording every Nth data point.
authormtklein <mtklein@chromium.org>
Tue, 14 Oct 2014 15:40:43 +0000 (08:40 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Oct 2014 15:40:43 +0000 (08:40 -0700)
commite070c2bf54c451f0126d4ffb3a48bffe1fbfa437
treecf7fc2fe14f08726e2f7b8819ab40b752dd4733e
parentb2d77e4d7458145ef4825c28323d9fbbb6b003ac
nanobench: flush after recording every Nth data point.

Got to keep our precious data in event of a crash.

With --flushEvery 10 I'm not seeing this cost any wall time.

BUG=skia:

Review URL: https://codereview.chromium.org/653083003
bench/ResultsWriter.h
bench/nanobench.cpp