Refine bench_record and bench_playback:
authormtklein <mtklein@chromium.org>
Mon, 16 Jun 2014 21:04:32 +0000 (14:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 16 Jun 2014 21:04:34 +0000 (14:04 -0700)
commit90c471e73fb0bd09aef8ad1e3f0842e5d46fb342
tree09796391108d88282b20bb931f7337cea90640aa
parentad2ab61b4eec0ae43f213af3f18ffe373fe8c4aa
Refine bench_record and bench_playback:

  - use high-precision wall timer only
  - warm caches once before measuring
  - measure independent samples, calculating statistics
  - add --verbose to control how much data we output

Also removed some unloved features from bench_record.

BUG=skia:
R=jcgregorio@google.com, mtklein@google.com

Author: mtklein@chromium.org

Review URL: https://codereview.chromium.org/338203002
bench/BenchTimer.cpp
bench/BenchTimer.h
tools/Stats.h [new file with mode: 0644]
tools/bench_playback.cpp
tools/bench_record.cpp