''' Created on May 16, 2011 @author: bungeman ''' import sys import getopt import re import os import bench_util import json import xml.sax.saxutils # We throw out any measurement outside this range, and log a warning. MIN_REASONABLE_TIME = 0 MAX_REASONABLE_TIME = 99999 # Constants for prefixes in output title used in buildbot. TITLE_PREAMBLE = 'Bench_Performance_for_Skia_' TITLE_PREAMBLE_LENGTH = len(TITLE_PREAMBLE) def usage(): """Prints simple usage information.""" print '-b the bench to show.' print '-c the config to show (GPU, 8888, 565, etc).' print '-d a directory containing bench_r_ files.' print '-e file containing expected bench values/ranges.' print ' Will raise exception if actual bench values are out of range.' print ' See bench_expectations.txt for data format and examples.' print '-f [:] the revisions to use for fitting.' print ' Negative is taken as offset from most recent revision.' print '-i