skia2/bench
scroggo@google.com 161e1ba4c0 Created my own flag parser, based off of gflags.
Share common code between bench_ and render_ to set up the PictureRenderer.
Fix an include error in SkPictureRenderer.h.
Simplified parameter passing in render_pictures_main.
Switch to using an SkAutoTUnref for the PictureRenderer.
I also changed the input format somewhat, so the buildbots need to be updated as well: https://codereview.appspot.com/7441044/
Fixed a bug in PictureBenchmark where calling setTimeIndividualTiles(false) sets the member variable to true.
Removed setDeviceType from PictureBenchmark, since only the PictureRenderer needs to know which device type to use.

Some changes to the input format:
'--logPerIter' no longer takes a 1 or 0. Instead, '--logPerIter'
turns it on and '--nologPerIter' turns it off (with off as the
default). (Note that this is for bench_pictures; bench still uses the old format)

Change '--device' to '--config' and 'bitmap' to '8888' to be
the same as gm.

Requires '--r' before inputs (to match gm), though there can be multiple inputs following it.

Changed --enable-deferred-image-decoding (which no one uses but me yet anyway) to --deferImageDecoding, since the former is incompatible with the flag parser.

Changes to behavior:
Show a short error message on failure (rather than the explanation of all
flags).

BUG=https://code.google.com/p/skia/issues/detail?id=1094

Review URL: https://codereview.appspot.com/7230053

git-svn-id: http://skia.googlecode.com/svn/trunk@7961 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-04 16:41:06 +00:00
..
BenchTool/BenchTool.xcodeproj move main.cpp outside of the xcode project 2009-01-07 11:49:19 +00:00
AAClipBench.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
bench_analyze.py Adds a script to help analyze bench ranges to add/change in bench/bench_expectations.txt 2012-10-05 14:02:33 +00:00
bench_compare.py bench_compare proper spacing and tab option. 2013-01-30 19:22:51 +00:00
bench_expectations.txt Re-enabled performance checking on Windows 2013-02-08 20:09:56 +00:00
bench_graph_svg.py bench_graph_svg: more sorting to get deterministic results 2013-02-14 20:13:32 +00:00
bench_util.py bench_graph_svg: HUGE speedup for parsing tiled bench data 2013-02-17 08:59:56 +00:00
BenchGpuTimer_gl.cpp Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
BenchGpuTimer_gl.h Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
benchmain.cpp Created my own flag parser, based off of gflags. 2013-03-04 16:41:06 +00:00
BenchSysTimer_c.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_c.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_mach.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
BenchSysTimer_mach.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.cpp Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
BenchSysTimer_posix.h Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BenchSysTimer_windows.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
BenchSysTimer_windows.h Fix two warnings in bench timers. 2011-10-03 20:44:39 +00:00
BenchTimer.cpp Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
BenchTimer.h Split GrGLContextInfo into GrGLContext & GrGLContextInfo 2013-02-28 20:16:25 +00:00
BicubicBench.cpp Add a bench for SkBicubicImageFilter. 2013-02-08 16:40:14 +00:00
BitmapBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BitmapRectBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BlurBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
BlurRectBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-02-21 07:15:03 +00:00
ChartBench.cpp Fix ChartBench crash. 2013-02-22 16:07:59 +00:00
ChecksumBench.cpp Add sk_ignore_unused_variable to avoid warnings. 2013-02-04 15:58:08 +00:00
ChromeBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
DashBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-25 07:06:46 +00:00
DecodeBench.cpp Made more benchs non-rendering 2012-09-17 10:49:30 +00:00
DeferredCanvasBench.cpp Address google3 compiler warning 2013-02-07 21:02:23 +00:00
FontScalerBench.cpp use new PurgeFontCache() api 2011-11-08 20:03:48 +00:00
gen_skp_ranges.py Re-enabled performance checking on Windows 2013-02-08 20:09:56 +00:00
GradientBench.cpp extend gradient_create bench to test opaque and alpha gradient ramps 2013-02-04 18:09:58 +00:00
GrMemoryPoolBench.cpp Let SkBenchmark classes specify that they do no rendering. 2012-09-13 15:50:24 +00:00
InterpBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
LineBench.cpp add bench for hairlines 2012-10-25 17:32:10 +00:00
MathBench.cpp Suppress some warnings on linux. 2012-09-26 13:08:56 +00:00
Matrix44Bench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
MatrixBench.cpp add matrixbench for invert_translate 2013-01-04 15:46:42 +00:00
MatrixConvolutionBench.cpp This patch adds support for optional processing of the alpha channel in 2012-09-25 14:32:42 +00:00
MemoryBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
MorphologyBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
MutexBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
PathBench.cpp remove obsolete build flag SK_IGNORE_CONVEX_QUAD_OPT 2013-02-22 14:19:58 +00:00
PathIterBench.cpp Made more benchs non-rendering 2012-09-17 10:49:30 +00:00
PicturePlaybackBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
PictureRecordBench.cpp change unique_paint_dictionary to change the paint randomly, instead of just 2012-07-10 13:17:45 +00:00
ReadPixBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-09-05 02:01:29 +00:00
RectBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
RefCntBench.cpp Let SkBenchmark classes specify that they do no rendering. 2012-09-13 15:50:24 +00:00
RegionBench.cpp Let SkBenchmark classes specify that they do no rendering. 2012-09-13 15:50:24 +00:00
RegionContainBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-31 20:28:24 +00:00
RepeatTileBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
RTreeBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
ScalarBench.cpp Made more benchs non-rendering 2012-09-17 10:49:30 +00:00
ShaderMaskBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-01-26 07:06:02 +00:00
SkBenchLogger.cpp Report data from bench_pictures in the same fashion as bench. 2012-09-07 15:21:18 +00:00
SkBenchLogger.h Report data from bench_pictures in the same fashion as bench. 2012-09-07 15:21:18 +00:00
SkBenchmark.cpp Let SkBenchmark classes specify that they do no rendering. 2012-09-13 15:50:24 +00:00
SkBenchmark.h need this for prev. cl 2012-11-15 19:52:20 +00:00
SortBench.cpp Simplify and speed up SkIntroSort. 2013-02-04 19:54:15 +00:00
StrokeBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2013-02-05 07:02:01 +00:00
TableBench.cpp Sanitizing source files in Skia_Periodic_House_Keeping 2012-10-04 02:01:34 +00:00
TextBench.cpp Stop bench from leaking 2012-08-13 22:10:05 +00:00
tile_analyze.py Script to plot tile vs. viewport comparison for given platform and revision. 2013-02-13 23:22:29 +00:00
TileBench.cpp Fix bug in 1xN SkBitmapProcShader optimization 2013-01-22 20:29:16 +00:00
TimerData.cpp Fix for Windows build. 2012-09-07 15:57:18 +00:00
TimerData.h Report data from bench_pictures in the same fashion as bench. 2012-09-07 15:21:18 +00:00
VertBench.cpp Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/) 2012-08-23 18:09:54 +00:00
WriterBench.cpp Made more benchs non-rendering 2012-09-17 10:49:30 +00:00